Crumple FamilyDoc.ParameterRemove

I’m trying to delete a parameter in all families of a folder using crumple. I’m opening them deleting a parameter and closing the documents. I can’t seem to get FamilyDoc.ParameterRemove to work. I’ve tried not using levels, inputting the parameter name, inputting the parameter def, using cycle to make the lists match. It isn’t providing a warning so I’m not sure what is going wrong.

I also noticed that the first families close seems to not be working.

Most of my nodes dont tend to play nicely across multiple docs depending on their lacing, levels and combinations. Try switching lacing to longest vs auto and it might work. I tend to just do these things in Python these days…

You will need the parameters to be the actual parameters from the specific documents also as opposed to a cycled list I think.

Family doc close should work if you set to longest and ensure you passthrough to it last.

1 Like

Thanks, I’ll try that stuff out.

1 Like