Disable Autocad TEXT Window (text screen)

Disable Autocad TEXT Window (text screen)

andkal
Collaborator Collaborator
2,902 Views
7 Replies
Message 1 of 8

Disable Autocad TEXT Window (text screen)

andkal
Collaborator
Collaborator

Hi
Is there a way to disable textscreen that appears after (textscr) or F2 button pressed? There are some commands in my lisp routines like -dwgunits, -list, -insunits   that open that window. I would like it to stay closed becouse the same prompts I get in commandline. I close it with (graphscr) buy anyway it's annoying when it shows up for a milisecond.


• www.autolisps.blogspot.com - Productivity plugins for Autocad and Autocad MEP
• Autodesk AppStore
0 Likes
2,903 Views
7 Replies
Replies (7)
Message 2 of 8

Moshe-A
Mentor
Mentor

@andkal  hi,

 

you can do something like this, graphscr can be invoked transparently. 

 

(command "-dwgunits" "'graphscr" 2 2 4 "n" "y") ; but still you will notice the flickering 

the same for -units

for the LIST there is no 'cure' at least that i know of.

 

moshe

 

 

 

 

 

moshe

 

0 Likes
Message 3 of 8

john.uhden
Mentor
Mentor

How about if you get rid of the (command ...) calls and just print the values you want using (getvar)?

John F. Uhden

0 Likes
Message 4 of 8

andkal
Collaborator
Collaborator

Actually Insunits was not a perfect example. Sorry for that.
I ment especially -dwgunits and -list. The only method I found to retrieve some values that Autocad displayes with those commands is to create a log file and read from it.

fe.
-Drawing Units in Autocad    or

-Connection points of fittings in Autocad MEP

 In >this< thread I posted an example how to get DWG Units in such a way but Im not happy with that text window that flashes for a split of a second. I haven't found any solution for that in the internet unfortunatelly..


• www.autolisps.blogspot.com - Productivity plugins for Autocad and Autocad MEP
• Autodesk AppStore
0 Likes
Message 5 of 8

CodeDing
Advisor
Advisor

@andkal ,

 

To my knowledge, all items inside the "Units" dialog can be updated with a system variable..

In your case of -DWGUNITS, use LUNITS instead:

(getvar 'LUNITS)
(setvar 'LUNITS 2)

 

In your case of LIST, use (getpropertyvalue) or (setpropertyvalue) instead:

(progn
(setq e (car (entsel)));select a circle
(setq r (getpropertyvalue e "Radius"))
(prompt (strcat "\nOld Radius: " (rtos r)))
(setq r 2.5) (setpropertyvalue e "Radius" r)
(prompt (strcat "\nNew Radius: " (rtos r))) );progn

... I frequently use (dumpallproperties) to see all of the available properties for an entity:

(dumpallproperties (car (entsel)))

Hope this helps..

Best,

~DD

0 Likes
Message 6 of 8

andkal
Collaborator
Collaborator

hallo CodeDing
I normally use methods you mentioned to get preperties, but in AMEP objects not all properties are available for LISP. Hence:  -list command as a walkaround.
As for LUNITS - it doesn't define units for lenght  [inch, feet, mm, m etc]   but their format [Scientific, Decimal, Architectual and so on]


• www.autolisps.blogspot.com - Productivity plugins for Autocad and Autocad MEP
• Autodesk AppStore
0 Likes
Message 7 of 8

CodeDing
Advisor
Advisor

@andkal ,

 

Thank you for some clarification. 

 

"-DWGUNITS", to my knowledge, is only a non-dialog version of the "UNITS" command, but with an option to "scale" existing items. Can you provide examples of what this command can do that changing system variables cannot do?

 

I do not work with AMEP objects, can you post one in a sample dwg and explain what properties you are trying to retrieve from it? 

 

Best,

~DD

0 Likes
Message 8 of 8

andkal
Collaborator
Collaborator

example for AMEP >here<.
As for -DWGunits - this is the only command, that I know of, that stores information about dwaring units. If I have some drawings with different units I need to make INSUNITSDEFTARGET systemvariable dependent from Drawing Units  to paste a specific block in right dimmensions. Some drawing can have [mm] as units and INSUNITS set to [mm] and other can have [inches] as units and INSUNITS set to [mm] as well, so I need program to know it.

But it is just an example of a problem that I already solved.  Wanting the program to look better I needed to get rid of that Text Screen I asked about in my first post.


• www.autolisps.blogspot.com - Productivity plugins for Autocad and Autocad MEP
• Autodesk AppStore