Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Can someone help me?
I need to make a circle and leader text on a drawing sheet.
That's what I did, but it's not exactly what I need. It can be done somehow, connected.
If I try to move the circle, the arrow should follow. I can't make the arrow just by points...
Dim oDoc As DrawingDocument Dim oSht As Sheet Dim oSketch As DrawingSketch Dim oCircle As SketchCircle oDoc = ThisApplication.ActiveDocument oSht = oDoc.ActiveSheet oSketch = oSht.Sketches.Add oSketch.Edit Dim oTG As TransientGeometry oTG = ThisApplication.TransientGeometry oCircle = oSketch.SketchCircles.AddByCenterRadius(oTG.CreatePoint2d(5, 10), 2) oSketch.ExitEdit Dim drw As DrawingDocument = ThisDoc.Document Dim sheet As Sheet = drw.ActiveSheet Dim leaderPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(6.4, 11.4) Dim textPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(8, 14) Dim leaderPoints As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection() leaderPoints.Add(textPoint) leaderPoints.Add(leaderPoint) sheet.DrawingNotes.LeaderNotes.Add(leaderPoints, "Grinding Direction")
Solved! Go to Solution.