×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

using multiple points in script.

using multiple points in script.

using multiple points in script.

(OP)
I'm trying to write a script that will create a die draw line relative to a user selected line then create a surface extrusion of a rectangle in the direction of the line.Now I need that line and surface to be repeated on a series of points.

If I have the user select a geo set that contains all the points how do I make the line and surface repeat at each of the points?

Also can I set a Reference to equal a user selected item.
I am using this statement for the user to select specific items.

ReDim sFilter(0)
            Msgbox "Select  Point "
            sFilter(0) = "Point"
            sStatus = Selection.SelectElement2(sFilter, "Select Point", False)

Set Point1 = Selection.Item(1)

So can I have =>

Dim reference2 As Reference
Set reference2 = Point1

Thanks

RE: using multiple points in script.

To get a reference

Set reference2 = Selection.Item(1).Reference

or

Set refernce2 = oPart.CreateReferenceFromObject(Point1)

where oPart is the Part object

provide you do not clear the selection object first.

The first is easier but the second is preferable to avoid errors.

Regards

Nev


RE: using multiple points in script.

(OP)
Nev99:

Thanks for the information.
I have the script to do what I want(kind of)
but there is still the issue of repeating tis on muliple points.

Any ideas on this issue.

Thanks

RE: using multiple points in script.

Kapmc,

Can you add a screen shot to explain how the repeated line and surface relate to the point from an orientation standpoint?

I assume that the initial line references a similar point to be able to construct it.

Regards

Nev

RE: using multiple points in script.

(OP)
nev99:

Sorry for the late reply. How do I post a snap shot of what I want to explain?

RE: using multiple points in script.

(OP)
DBezaire:

One problem with that, I am lock out from any personal network storage systems. Is there any other way?

RE: using multiple points in script.

Not with eng-tips, this site requires an offsite storage.  COE allows file upload, need a membership for this.

Derek

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources