EntDraught Posted August 25, 2023 Posted August 25, 2023 Hello, Is there an easy way to avoid the window dialogue box for the LAYTRANS command and pass all the info through LISP? The only info I can find in autocad's literature are a few parameters for acet-laytrans such as file name and an integer representing the options found in the settings button on the layer translate window. There are more things to click and do in the LAYTRANS window such as LOAD FILE, MAP SAME, etc.. Is this even possible? It's clearly above my knowledge level but it would help tremendously with my current task if there was a way to automate this. Thanks, Quote
Emmanuel Delay Posted August 28, 2023 Posted August 28, 2023 Sure. Sounds quite easy to solve this problem. Can you describe how you would like it to work? For example do you have a list A of layers to be translated by list B (or something)? (This list could be hardcoded in the code, but can just as well be read from a .txt file (of .csv). Can you give specific examples? Quote
EntDraught Posted August 28, 2023 Author Posted August 28, 2023 (edited) 10 hours ago, Emmanuel Delay said: Sure. Sounds quite easy to solve this problem. Can you describe how you would like it to work? For example do you have a list A of layers to be translated by list B (or something)? (This list could be hardcoded in the code, but can just as well be read from a .txt file (of .csv). Can you give specific examples? Thank so much for taking the time to help! On the 'translate to' side I would like for it to LOAD the current drawing and then have the MAP SAME button clicked. Then the translate button clicked. On the following dialogue box I need the TRANSLATE ONLY button selected. That's basically it. I don't need it to do anything with the filter settings I just want it to use whatever is set by default. Edited August 28, 2023 by EntDraught Quote
BIGAL Posted August 28, 2023 Posted August 28, 2023 You skipped over the solution by Emmanuel, you can dump the layers to a text file very easy, the before list, the after list and make them into a csv file then read that file,. You can keep a master version as a Excel file. Makes adding easy. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.