How do you change the load classification of an electrical connector?

How do you change the load classification of an electrical connector?

pgautamQS9VD
Contributor Contributor
438 Views
5 Replies
Message 1 of 6

How do you change the load classification of an electrical connector?

pgautamQS9VD
Contributor
Contributor

I cannot find a way to change the load classification of an electrical connector using the API.

 

Does anyone have any solutions?

Thank you!

0 Likes
439 Views
5 Replies
Replies (5)
Message 2 of 6

jeremy_tammik
Alumni
Alumni

The standard approach to solve a Revit API programming task is to determine the exact manual steps to achieve it in the user interface, observing best practices, and analyse the resulting changes in the BIM database using RevitLookup and similar tools. That will tell you what elements, relationships and properties are affected by the actions, and provide a basis for achieving the same effect programmatically:

  

https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-onto...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 6

pgautamQS9VD
Contributor
Contributor

Jeremy,

Thank you for your input. I do not have trouble finding the electrical connector in a family, I was wanting to know if there is a straightforward way to change the load classification of the electrical connector.

Also, when I associate the load classification parameter of the electrical connector to an instance parameter that I created which lets you choose the load classification, some light fixture types cannot be created and the only way I can proceed is by deleting the light fixture type(s) that cannot be changed. I struggle to understand why mere parameter association will cause this to happen. This happens even if I do it manually in the UI.

0 Likes
Message 4 of 6

jeremy_tammik
Alumni
Alumni

Are those two different question? One on how to modify load classification on a connector in a family definition, and the other on the parameter association messing up something in a way that I don't understand offhand? In any case, I passed them on to the development team for you and hop[e that they can advise. 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 6

jeremy_tammik
Alumni
Alumni

The development team agree, saying: as you mentioned in the forum, they seem to be two different questions. I don't think there is a good way to modify the connector information from the project document. As far as the second question, can we get the exact steps and sample code used to reproduce the problem? Last time I tried using our content, I was able to change the load classification without problem. Thanks!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 6 of 6

pgautamQS9VD
Contributor
Contributor

Thank you Jeremy, the solution is not exactly reproducible because this only happens in certain families and not others. In certain families, it will say that the type could not be created and that it has to be deleted to proceed.

0 Likes