Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

using multiple points in script.

Status
Not open for further replies.

Kapmc

Automotive
Joined
Sep 7, 2006
Messages
39
Location
US
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
 
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


 
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
 
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
 
nev99:

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

One problem with that, I am lock out from any personal network storage systems. Is there any other way?
 
Not with eng-tips, this site requires an offsite storage. COE allows file upload, need a membership for this.

Derek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top