Jump to content

calling commands from loaded arx file using lisp function (command)


LibertyOne

Recommended Posts

this has been giving me many sleepless nights...

 

how do I go about calling a command which is loaded through an arx file with the AutoLisp function command?

For example:

(command "_amthole2d")

which is a command in Mechanical to create a 2D hole.

And if there were any variables to this command, like diameter or position, I would like to pass these on to the command.

Link to comment
Share on other sites

for a bit of more information, what I am trying to accomplish here is to start the command without typing the command in the command line.

 

In another thread http://www.cadtutor.net/forum/showthread.php?58831-Torient-Command-and-Lisp Lee Mac gave a solution to call an express tool command by creating his own command line function. I did try to implement this but somehow it didn't work. Could there be a work around to this?

Link to comment
Share on other sites

What you are doing should work iff it is actually an arx/dll command and not a LISP.

 

You could make this really easy and just edit your acad.pgp

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...