TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: LaPan on September 13, 2007, 09:43:18 PM

Title: Lisp for convert drawing units
Post by: LaPan on September 13, 2007, 09:43:18 PM
Is there a lisp that can change drawing from; example inches to mm?
Right now what am I doing is manually scale the drawing.....

Lisp 'Guru' out there can u help me?
Title: Re: Lisp for convert drawing units
Post by: kpblc on September 14, 2007, 01:46:02 AM
(setvar "lunits" 2) perhaps?
Title: Re: Lisp for convert drawing units
Post by: VVA on September 14, 2007, 01:56:17 AM
Or
Code: [Select]
(setvar "insunits" 4) ;_mm
(setvar "insunits" 1) ;_inches
Title: Re: Lisp for convert drawing units
Post by: Kerry on September 14, 2007, 05:21:30 AM
Exactly what do you want to convert ?
Just the drawing entitys or more or everything. ?
What have you tried ?
... and what are you doing manually .. exactly ?
Title: Re: Lisp for convert drawing units
Post by: LaPan on September 16, 2007, 09:15:17 PM
Ok, like this.
I'm working on drawing that using MM as a default unit.
I want to insert drawing from other consultant that using inches or feet as their default units.
When I insert their drawing to my drawing, the drawing become to small and I must scale it up to match with my drawing.

So, is there a way that I can do so that drawing automatically become in same units/scale with my drawing when I'm insert it?
Title: Re: Lisp for convert drawing units
Post by: Jeff_M on September 16, 2007, 09:56:31 PM
Look into the INSUNITS, INSUNITSDEFSOURCE, and INSUNITSDEFTARGET sytem variables.
Title: Re: Lisp for convert drawing units
Post by: Kerry on September 16, 2007, 10:07:58 PM
What Jeff said ^^

General tip for next time :
If the question had been asked as per post Reply#4 you may have had this answer 4 days ago.

:-)