Is there a way to turn off 1 or both of the extension lines of a dimension? I couldn't find a dxf code. Is there a way to do this?
Thanks
|
Is there a way to turn off 1 or both of the extension lines of a dimension? I couldn't find a dxf code. Is there a way to do this?
Thanks
not sure if this helps you or not...might be of assistance down the road though
Last edited by d_m_hopper; 2008-01-25 at 04:25 AM.
dimse1 and dimse2 <options> <on/off> btw I use 2008
you can use setvar in your code to achieve what you are looking for
Here's some code to turn both extension lines off.
(Thanks to d_m_hopper for the variables)
It worked pretty good when I tested it.Code:(defun c:deo (/ dm d1 d2) (setq dm (ssget)) (setq d1 (getvar "dimse1")) (setq d2 (getvar "dimse2")) (setvar "dimse1" 1) (setvar "dimse2" 1) (command "dim" "update" dm "" "exit") (setvar "dimse1" d1) (setvar "dimse2" d2) (princ) )
Thanks Ted,
That worked perfectly, it changes the extension lines and also keeps my dimstyle unchanged.
The only drawback I can see is it keeps the dimension override.
Mine returns it to the previoius dimsyle settings.
I modified it:
Code:(defun c:deo2 () (command "DIMOVERRIDE" "SE1" "1" "SE2" "1" "" (ssget) "") (command "DIMOVERRIDE" "SE1" "0" "SE2" "0" "" "") (princ) ) (princ)