normal construction line api

normal construction line api

rudisoft
Enthusiast Enthusiast
1,031 Views
1 Reply
Message 1 of 2

normal construction line api

rudisoft
Enthusiast
Enthusiast

How do I make a line a normal/contruction line from the API?

 

starting from here:

 

app = adsk.core.Application.get()

ui = app.userInterface

product = app.activeProduct

 rootComp = product.rootComponent

sketches = rootComp.sketches

xyPlane= rootComp.xYConstructionPlane

sketch = sketches.add(xyPlane)

lines = sketch.sketchCurves.sketchLines

line1 = lines.addByTwoPoints(adsk.core.Point3D.create(1,1, 0), adsk.core.Point3D.create(2,2, 0))

 

now, how do I get line1 to be a construction line?

Accepted solutions (1)
1,032 Views
1 Reply
Reply (1)
Message 2 of 2

ekinsb
Alumni
Alumni
Accepted solution

Just add the line below

 

line1.isConstruction = True

Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog