AnsweredAssumed Answered

Fix endpoints of a line using createline2

Question asked by Ryan Gerry on Jun 11, 2014
Latest reply on Jun 11, 2014 by Simon Turner

I am writing a macro that creates a line in a  SW Part from selected start and end points in excel.  I am trying to create these lines and have them fully defined, however when I use the following code:

 

Part.CreateLine2 sX, sY, sZ, eX, eY, eZ

Part.SketchAddConstraints "sgFIXED"

 

It draws the line and defines the line orientation only, leaving the endpoints free to be moved. 

 

How do I get the endpoints and fix them also?

Outcomes