At the moment I am trying to create a script that places tags at vertical ducts that crosses level lines.
What I have done so far:
selected a view in which to tag.
select all vertical ducts in view.
create planes at associated level and level above.
For the next part of my script I want to intersect the curves from my ducts with the solids I placed at the levels. But i dont get that part to work. I want the following:
If it intersect only with associated level place tag A
Thank you so much for your help. I managed to shrink my script down a lot using your script as an example xD.
So with your script I’m almost there but I stil have a problem with actualy placing the tags. At the moment I have this:
Is there a good node that lets u place difrent tags on a list of elements? I’ll keep trying myself, but if you have more pointers, they are very welcome
Hi Lennard,
You could try something like this, where you associate a family type (tag) with every possible True/False combination from your intersection results.
So now I have a list of vertical ducts, and a list of what tags to place. (in the red circle’s)
The problem I have now is uding those list to place the tags. (in the blue circle)
Thanks guys, got this working with a combination of your methods.
Very satisfying when it works.
Unfortunately had to give up on Create Annotation Tag… it just doesnt work, with all possible combinations, and no way to find out why
Used Tag.ByElement instead and then changed tag types afterwards.
A few small improvements;
Uses view range instead of level above/below, as this can be significantly different in a given view.
A more thorough check for vertical, sloped and horizontal elements.
Multicategory tag, so this should work for all linear elements.
Optional writing of “Is Vertical” to a parameter to use for other stuff.
Next step… tag all categories in all views and find a strategy for tagging parallel pipes…