Lee Mac Posted September 2, 2008 Posted September 2, 2008 Just wondered if there was any difference between: "-text" "_text" "_.text" "text" as a syntax for single-line text? (or in fact, for any syntax?) Help much appreciated! Quote
borgunit Posted September 2, 2008 Posted September 2, 2008 http://www.draftsperson.net/index.php?title=What_prefixes_are_available_for_commands_-_AutoCAD_Tip Quote
CAB Posted September 3, 2008 Posted September 3, 2008 (Command "text" If the Text command has been redefined then this will activate the redefined command (Command ".text" If the Text command has been redefined then this will not use it but will use the native ACAD text command (Command "_text" This will activate a language translator and if you are using a non-English version of ACAD the word "text" will be translated into the language of the version being used. (Command "-text" Will result in an error: Unknown command "-TEXT". Press F1 for help. But using it with a command that ivokes a dialog box AND has a command line version of the command it will ivoke the command line version. Try using (Command "-insert" Or just type it at the command line -insert to see what happens. Some commands do not initiate the dialog box version of the command when not using - Therefore use (initdia) to force the dialog box to appear. From ACAD2000 Help Currently, the following commands make use of the initdia function: ATTDEF, ATTEXT, BHATCH, BLOCK, COLOR, IMAGE, IMAGEADJUST, INSERT, LAYER, LINETYPE, MTEXT, PLOT, RENAME, STYLE, TOOLBAR, and VIEW. Quote
CAB Posted September 3, 2008 Posted September 3, 2008 Here is a code snipit: ;; add block to DWG (or (tblsearch "Block" "Detail-Sheet-01") (eMake)) ;; Insert Attr block & get attribute values from user (setq sysattdia (getvar "ATTDIA")) (setq sysattreq (getvar "ATTREQ")) (setq systxteva (getvar "TEXTEVAL")) (setvar "ATTDIA" 1) (setvar "ATTREQ" 0) (setvar "TEXTEVAL" 0) (if (tblsearch "block" "Detail-Sheet-01") (progn (command "._-insert" "Detail-Sheet-01" "_non" p3 *MyTextsize "" "") (initdia 1) ; get the attrubute values from the user (command "._attedit" (entlast)) ) ) 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.