Ok I have a thought… may be crazy as are most things in my head, but I’m 90% certain it’s doable.
Make new parameters in the one line detail family called ‘Parent Panel ID’ and ‘Parent Panel Name’.
Make a new parameter in the modeled panels called ‘Associated One Line ID’.
Create your panels in the model. Don’t do any one line diagrams yet.
Get all electric panels by category. Query their ID and name. Filter out any panels with a value in the ‘Associated One Line ID’ field. Use the included panels below.
Create the panels in the one line diagram with dynamo using the list of panels and a generated sequence of points.
Set the values for ‘Parent Panel ID’ and ‘Parent Panel Name’ according to the list of parameters from the panels.
After creating the one line panels their element IDs will be in order to the mode panels were created. Set the original panels’ ‘Associated One Line ID’ with these values.
For the excluded panels, get their name and the ‘Associated One Line ID’. Select the elements by the ‘Associated One Line ID’ values and set the ‘Parent Panel Name’ values to the names from the modeled panels if the values didn’t previously match.
Toss in an informing pop up at the end to let you know how many panels were created and how many had names updated, and you have yourself a workflow for creating and updating your panels.
Just don’t forget to run this before you print.