.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
440 Views, 1 Reply

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

Anonymous
Not applicable
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
0 Likes

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

Anonymous
Not applicable

you need to add

Import  Autodesk.AutoCAD.ApplicationServices

 

For they way it is written you also need

 

Import Autodesk.AutoCAD.ApplicationServices.Application

0 Likes

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  

AutoCAD Inside the Factory


Autodesk Design & Make Report