OLD SCHOOL Posted September 30, 2009 Posted September 30, 2009 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 Quote
Freerefill Posted September 30, 2009 Posted September 30, 2009 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. ^.^ Quote
OLD SCHOOL Posted September 30, 2009 Author Posted September 30, 2009 Great stuff - Thanks very much for that - I will give it a go!! Quote
Cad Guy Posted October 1, 2009 Posted October 1, 2009 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 Quote
Lee Mac Posted October 1, 2009 Posted October 1, 2009 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 Quote
Lee Mac Posted October 1, 2009 Posted October 1, 2009 Thanks for the Links! No problem - those are really just "crash-courses" into LISP... if you want to study programming in depth, this may be a better starting point: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html http://www.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl/clm/node1.html 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.