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
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.
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.
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.
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.
Sorry for the late reply. How do I post a snap shot of what I want to explain?
RE: using multiple points in script.
http://www
Derek
RE: using multiple points in script.
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.
Derek