- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I noticed that my old drawings were not updating their title blocks. I have a VB.net addin (net 4.6.2) that checks and updates blocks as necessary. It worked with IV2020. The addin is failing at CopyTo.
Dim TitleBlockGraphics As TitleBlockDefinition = oSourceDocument.TitleBlockDefinitions.Item("Graphics r3")
Dim TitleBlockDefGraphics As TitleBlockDefinition = TitleBlockGraphics.CopyTo(DocumentObject, True)
error:
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.TitleBlockDefinition.CopyTo(_DrawingDocument TargetDocument, Boolean ReplaceExisting)
at IvDrawingProps.IvDrawingProps.StandardAddInServer.m_application_OnOpenDocumemt(Document DocumentObject, String FullDocumentName, EventTimingEnum BeforeOrAfter, NameValueMap Context, HandlingCodeEnum& HandlingCode)
Windows 10 64, IV pro 2021 build 183
Thanks
Stan
Solved! Go to Solution.