AutoCAD 2007/2008/2009

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

dimscale replacement

166 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,475
Registered: ‎08-15-2008
Message 2 of 4 (166 Views)

Re: dimscale replacement

06-19-2009 01:02 PM in reply to: jedijermx
Divide the cannoscalevalue into 1
1 / 0.0208333333 = 48
New Member
Posts: 2
Registered: ‎06-19-2009
Message 3 of 4 (166 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,475
Registered: ‎08-15-2008
Message 4 of 4 (166 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community




Connect with AutoCAD

Twitter

Facebook

Blogs

Pinterest

Youtube