PDA

View Full Version : Odd Text Error Fix



RyanAtNelco
22nd Oct 2009, 09:13 pm
Hello,

There is a bug that causes text to appear bold and fuzzy. I am trying to come up with a lisp to fix this, but i am not very good at programming. So far i know that i need to use the ssget function to select all the text. On another post on this site i found that using:

(ssget "_X" '((0 . "mtext,text,dimension")))

lets me get all the object styles that i have found to have this error. What i would like to do is set all Z position values to 10 (or any number) and then back to 0.000000

I have found this gets rid of the text issue.

I am not sure if Z values for text/mtext are different than dimensions, but you can not edit the z value for a dimension in the properties menu, but it does have a z value if you list the object.

Can someone help me out with the next step?

thank you!

alanjt
22nd Oct 2009, 09:16 pm
Hello,

There is a bug that causes text to appear bold and fuzzy. I am trying to come up with a lisp to fix this, but i am not very good at programming. So far i know that i need to use the ssget function to select all the text. On another post on this site i found that using:

(ssget "_X" '((0 . "mtext,text,dimension")))

lets me get all the object styles that i have found to have this error. What i would like to do is set all Z position values to 10 (or any number) and then back to 0.000000

I have found this gets rid of the text issue.

I am not sure if Z values for text/mtext are different than dimensions, but you can not edit the z value for a dimension in the properties menu, but it does have a z value if you list the object.

Can someone help me out with the next step?

thank you!
Have you tried just using Flatten?

RyanAtNelco
22nd Oct 2009, 09:16 pm
yes it does not work :(

alanjt
22nd Oct 2009, 09:19 pm
You can also just select them with the Change command and change the elevation from there.

alanjt
22nd Oct 2009, 09:22 pm
Command: ch
Change3 found


Enter property to change
[Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/Material/Annotative]: e
Specify new elevation <25.00>: 0

Enter property to change
[Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/Material/Annotative]:

RyanAtNelco
22nd Oct 2009, 09:36 pm
Thanks! I was able to make a macro using the ssget command that does exactly what i want. I appreciate the help!

alanjt
23rd Oct 2009, 12:20 am
Thanks! I was able to make a macro using the ssget command that does exactly what i want. I appreciate the help!
:) Precisely what I would have done.

alanjt
23rd Oct 2009, 12:38 am
This is just me playing around, but what about a reactor to set OSnapZ variable when putting in text, etc.?


;;; OSnapZ Reactor
;;; Turn on/off OSnapZ variable to ensure MText, Text, Leaders,
;;; Multileaders and Dimensions are placed at a zero elevation.
;;; Alan J. Thompson, 10.22.09

;; Reactor Activation
(or OSnapZ:Reactor:On
(setq OSnapZ:Reactor:On
(vlr-command-reactor nil '((:vlr-commandWillStart . OSnapZ:Procedure:On)))
) ;_ setq
) ;_ or
(or OSnapZ:Reactor:Off
(setq OSnapZ:Reactor:Off (vlr-command-reactor nil '((:vlr-commandEnded . OSnapZ:Procedure:Off))))
) ;_ or

;; Command Start, turn OSnapZ variable off
(defun OSnapZ:Procedure:On (#Call #Info)
(and (wcmatch (strcase (car #Info)) "*TEXT*,*LEADER*,*DIMENSION*")
(getvar 'OSnapZ)
(setvar 'OSnapZ 1)
) ;_ and
) ;_ defun

;; Command End, turn OSnapZ variable back on
(defun OSnapZ:Procedure:Off (#Call #Info)
(and (wcmatch (strcase (car #Info)) "*TEXT*,*LEADER*,*DIMENSION*")
(getvar 'OSnapZ)
(setvar 'OSnapZ 0)
) ;_ and
) ;_ defun

RyanAtNelco
23rd Oct 2009, 02:35 pm
This one is a bit above my head. Can you explain what it does? Is does it automatically set the text,mtext, dimension to elevation zero as you create it?

alanjt
23rd Oct 2009, 03:14 pm
This one is a bit above my head. Can you explain what it does? Is does it automatically set the text,mtext, dimension to elevation zero as you create it?
The OSnapZ variable controls whether or not the Z value is used when picking points. What the reactor does is turns OSnapZ off (to just use zero) when the Mtext, Text, Dimension, Leader, Multileader command is issued and turns it back on when the command is finished.

RyanAtNelco
23rd Oct 2009, 03:23 pm
Oh, thats cool! So a reactor kicks in at a predefined time? Does this effect the speed of the program?

alanjt
23rd Oct 2009, 03:34 pm
Oh, thats cool! So a reactor kicks in at a predefined time? Does this effect the speed of the program?
Correct.
The effect would be so minute you would never notice.