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

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

25 REPLIES 25
Reply
Message 1 of 26
Leimhu
7458 Views, 25 Replies

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

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 !

25 REPLIES 25
Message 21 of 26
Leimhu
in reply to: Hallex

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!

Message 22 of 26
Hallex
in reply to: Leimhu

You're welcome

Happy computing 🙂

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 23 of 26
Leimhu
in reply to: Hallex

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?

 

 

 

Message 24 of 26
Hallex
in reply to: Leimhu

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

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 25 of 26
varun3752
in reply to: Hallex

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.

Tags (1)
Message 26 of 26
nttrung111191
in reply to: Hallex

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!

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