Layer Translator Deleting Mappings

Layer Translator Deleting Mappings

squire3364
Contributor Contributor
1,005 Views
4 Replies
Message 1 of 5

Layer Translator Deleting Mappings

squire3364
Contributor
Contributor

Hi all,

 

I've been working on a layer translator to translate from one standard to another but i've run into a few issues.

 

1. After mapping layers and saving the .dws file the layers not mapped during that session are purged. I've read that this is an intended action, however it is a pain to reload the purged layers every time I map a couple layers. Is there a way to change this action?

 

2. After doing multiple sessions of mappings the previous mappings disappear on me. I believe it's because of the purge in issue 1, but I'm no expert on this. 

 

The goal of this project is to have a layer translator that i can continually update between two standards as there is an abundance of layers that don't make it into every drawing.

 

Is there something I'm doing wrong or am I just misunderstanding this tool?

 

Thank you in advance for any help that can be provided.

0 Likes
Accepted solutions (1)
1,006 Views
4 Replies
Replies (4)
Message 2 of 5

pendean
Community Legend
Community Legend

@squire3364 wrote:

I've been working on a layer translator to translate from one standard to another...


Are you stating you are NOT using the core command, but a customized solution you've created (or had create for you, or downloaded/edited)? If yes, you'll need to share the code please.

0 Likes
Message 3 of 5

squire3364
Contributor
Contributor
Accepted solution

I apologize for the miscommunication, I am using the core command of Laytrans.

 

After a lot more digging I seem to have figured out the mappings disappearing issues. It seems that between drawings the layer properties change and the layer translator doesn't recognize it as the same translation so i had to re-map it; thus making the original mapping not recognize it. 

 

I think i found a solution to that issue in the form of lisp function that changes all the layer properties to white, continuous, etc. then translating that. The process being "non standard layers/ properties" -> "basic properties, same names" -> "mapping based on the basic properties to a correct standard" -> " lisp function to default the properties then layer translate once mapping is good"

 

I still don't understand the reason for the laytrans command to purge the standards file of unused layer, etc. 

 

 

0 Likes
Message 4 of 5

pendean
Community Legend
Community Legend

@squire3364 wrote:

I still don't understand the reason for the laytrans command to purge the standards file of unused layer, etc. 


From LAYTRANS page in HELP:

https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2021/ENU/AutoC...

 

pendean_0-1671223053057.png

 

0 Likes
Message 5 of 5

squire3364
Contributor
Contributor

Yeah, I saw that portion of the file.

 

It would be more helpful to me if it didn't automatically purge everything when I saved new mappings though.

 

Regardless I appreciate your quick responses, I think my issue is just a function of AutoCAD that I can't turn off.

 

Unless there is a way to turn the automatic purge after mappings off, I think I figured out the issue and this can be set to solved.

0 Likes