Jump to content

Recommended Posts

Posted

I have just started writing simple codes, and have encountered my first problem.

How do I convert acad commands that are commonly setup in dialogue boxes, into "typeable" code.

 

Example: "pagesetup" brings up a dialogue box. How do I modify and alter the settings using code within this dialogue without having

physically select on screen - "modify" -- A3 -- extents -- etc etc

 

o:)

Posted

It varies from setting to setting, in that, some things you cannot go with straight command-line text-only. There are some things that force a dialog box no matter what.

 

The most common example is the "insert" command. Try typing "insert" at the command line, and you get a dialog box, yeah? Now try typing it with a dash before the command, like: -insert. Voila! No dialog box!

 

A dash will usually tell a command "Hey, we're doing this from the command line so no need for a dialog box, kthxbai." Some dialog boxes won't listen, in which case you can also try setting the system variable "filedia" to 0 instead of 1. This, however, may not work for all dialog boxes either. For some, you'll have you figure out other means to set your stuff.

 

I hope that helps. ^.^

Posted

Great stuff - Thanks very much for that - I will give it a go!!

Posted
It varies from setting to setting, in that, some things you cannot go with straight command-line text-only. There are some things that force a dialog box no matter what.

 

The most common example is the "insert" command. Try typing "insert" at the command line, and you get a dialog box, yeah? Now try typing it with a dash before the command, like: -insert. Voila! No dialog box!

 

A dash will usually tell a command "Hey, we're doing this from the command line so no need for a dialog box, kthxbai." Some dialog boxes won't listen, in which case you can also try setting the system variable "filedia" to 0 instead of 1. This, however, may not work for all dialog boxes either. For some, you'll have you figure out other means to set your stuff.

 

I hope that helps. ^.^

 

 

Thanks, trying to learn this thing you guys call Lisp for my self....lol

Posted

There are many places to start, here's a selection of links for you to sample :)

 

http://www.cadtutor.net/forum/showthread.php?t=38760

 

http://www.cadtutor.net/forum/showthread.php?t=38734

 

http://www.afralisp.net/

 

http://www.jefferypsanders.com/autolisptut.html

 

http://ronleigh.info/autolisp/index.htm

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