Hello GC forum,I'm tyring to reference specific elements from a reference file, when trying to extract curves from the reference file (when using FromElementsInRange) I select FilterByLevelNames and enter in the name of an element I want extracted. However, GC doesn't seem to filter it at all, instead it continues to extract all elements within the range.Am I doing something wrong? Am i supposed to use {Level Name} or ''Level Name''? Or is there an alternate way to extract specific elements from a reference file?Any help would be much appreciated.
For some clarification:
Here you can see GC selects all the extracted reference lines when selecting the Curve Node. Even when a filterbylevelname is used.
Perhaps post the dgn file, it might make it easier to diagnose. With regards to level name filter input, you need to specify it as a string e.g. "Level Name" with quotations, or if you want to define multiple levels in your filter then wrap them in curly brackets e.g. {"Level-A", "Level-B"}. You can tell that it can take an array when you hover over the input since it specifies string[] (the square brackets indicate it is an array)
Answer Verified By: Boaz O
I just did a bit of testing. I was thinking it might be spaces in the level names. I created a new level and placed some geometry on it and it didn't work. What I found is if I just created a level in the file it would not find the geometry. Once I closed and opened the file again it worked.Worth a try. I tested by "Level-A" and "Level A" they both worked after I closed and opened again.
Maybe with a reference file the level needs to be "created" in the current dgn file. For example if it was a library level. sorry didn't test reference files.
ThanksWayne
Hello Wayne,
I got it working with Edwards' solution. The problem was defining the Level name, I just to press'' ' ''twice, but GC only recognises a shift-". Thank you very much for helping!
-Boaz
Hello Edward,
I got it working! The problem was defining the Level Name. Thank you very much for your (quick) help!