Jump to content

NET and Autocad. How to load script from net app?


firavolla

Recommended Posts

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?

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...