RevitLinkGraphicsSettings.SetPhase
Method
Description:
Sets phase id and phase type of RevitLinkGraphicsSettings.
Sets phase id and phase type of RevitLinkGraphicsSettings.
Parameters
Parameter | Type | Description |
---|---|---|
phaseType | LinkVisibility | The type of the phase. |
phaseId | ElementId | The id of the phase from the linked document or <a href="08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm">InvalidElementId</a>. If phaseType is set to <a href="f33e82f3-5bec-4532-457e-d01dc537024f.htm">ByHostView</a> or <a href="f33e82f3-5bec-4532-457e-d01dc537024f.htm">ByLinkView</a> the phaseId must be set to <a href="08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm">InvalidElementId</a>. If phaseType is set to <a href="f33e82f3-5bec-4532-457e-d01dc537024f.htm">Custom</a> and phaseId is <a href="08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm">InvalidElementId</a> the phase will reference to the last phase from the linked document. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |