Message 1 of 3
Trimming Ellipse
Not applicable
07-25-2017
11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
apologies for the naive question. I'm just trying to get into fusion scripting and have a hard time to understand how the trim function works. I would like to split an ellipse into two parts to create an arc. From my limited understanding of the documentation I would have expected the following code to create an arc:
app = adsk.core.Application.get()
design = app.activeProduct
rootComp = design.rootComponent
sketch = rootComp.sketches.add(rootComp.xYConstructionPlane)
ellipses = sketch.sketchCurves.sketchEllipses
ellipse = ellipses.add(adsk.core.Point3D.create(0, 0, 0),
adsk.core.Point3D.create(0, 1, 0),
adsk.core.Point3D.create(2, 0, 0))
ellipse.split(adsk.core.Point3D.create(0, 1, 0))
ellipse.split(adsk.core.Point3D.create(0, -1, 0))
ellipse.trim(adsk.core.Point3D.create(2, 0, 0))It would be great if someone could either post a sample code or point me to an example implementing the above?
Thanks a lot,
Oliver
