Macro scale basepoint

Macro scale basepoint

Anonymous
Not applicable
651 Views
5 Replies
Message 1 of 6

Macro scale basepoint

Anonymous
Not applicable

Iam having trouble with my macro for scaling.

i have over 5000 drawings that i need to scale from meters to milimeters.

each drawing has a defined basepoint that is custom to each drawing.

is there a command or something to make it select the original selected basepoint when i am using the scale command?

i dont want to select 5000 basepoints individualy.

0 Likes
652 Views
5 Replies
Replies (5)
Message 2 of 6

ВeekeeCZ
Consultant
Consultant

@Anonymous wrote:

... each drawing has a defined basepoint that is custom to each drawing. ...


 

How? Post a sample drawing with removed sensitive content.

0 Likes
Message 3 of 6

Anonymous
Not applicable

here is an example drawing

0 Likes
Message 4 of 6

ВeekeeCZ
Consultant
Consultant

Ok, I see. So your trouble is that you know how to write such macro, just don't know how to retrieve the base.

BTW you're using full acad, not LT?

0 Likes
Message 5 of 6

Anonymous
Not applicable

Im using full autoCAD yes.

Indeed i made the macro with the record button in autocad.

the thing is when i make the command scale and select all is asks to specify the base point when each drawing would have 0,0 is would be easy but each drawing has a specific basepoint and i was wondering if there is a command or something that it would look at the original basepoint.

now i need to check with eacht drawing for its original basepoint and than i need to select that point with scaling.

A few drawings would be no problem but over 5000 is a bit of a pain.

0 Likes
Message 6 of 6

ВeekeeCZ
Consultant
Consultant

Ok, then use this expression

(getvar 'insbase)

to get a ref point. You don't need to test whether it's defined or not.

 
 
0 Likes