As the title says, I am working on a script to change all instances of one family to another, while maintaining their instance parameters of the original family.
I am hitting a bit of a wall here. . . I am not getting any errors, but my output does nothing, showing only a list of the family to replace several times and no changes in model.
Apologies in advance for my nightmare of a filtering group, but I couldn’t get it to work with other filtering methods I tried. Code block to list.contains to a filter by bool was removing things it shouldn’t have. I now it is not elegant, open to any advice, but not the issue I’m having specifically.
If I make it as a one off for a specific family with the specific names of parameters it works fine, the goal is to be able to use it for multiple families (at different times of course) regardless of name or number of instance parameters.
Image of workspace:
Here is an image showing what I tried for making the filtering cleaner/more legible:
It was removing parameters it should not have, and leaving ones it should, so i am not sure where I went wrong. . .
Here is a copy of the .dyn:
ReplaceFamilyIntsances-TESTNEW.dyn (80.9 KB)
Any advice is appreciated. I have tried searching the forums, but no luck on finding another thread with what I am looking for.