AutoCAD 2007/2008/2009 DWG Format
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
dimscale replacemen t
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
145 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
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
Re: dimscale replacemen t
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-19-2009 01:02 PM in reply to:
jedijermx
Divide the cannoscalevalue into 1
1 / 0.0208333333 = 48
1 / 0.0208333333 = 48
Re: dimscale replacemen t
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-22-2009 06:49 AM in reply to:
jedijermx
do you know how to write that in the above script?
Re: dimscale replacemen t
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
I make no claims to being an accomplished lisp writer, but the above should work.
