Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
JelteDeJong
in reply to: nick.seman

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.

EESignature


Blog: hjalte.nl - github.com