AutoCAD 2007/2008/2009

Reply
New Member
jedijermx
Posts: 2
Registered: ‎06-19-2009
Message 1 of 4 (176 Views)

dimscale replacement

176 Views, 3 Replies
06-19-2009 07:25 AM
I have a lsp routine
that breaks a line in both directions the distance is per
the dimscale

now the dim scale is basicly off with annotative scaling on

is there another comand that can be used in its place

i tried cannoscalevalue but the #'s it gives back gets bigger the smaller the scale is
(the oposite of how dimscale worked)

lsp below





(defun C:BL (/ omode a b c pt1)
(defun *error* ()
(setvar "orthomode" omode)
(setvar "osmode" osmod)
(princ "\nError detected...aborting")
(terpri)
)
(setq SCL (getvar "dimscale"))
(setq omode (getvar "orthomode"))
(setq osmod (getvar "osmode"))
(setvar "orthomode" 1)
(setvar "osmode" 32)
(setq a (getpoint "\nSelect INTERSECTION :"))
(setvar "osmode" 512)
(INITGET "X")
(setq pt1 (getpoint a (strcat "\nSCL=" (RTOS SCL 2 2) "-Please pick lower line Yizil: Nea ")))
(if (= PT1 "X")
(progn
(*error*)
(exit)
)
)
(setvar "osmode" 0)
(setq b (angle a pt1))
(setq c (* SCL 0.040))
(COMMAND "BREAK" PT1 "F" (POLAR A B (- C)) (POLAR A B C))
(setvar "orthomode" omode)
(setvar "osmode" osmod)
)

any ideas
any help would be great
*Expert Elite*
GrantsPirate
Posts: 1,612
Registered: ‎08-15-2008
Message 2 of 4 (176 Views)

Re: dimscale replacement

06-19-2009 01:02 PM in reply to: jedijermx
Divide the cannoscalevalue into 1
1 / 0.0208333333 = 48
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.
New Member
jedijermx
Posts: 2
Registered: ‎06-19-2009
Message 3 of 4 (176 Views)

Re: dimscale replacement

06-22-2009 06:49 AM in reply to: jedijermx
do you know how to write that in the above script?
*Expert Elite*
GrantsPirate
Posts: 1,612
Registered: ‎08-15-2008
Message 4 of 4 (176 Views)

Re: dimscale replacement

06-22-2009 01:19 PM in reply to: jedijermx
(setq SCL (/ 1.0 (getvar "cannoscalevalue")))

I make no claims to being an accomplished lisp writer, but the above should work.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.