Corey, thanks a bunch for the help yesterday- I got it working.
Two more questions:
1) is there a way to select the last item created? I am using Part.Extension.SelectByID("XY (Front)", "PLANE", 0, 0, 0, False, 0, Nothing) for example, but after I create features I have trouble referencing them. Do I have to do Set line = ... and use line to reference, or is there a "select the last feature" command?2) Why do I get a "object variable or with block variable not set" error with this (when I debug, it highlights the Construction Geometry line; the line doesn't draw on the screw btw): Part.ClearSelection2 True boolstatus = Part.Extension.SelectByID("XY (Front)", "PLANE", 0, 0, 0, False, 0, Nothing) Part.InsertSketch2 (True) Dim line2 Set line2 = Part.CreateLine2(1, 1, z, 2, 2, z) If IsNull(line2) Then MsgBox ("line2 is null") End If line2.ConstructionGeometry = (True) Part.InsertSketch2 False
Thanks again for any help!
-Mike