Message 1 of 2
Linked User Parameters in iLogic Generated Drawing Notes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to create a set of drawing notes with a rule as seen below. However, instead of hard coding the notes into the rule, I would like the rule to add user parameters from the model to the text in a way that retains the link so that as the user parameter changes, the text updates automatically.
Sub Main() Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument Dim oActiveSheet As Sheet oActiveSheet = oDrawDoc.ActiveSheet Dim oGeneralNotes As GeneralNotes oGeneralNotes = oActiveSheet.DrawingNotes.GeneralNotes Dim oTG As TransientGeometry oTG = ThisApplication.TransientGeometry Dim sText As String Dim Note1 As String Dim Note2 As String Dim Note3 As String Dim Note4 As String Dim Note5 As String Dim Note6 As String sText = "<StyleOverride Italic = 'True' Underline = 'True'>NOTES:</StyleOverride><Br/> <Br/>" Note1 = "1...<Br/> <Br/>" Note2 = "2...<Br/> <Br/>" Note3 = "3..." Note4 = "" Note5 = "" Note6 = "" Dim oGeneralNote As GeneralNote oGeneralNote = oGeneralNotes.AddFitted(oTG.CreatePoint2d(3, 6.75), sText & Note1 & Note2 & Note3 & Note4 & Note5 & Note6) oGeneralNote.VerticalJustification = VerticalTextAlignmentEnum.kAlignTextLower oGeneralNote.Width = 30 End Sub