Message 1 of 2
Leader point to midpoint of curve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey
I am using this code from the API help file
Dim oDrawDoc As DrawingDocument = Invapp.ActiveDocument
Dim oActiveSheet As Sheet = oDrawDoc.ActiveSheet
Dim oDrawingCurveSegment As DrawingCurveSegment = oDrawDoc.SelectSet.Item(1)
Dim oDrawingCurve As DrawingCurve = oDrawingCurveSegment.Parent
Dim oMidPoint As Point2d = oDrawingCurve.MidPoint
Dim oTG As TransientGeometry = Invapp.TransientGeometry
Dim oLeaderPoints As ObjectCollection = Invapp.TransientObjects.CreateObjectCollection
oLeaderPoints.Add(oTG.CreatePoint2d(oMidPoint.X + 1.5, oMidPoint.Y))
but when the leader is added, the arrow is not positioned on oMidpoint.X, its positioned on the curve end. The 2nd position of oMidpoint.Y is correct...
Am i missing something? Is there any better Balloon code?
Thanks
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
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.