.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
GetAcadDoc ument
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
358 Views, 2 Replies
03-28-2012 04:31 PM
I'm having trouble trying to get the GetAcadDocument method to work.
2012 code:
ThisDrawing = DocumentManager.MdiActiveDocument.AcadDocument
2013:
ThisDrawing = DocumentExtension.GetAcadDocument(Application.Docu
Produces a run time error. I know just enough .net to brute force my app to do what I want and would appreciate any help.
Thanks,
Phil
Re: GetAcadDoc ument
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-28-2012 11:29 PM in reply to:
phil
Hi,
for me it's running (it used time to find the alternative to .AcadDocument but with the method same to yours it's working for me. How is ThisDrawing declared at your code, what runtime-error do you get exactly?
- alfred -
-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Re: GetAcadDoc ument
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-29-2012 08:44 AM in reply to:
alfred.neswadba
Thanks for the response Alfred...confirming the code was ok made me look for a more fundamental problem and I realized I had a bad reference.

