LAYTRANS Multiple Drawings

LAYTRANS Multiple Drawings

kieran.leadbetter
Advocate Advocate
680 Views
5 Replies
Message 1 of 6

LAYTRANS Multiple Drawings

kieran.leadbetter
Advocate
Advocate

Hello, would anyone know how to use the Laytrans command across multiple drawings at a single time, it appears to extract only the layers of the drawing I am in, forcing me to manually use this command on hundreds of drawigns.

Is there a program or method which extract all the layer properties from any selected drawing file which I can then control all the layers before running them, similar to a script but more of a manual window which I can control if that makes sense.

Kind Regards,

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

Sea-Haven
Mentor
Mentor

The  moment you introduce I want input then the automation stops. May have to just think out the square more. 

0 Likes
Message 3 of 6

MrJSmith
Advocate
Advocate

I am not familiar with LayTrans. Does this merge layers? Is that what you want to do? Or are you wanting to change properties of layers so they exist the same across multiple drawings?

 

Reason I ask is I am in the early stages of creating such a script, but unfortunately as @Sea-Haven has pointed out when you include human input (especially a lot of human input) it starts becoming more tedious and less automated. Because of this, the script I was thinking about is kind of on hold unless I can come up with a better method for the user to interact with all the different layer options one can set.

0 Likes
Message 4 of 6

kieran.leadbetter
Advocate
Advocate
I was hoping it would run through all the files selected, gather up all the layer names and properties, and only at the end of the file list would it then allow me to put my input into them if that makes sense, sorry
0 Likes
Message 5 of 6

pendean
Community Legend
Community Legend

@kieran.leadbetter wrote:
I was hoping it would run through all the files selected, gather up all the layer names and properties, and only at the end of the file list would it then allow me to put my input into them if that makes sense, sorry

Explore these ideas on this other site (free to join, don't ever let that stop you if you are serious about customizing)

https://www.cadtutor.net/forum/topic/61127-how-to-laytrans-multi-cad-file/?do=findComment&comment=50... 

 

Give up on the idea of you interacting with the underway task mid-processing: you'll want to deal with that validation/catch-that-odd-layer issue separately.

 

HTH

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

You could write to a file any dwg's names that need further investigation as they had some form of needing human interaction. If you use the "A" option append to file it will add to a file and allow you to close the text file and go to next dwg. So need a bit of lisp code to check is all OK. Like say 56 layers but only 50 checked. 

 

(setq fo (open "C:\\yourdirectory\\baddwgs.txt "A"))
0 Likes