Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a python API script I wrote about a year ago ( around 3 or 4 Fusion updates ago ).
It was working perfectly at the time.
Now it fails when I try and Project existing Bodies to a new Sketch.
It appears that the script is executing the Project Body with the 'Projection Link' turned OFF.
If I create the Body Projections manually with 'Projection Link' turned ON, then the result is exactly as I need it to be.
Is it possible to set the 'Projection Link' to ON within a Script ?
# create a sketch for the border shape
# create sketch on the 'TextPlane' plane
uTextPlane = rootComp.constructionPlanes.itemByName('TextPlane')
sketches = rootComp.sketches
sketch = sketches.add(uTextPlane)
sketch.name = 'Border'
projectedSketchEntities = []
for body in inputColl:
projectedEntities = sketch.project(body)
projectedSketchEntities.extend([e for e in projectedEntities])
Solved! Go to Solution.