Jump to content

"text" .... "-text" .... "_.text" .... "_text" What is the difference? (If Any!)


Lee Mac

Recommended Posts

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! :)

Link to comment
Share on other sites

(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.
Link to comment
Share on other sites

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

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