Jump to content

Passing info to LAYTRANS from within LISP


Recommended Posts

Posted

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,

Posted

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?

Posted (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 by EntDraught
Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...