HOW TO ENTER COMMANDS IN AUTOCAD2016 USING VB.NET

HOW TO ENTER COMMANDS IN AUTOCAD2016 USING VB.NET

Anonymous
Not applicable
1,432 Views
6 Replies
Message 1 of 7

HOW TO ENTER COMMANDS IN AUTOCAD2016 USING VB.NET

Anonymous
Not applicable

HI,

     Actually I want to insert commands using VB.NET. But the two dll are missing acmgd.dll and acdbmgd.dll. How to get these dlls for create the connection VB.NET and AutoCAD. Please any suggestion please let me know.

 

Thanx

Mohit

0 Likes
1,433 Views
6 Replies
Replies (6)
Message 2 of 7

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

add them by adding references to your project, the files can be found in the program folder for AutoCAD. Don't set it to "copy local"

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 7

Anonymous
Not applicable

Thanx for reply

But I am searching in COM refference but the both dlls are not there. So how to add those dlls.

0 Likes
Message 4 of 7

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> I am searching in COM refference

You mentioned in your first post:

>> the two dll are missing acmgd.dll and acdbmgd.dll

Sorry, these DLL's are no COM dll's, they are for managed access.

 

If you only need COM then you don't need the DLL's you mentioned in your first post, you only need these two references:

  • ACAD 20XX Type Library
  • AutoCAD/ObjectDBX Common XX.X Type Library .... for AutoCAD 2016 you need the version 20.0

 

20161217_1102.png

(sorry for German Screenshot)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 7

Anonymous
Not applicable

Thanx for your reply

But please tell that how to pass command "INSERT" from VB.NET to AutoCAD 2016. Please give the syntax or some small example.

 

Thanx

Mohit

0 Likes
Message 7 of 7

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Please give the syntax or some small example.

Show what you have, I'm even not sure why you are working based on COM (is it an external application or does it run in-process and so better using the manged interface)Please give the syntax or some small example?).
Why do you want to send commands instead of using the API to insert block-references? It's the last alternative when everything else fails/is not possible as you don't get a feedback about it failed or worked ...

 

Let us know more about what you do and show us what you have currently.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes