Great, thank you. I have read the Element Tracking guide, but I do have a question:
If I use a single script (see below) multiple times, each time sending through a different set of geometry with different subcategories into different families, do the components (Add Subcategory for example), actually track each of these transactions even after the script has been used for a different set of geometry/subcategories? Or is it more that the Add Subcategory component, for example, forgets what it just did, looks at the names in its Names input and compares them with existing subcategories, and just makes the ones that don’t exist yet?
I am getting this behavior:
There are 5 DOOR subcats already in the model:
I send the DOOR layers through, and the subcategories are created from these layers
Then I send the TMBR layers through, and the newly added door subcats disappear:
This suggests that I cannot reuse an Add Subcategories component for different sets of inputs, as the tracking is limited to a single stream (unless I send a single stream with grafted branches of inputs, in one transaction). A sequential use of the component is not supported. Is this correct?
So I think the correct solution is for the Add Subcategories function of my script to be separate from the New Component Family pipeline. I should process all Rhino layers, sort them according to my tags, graft these into branches, and create/delete/rename all subcats through a single Add Subcat component. Then in the Family pipeline, I should reference the needed subcats from Revit, using a list of relevant rhino layers, and not add or modify any subcats in that workflow.
One remaining question is whether sequential use of New Component Family and Add Component (Location) is supported? In other words, can I send one set of inputs into those components, then send another, and it will not delete or corrupt the first transaction?
I am curious to hear what others are doing
Incidentally, I think it would be very useful for the Add Subcategory component to give a report of what it did: added these subcats, renamed these, deleted these. I am setting up views and color coding subcats to get visual confirmation of what is happening–very clumsy