It would be fantastic to be able to manage the addition of parameters and deletion without necessarily opening the family.
I find the work of: @
with the topic: Adding parameters to a family
That works perfectly for the addition of shared parameters but requires opening the family. Perhaps working on python you could do what I need but I’m not an expert on codes.
Any suggestions or help?
Thanks a lot to everyone.
Maybe this could be helpful:
I’m trying to Add some diferents shared parameters to some diferents families.
The result is not what I was expecting for.
I got for one family the A parameter in Dimension (PG_GEOMETRY) as expected, but nothing about B parameter.
In the second family, I got The A & B parameters but in Others(INVALID), don’t know why.
In the other hand, If I look at the Shared Parameters txt, there is an A parameter in General as a Text and a B parameter in Dimensions as a Number as exp…
To modify a file, one must first open the file to read the data contained therein - doesn’t matter what the file type is, EVERY file type works this way.
To open a Revit family, one must use Revit or you get a bunch of compressed data streams which don’t have any real meaning.
Ergo to modify a Revit family one must open the file in Revit. You can see more or less of this process depending on how you open the files.
Background open may work well with some modifications of the content
@MartinSpence previously provided.
Otherwise you could look into the Dynamo for Automation package, which allows bulk processing of Revit files with a single DYN. Info on this method can be found here:
GitHub - andydandy74/DynamoAutomation: Batch-processing of Revit models using the Dynamo visual programming environment
a node save journal file and the node run journal file would be a welcome addition here
open a family and do your thing
record a journal file of whatever your thing was, save that part
open a bunch of families and run that journal file on them
a bit like @Andreas_Dieckmann’s stuff
Hi to everyone,
thank you very much for your help and suggestions, I will work on what is indicated and I will keep you updated.