Named Automatic Leaders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Afternoon,
Our current iLogic endeavour is to implement automatic leaders when our drawing note tool is used. For example: If there are 3 notes specifying certain marking to be stenciled on a part, 3 leaders will apear with corresponding "See note XX" text. We have this first section working, however we would like a check to see if any leaders have been placed previously (our drawing notes tool can used as often as needed). Currently leaders will continue to be created regardless of existing ones.
My request:
Is it possible to name leaders when inserting them? So that we can check if leaders on a certain name exist, and update text accordingly. I have attached our leader insert code below.
To summarise: Can insert leaders, want to associate leaders with specific notes (i.e. name them on creation), would also like to be able to update existing leaders without changing their location
Thanks
Sub Main
Dim oDDoc As DrawingDocument = TryCast(ThisDoc.Document, Inventor.DrawingDocument)
If oDDoc Is Nothing Then Return
Dim oASheet As Inventor.Sheet = oDDoc.ActiveSheet
Dim oLNotes As LeaderNotes = oASheet.DrawingNotes.LeaderNotes
Dim oTO As TransientObjects = ThisApplication.TransientObjects
Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
Dim oObjColl As Inventor.ObjectCollection = oTO.CreateObjectCollection
oObjColl.Add(oTG.CreatePoint2d(29.5, 10))
oObjColl.Add(oTG.CreatePoint2d(28, 9.5))
Dim sFText As String = "SEE NOTE " & (CDbl(iProperties.Value("Custom", "Leaderrow")) + 1) / 2
Dim oLNote As LeaderNote = oLNotes.Add(oObjColl, sFText)
End Sub