.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am getting error with this code --> Type '. . . .' is not defined

1 REPLY 1
Reply
Message 1 of 2
Anonymous
390 Views, 1 Reply

I am getting error with this code --> Type '. . . .' is not defined

Hi everyone,

I am getting error when i use the code below, the error is: Type 'document' is not defined.

Dim myDwg As document = documentmanager.mdiactivedocument

Please help,

Thank you,

-Jay
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

you need to add

Import  Autodesk.AutoCAD.ApplicationServices

 

For they way it is written you also need

 

Import Autodesk.AutoCAD.ApplicationServices.Application

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost