Message 1 of 10
Add Parameter to Leader Text Crashing Inventor 2019
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to add a parameter to my leader text. The code works when i'm adding to a part file but fails when i'm adding it to an assembly occurrence.
To Simplify the problem i've writting the following code:
oDoc = ThisDoc.Document
Dim s As String
s = oDoc.ActiveSheet.DrawingNotes.LeaderNotes.Item(1).FormattedText
oDoc.ActiveSheet.DrawingNotes.LeaderNotes.Item(1).FormattedText = s
All this does is take the first leader, read in it's text, then sets it back to it's text. This works fine when the view is of a part file but crashes when using an assembly file.
I'm running Inventor 2019.4.8
I have attached the files and the ilogic rule is in the drawing,
any help is appreciated,
thanks,
John