Lisp routine to help draw to scale of an existing drawing.

Lisp routine to help draw to scale of an existing drawing.

areyesK69TV
Explorer Explorer
583 Views
4 Replies
Message 1 of 5

Lisp routine to help draw to scale of an existing drawing.

areyesK69TV
Explorer
Explorer

Hello everybody. I honestly do not know if this is possible but I am looking for a way, to incorporate in my lisp routine, to be able draw to the scale of an already existing drawing. For example: When I export profile views they are in a 1:150 scale and what I draw from the lisp is to big for it. (I have attached a video below). Any help will be appreciated. Many thanks in advance!

0 Likes
584 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant

You gotta do a better job in explanation to be understood. Some random clicking by spanish prompts then calling unknown command... it really does not help. But it could be just me.

0 Likes
Message 3 of 5

john.uhden
Mentor
Mentor

(getvar "cannoscalevalue")

John F. Uhden

0 Likes
Message 4 of 5

areyesK69TV
Explorer
Explorer

My sincere apologies. As you seen in the video attached, when I start to click in the existing drawing (scale 1:150), which is my autolisp routine running, I ask the user (in spanish) "Where does the profile start?" followed by, "What is the base of the profile?" "What is the end of the profile?" by doing so I am taking the X and Y coordinates of those points. After that, based on those coordinates the routine then draws the table (seen below the drawing) but it draws the table as a 1:1 scale (I believe). So my question is: If there is a way to automatically adjust the scale to the already existing scale of an existing drawing? Again my apologies.

0 Likes
Message 5 of 5

pendean
Community Legend
Community Legend

 What LISP routine? Where is it? What's the code?

 

Are you watching your own screen? At one point your "whatever" is erroring out so your actual LISP with its code fully intact is needed if you want help cleaning it up

pendean_0-1643229758164.png