Message 1 of 9
Create a LeaderNote with Sheetmetal Thickness fails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I've been using this macro since a long time, but since changing to IV2018 it fails with Invalid Procedure call 5.
Dim Thk As Parameter Set Thk = DrawingView.ReferencedDocumentDescriptor.ReferencedDocument.ComponentDefinition.Thickness Dim Txt As String Txt = "t=<Parameter Resolved='True' ComponentIdentifier='" & Thk.Parent.File.FullFileName & "' Name='" & Thk.Name & "' Precision='0'></Parameter> mm" Set FLText = InvDoc.ActiveSheet.DrawingNotes.LeaderNotes.Add(LeaderPointsColl, Txt)
The LeaderPointsCollection is fine, if I create a leader with just a standard text, it works fine. So there's gotta be something with the Txt. But if I create the leadernote by hand, using the Parameter etc, then compare its formattedtext to the Txt variable (as the supposed formattedtext), they are the same thing.
What could be the problem?