firavolla Posted June 7, 2010 Posted June 7, 2010 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? Quote
Pablo Ferral Posted June 7, 2010 Posted June 7, 2010 Create your App as a VB.Net 'Plugin' that runs inside Autocad. Then you can add your line drectly to Autocad's database. http://through-the-interface.typepad.com/ http://www.theswamp.org/index.php?board=27.0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.