Jump to content

Recommended Posts

Posted

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!

Posted
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?

Posted

You can also just select them with the Change command and change the elevation from there.

Posted
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]:

Posted

Thanks! I was able to make a macro using the ssget command that does exactly what i want. I appreciate the help!

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

Posted

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

Posted

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?

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

Posted

Oh, thats cool! So a reactor kicks in at a predefined time? Does this effect the speed of the program?

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

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