Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Batch Mirror Multiple DWG's or DXF on the vertical axis

rhys.hughesEDGHC
Participant

Batch Mirror Multiple DWG's or DXF on the vertical axis

rhys.hughesEDGHC
Participant
Participant

I am trying to work out if there is a way to be able to mirror multiple DWG files all at once without having to open each DWG and use the mirror command.

 

I have tried using macro's but I can't seem to get this to work.

Does anyone has any suggestions to assist? 

 

Cheers

 

Rhys

0 Likes
Reply
Accepted solutions (1)
676 Views
7 Replies
Replies (7)

maratovich
Advisor
Advisor
Accepted solution

 

No problem. Use this - AutoRunLisp 

 

run.PNG

 

Specify commands:

"

_.mirror
_all

 

0,0
0,1
_yes

"

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes

rhys.hughesEDGHC
Participant
Participant

Thanks for this - before I purchase a licence can this be used on AutoCAD LT as well? @maratovich 

0 Likes

maratovich
Advisor
Advisor

No, it won't work in AutoCAD LT.
Neither Lisp, nor VBA, nor programs work in AutoCAD LT. This is an easy AutoCAD, just simple drawing.

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes

pendean
Community Legend
Community Legend
@rhys.hughesEDGHC Are you limited to AutoCADLT only? Then you are in the wrong forum and your post needs to be moved.
0 Likes

rhys.hughesEDGHC
Participant
Participant

Not limited anymore... AutoCAD 2022 installed @pendean 

0 Likes

rhys.hughesEDGHC
Participant
Participant

Hi @maratovich this works like a treat, one thing I have noticed however there are some DXF's that come up with points must be distinct; error: Function cancelled, do you know why this may be?

 

I have attached the DXF and also included an image to reference:

 

test1.png

 

Cheers

 

Rhys

0 Likes

maratovich
Advisor
Advisor

"the points must be different" ....
What's on the command line?
You need to increase the coordinates of the points
was 0,1 to make 0,1000 or more.

These are standard commands.
You can enter them with your hands one by one and check where the error is.
The first team is a mirror
the second is to select all objects
third - inter
fourth - coordinate 0,0
fifth -corridinate 0.1
the sixth is to remove the old mirror.

Coordinates 0,0 and 0,1 are X,Y

 

"

_.mirror
_all

 

0,0
0,1000
_yes

"

 

 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes