RevitLinkGraphicsSettings.SetPhaseFilter
Method
Description:
Sets phase filter id and phase filter type of RevitLinkGraphicsSettings.
Sets phase filter id and phase filter type of RevitLinkGraphicsSettings.
Parameters
| Parameter | Type | Description |
|---|---|---|
| phaseFilterType | LinkVisibility | The type of the phase filter. |
| phaseFilterId | ElementId | The id of the phase filter from the linked document or <a href="08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm">InvalidElementId</a>. If phaseFilterType 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 phaseFilterId must be set to <a href="08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm">InvalidElementId</a>. If phaseFilterType is set to <a href="f33e82f3-5bec-4532-457e-d01dc537024f.htm">Custom</a> and phaseFilterId is <a href="08ae8886-6ab3-3ef5-d2e0-0da2ffa7bd2c.htm">InvalidElementId</a> the state of the phase filter will correspond to the None option in the UI. |
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 |