Thank you all,
Parsing a list with a string helps. I can now Find/Freeze all XREF layers (Any Layer in the list of Layers from the current document containing “|”) with the String.Contains node.
But what I need to do is to pare a list down with another list.
If List A contains any String that matches any String in List B it should be in the new list.
Any ideas (nodes to use) how to pare a list down by another list would be appreciated.
Example:
List A: (From Current Document)
E-BOC
E-BOC-DEMO
E-UTILITY
E-UTILITY-DEMO
E-DTM
BASE|E-BOC
BASE|E-BOC-DEMO
List B: From CSV
-DEMO
-DTM
List C: Pared down list to Freeze
E-BOC-DEMO
E-UTILITY-DEMO
E-DTM
BASE|E-BOC-DEMO
1 Like
I did like this to get frozen or thawed layers both from external and master dwg
GetFrozenOrThawedLayerFromExternalFiles.dyn (30.1 KB)
I Found the List.SetIntersection node, and working with that… may have it.
1 Like
not sure if it’s possible with OOTB nodes, sound like a loop from python node.
I did like this to get frozen or thawed layers both from external and master dwg
I like that, it can be used when I am done to check to make sure it Froze the XREF and the Non-XREF layers for the same string.
1 Like
Yeah, i think it will take a Python node.
Python is next on my list to learn. I was hoping this task could be done with OOTB nodes.
Mine as well. Maybe this topic could be a good start.
I will give it a try if it’s ok with you? Probably no success from my side but you never know!
ok with me. If you get please let me know.
Well, I didn’t got better in Python but we have Copilot AI at the company so I tested it when I where travel by bus in to the office.
Rename the .txt to .csv and test it out.
You should be able to put all files in one folder and the test it out. I hope it works for you
xref2.dwg (603.8 KB)
Book1.txt (190 Bytes)
GetFrozenOrThawedLayerFromExternalFiles.dyn (36.5 KB)
masterfile.dwg (1.7 MB)
xref1.dwg (601.9 KB)
@btillett did it worked for you?
No. I will look at it some more this weekend. Even with the new python node I did not see a way of using wildcards to add the XREF layers.