I’ve been using scripts in an Worksession environment. If I try to create a layer name in the active Document, which already exists in an “not active” file, it is not created. Also layer assignment does’t always work correctly.
I didn’t get to the bottom of the problem yet, but there is some issue there. Currently I’m working with Python an VB Scripts in Parallel. (one after the other).
Also I don’t have time to really track it down right now and report the error thoroughly. Just posting it now, so I don’t forget to post it.
please find attached a Zip File with a dummy worksession and a simple script file.
I believe the problem is the “IsLayer” function.
The way I would believe the “IsLayer” function should return “True” if the layer doesn’t exist in the current/active document opposed to existing in the current worksession.