Hi everyone,
I’ve been working on a script for a few days now, and I just can’t seem to make any progress, even though I’ve searched for information on this forum and elsewhere. I’m sorry to bother you and ask for your help.
Basically, with this script, I want to define the line styles and visibility of various AutoCAD layers imported into a Revit project (CAD link). I’m able to create filters and modify the style and visibility of individual layers. However, when I try to use a selection menu (like the ones provided by Data-Shapes) to “select” multiple layers at once and make them all invisible… nothing happens.
But that’s not all! As you can see from the screenshot, even though the Data-Shapes menu correctly returns the filtered list of layers, the output inexplicably includes a layer that was neither filtered nor selected. This is really strange!
I’m attaching all the materials for testing… but I would be grateful if, in addition to a solution, you could help me understand what I’m doing wrong.
Thanks in advance!
Antonio
TEST_define Cad-Layer.dwg (152.9 KB)
TEST_define CAD-Layer.dyn (68.1 KB)