1) Added custom toolbar in autocad
2) Added custom button in autocad.
Let's say I want that when the user clicks the custom button, a dialogue appears on screen and the user has to punch in the X and Y coordinates for the 2 points of a simple line. When the user clicks ok, using the values entered, a drawing of a line appears inside Autocad.
I've done this with AutoLisp. But the project I'll have to work on is a bit more complex and requires a somewhat larger amount of user input, so what i want to do is design my dialogues and message-boxes inside a simple c# application.
The way I thought about the problem is this:
The custom button opens my application
The user enters the neccesary data.
When the user clicks ok, a script is generated from a template and then that script is run in autocad displaying the line.
How can I get the generated script from my app ( an usual lsp script) to load and run in autocad?