How to open autocad.exe in C# , PLEASE HELP!

How to open autocad.exe in C# , PLEASE HELP!

Anonymous
Not applicable
9,956 Views
25 Replies
Message 1 of 26

How to open autocad.exe in C# , PLEASE HELP!

Anonymous
Not applicable

I am using Visual.net 2008 with autocad.net API, autocad2010, windows 7 home

right now, i want to start autocad.exe, and draw some lines in it, by using C# WindowsFormsApplication, not  C# Class Library

still i cannot start autocad.exe

 

I hope to open cad by autocad.net API, not ObjectARX or others

I am a new one,  please HELP ME

thanks very very much !

0 Likes
9,957 Views
25 Replies
Replies (25)
Message 21 of 26

Anonymous
Not applicable

Dear Hallex:

Thanks for your patience~

slowly I understand your code

really awesome!Man Happy

I am Reading C# reflection together with cad vba

hope to get further help from you~

thank you again!

0 Likes
Message 22 of 26

Hallex
Advisor
Advisor

You're welcome

Happy computing 🙂

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 23 of 26

Anonymous
Not applicable

Dear Hallex:

I have a question in your code

you create a autocad.application first,

how do i know the following methods or properties like "Open","AddLine"...are in VBA system?

not using visual lisp method which also associated with cad?

Are they unique reflections?

 

 

 

0 Likes
Message 24 of 26

Hallex
Advisor
Advisor

Read the very last last response on the page #2 in this thread

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 25 of 26

Anonymous
Not applicable

Dear Sir,

 

First of all thank you for providing such use full resource to us.

 

Using your files I am able to open autocad application but not able to draw circle as per your code.
I am getting an error under ReflectionCommands.cs file on line 41 :: ( object AcDoc = AcadDocs.GetType().InvokeMember("Open", BindingFlags.InvokeMethod, null, AcadDocs, args); )

For error message please find attached doc.


Please suggest how it can be resolved.

Thanks in advance.

0 Likes
Message 26 of 26

Anonymous
Not applicable

Dear Hallex, you are genius!!!

I tried your codes, and it works very well~

Thank for your help, It's really great

 

I want to load .dll file into Autocad from this app. Please help me!!!

Thank you very much!

0 Likes