RyanAtNelco Posted October 22, 2009 Posted October 22, 2009 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! Quote
alanjt Posted October 22, 2009 Posted October 22, 2009 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? Quote
alanjt Posted October 22, 2009 Posted October 22, 2009 You can also just select them with the Change command and change the elevation from there. Quote
alanjt Posted October 22, 2009 Posted October 22, 2009 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]: Quote
RyanAtNelco Posted October 22, 2009 Author Posted October 22, 2009 Thanks! I was able to make a macro using the ssget command that does exactly what i want. I appreciate the help! Quote
alanjt Posted October 22, 2009 Posted October 22, 2009 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. Quote
alanjt Posted October 22, 2009 Posted October 22, 2009 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 Quote
RyanAtNelco Posted October 23, 2009 Author Posted October 23, 2009 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? Quote
alanjt Posted October 23, 2009 Posted October 23, 2009 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. Quote
RyanAtNelco Posted October 23, 2009 Author Posted October 23, 2009 Oh, thats cool! So a reactor kicks in at a predefined time? Does this effect the speed of the program? Quote
alanjt Posted October 23, 2009 Posted October 23, 2009 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. 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.