Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
Sep 7, 2006
39
0
0
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
 
Replies continue below

Recommended for you

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

One problem with that, I am lock out from any personal network storage systems. Is there any other way?
 
Status
Not open for further replies.
Back
Top