Message 1 of 22
Edit TitleBlock Definition

Not applicable
02-18-2020
01:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I'm currently editing titleblock definitions in .IDW files.
For some drawing documents, using the Definition.Edit() method leads to a crash (E_FAIL exception, System.RuntimeType.ForwardCallToInvokeMember problem).
The code I use is pretty straightforward so I guess there's something missing:
// sheet is active var t = sheet.TitleBlock.Definition; // t is not null
// this call crashes sometimes againt some documents.
t.Edit(out DrawingSketch s);
What am I missing? What should I check before trying to edit the definition?
Thanks in advance for your help.