Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There seems to be an issue with the formatted text for general notes. You can only add a linked parameter if it is for a part file and not an assembly.
The below code works only if there are no assemblies on the drawing sheet. As soon as you put one on there, this code crashes every time.
I am trying to make a note with numerous links for an assembly files, but this bugs means that you cannot create linked parameters for assemblies. Does anyone have a work around that doesn't involve manually linking all of the files?
thanks, Matt.
Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument Dim oSheet As Sheet = oDoc.ActiveSheet Dim oGNs As GeneralNotes = oSheet.DrawingNotes.GeneralNotes Dim oTG As TransientGeometry = ThisApplication.TransientGeometry Dim sText As String = "Drawing Notes" Dim oNoteB As GeneralNote = oGNs.AddFitted(oTG.CreatePoint2d(5, 18), "sText") oNoteB.FormattedText = "TEST <Parameter Resolved='True' ComponentIdentifier='C:\temp\test.ipt' Name='THK' Precision='2'></Parameter>"
Solved! Go to Solution.