RVTDocs.com

AnalyticalPowerDistributableNodeData.DistributionSystem

Property
Description:
The distribution system of the power distributable node.
Remarks:
In the case of a transformer, it's crucial that the number of phases in the secondary distribution system matches that of the primary distribution system. If the number of phases in the primary system is set to be different from that of the secondary distribution system, it will result in a 'PrimaryNumOfPhasesNotEqualWithSecondary' error. If you anticipate this discrepancy, you can avoid the error by first setting the secondary distribution system to InvalidElementId, and then setting the primary distribution system.
Syntax
public ElementId DistributionSystem { get; set; }
Exceptions
Exception Condition
ArgumentException When setting this property: The id isn't a distribution system id. -or- When setting this property: The distribution system id can't be set to the power distributable node.
ArgumentNullException When setting this property: A non-optional argument was null