12-22-2024
06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-22-2024
06:40 AM
The properties of an arc seem to be read-only so that means there is no way to change an arc. But you can create a new arc (using the properies of the old arc.) and then delete the old arc.
the fuction to create an arc has a optional (boolean) paramater to tell Inventor to draw the arc clock or counter clock wise. In the following example I draw 2 arcs. the first is clockwise and the other countercockwise. Notice the boolean at the end of line 6 and 7.
Dim otg = ThisApplication.TransientGeometry
Dim doc As PartDocument = ThisDoc.Document
Dim sketch As Sketch = doc.ComponentDefinition.Sketches.Add(doc.ComponentDefinition.WorkPlanes.Item(1))
sketch.Edit()
Dim arc1 = sketch.SketchArcs.AddByCenterStartEndPoint(otg.CreatePoint2d(0, 0), otg.CreatePoint2d(10, 0), otg.CreatePoint2d(0, 10), True)
Dim arc2 = sketch.SketchArcs.AddByCenterStartEndPoint(otg.CreatePoint2d(-1, -1), otg.CreatePoint2d(9, -1), otg.CreatePoint2d(-1, 9), False)
Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Blog: hjalte.nl - github.com