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

C# windows form to load lisps

4 REPLIES 4
Reply
Message 1 of 5
brianchapmandesign
655 Views, 4 Replies

C# windows form to load lisps

I'd like to make my windows form built with c# to have a button that will make autocad load a lisp if autocad is open.  Is that possible?

 

Thanks!


"Very funny, Scotty. Now beam down my clothes.
4 REPLIES 4
Message 2 of 5

Hi,

 

>> Is that possible?

I guess yes .... but what you are doing is not desribed here clear enough

  • Do you have an EXE with a windows-form that is controlling AutoCAD via COM?
  • Or do you have a DLL that is loaded into AutoCAD either by automatic loading or loaded via _NETLOAD?
  • Why don't you load the LSP's directly with the ACAD.LSP or ACADDOC.LSP?

 

Describe (a little bit) of what you want to do, that will give us the option to point you to the best way to go.

At the moment you are asking us something like "can I go to the mountain", but you don't tell us how far it is away, what's the height of the mountain, what shoes and clothes you have, how trained you are and what do you like to do when you reached the peak 😉

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 5

Neither... I want my c# windows exe form to basically "inject" my routine.  I don't want to load my exe in cad. The form is opened before I open cad.

 

Thanks!


"Very funny, Scotty. Now beam down my clothes.
Message 4 of 5

Hi,

 

>> The form is opened before I open cad

Well, then you have to go through COM, therefore search for "AutoCAD getObject" (>>>click<<<), there you find ways of how to get connected to AutoCAD from an external EXE.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 5 of 5

Got ya ...thanks was hoping it be be as simple as

 


process.acad.exe do something that should be simple

 

lol

 

Thanks for the info


"Very funny, Scotty. Now beam down my clothes.

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