CoordinationModelLinkUtils
The methods provided by this utility class support the managing of Coordination Model links in Revit documents and their visibility settings control in Revit views.
Coordination Model links can be created from Autodesk Docs 3D views or local .nwc or .nwd files.
A Coordination Model type holds the data that defines the link to a Autodesk Docs 3D view or a local .nwc or .nwd file. This data can be retrieved in the CoordinationModelLinkData object.
A Coordination Model type can have multiple Coordination Model instances.
Coordination Model type is an ElementType of BuiltInCategory.OST_Coordination_Model category. Coordination Model instance is an Element of BuiltInCategory.OST_Coordination_Model category.
System.Object
Autodesk.Revit.DB.ExternalData.CoordinationModelLinkUtils
public static class CoordinationModelLinkUtils
| Name | Return Type | Description |
|---|---|---|
| ContainsCategory(Document, ElementType, String) | Boolean | Checks whether a provided string is a element category name in the provided AutodeskDocs Coordination Model type. |
| GetAllCoordinationModelInstanceIds(Document) | ISet<ElementId> | Gets all Coordination Model instance ids in the document. |
| GetAllCoordinationModelTypeIds(Document) | ISet<ElementId> | Gets all Coordination Model type ids in the document. |
| GetAllPropertiesForReferenceInsideCoordinationModel(Document, Element, Reference) | IList<CoordinationModelElementProperty> | Gets all the properties for the provided Coordination Model instance reference. |
| GetCategoryForReferenceInsideCoordinationModel(Document, Element, Reference) | String | Returns the category name for the provided element reference inside the provided Coordination Model instance. |
| GetColorOverride(Document, View, Element) | Color | Gets the color override value for the provided Coordination Model type. |
| GetColorOverrideForCategory(Document, View, ElementType, String) | Color | Returns the color override value for the provided element category name inside the provided Coordination Model type. |
| GetCoordinationModelTypeData(Document, ElementType) | CoordinationModelLinkData | Gets link data for the provided Coordination Model type. |
| GetTransparencyOverride(Document, View, Element) | Int32 | Gets the transparency override value for the provided Coordination Model type. |
| GetVisibilityOverride(Document, View, Element) | Boolean | Gets the visibility override for the provided Coordination Model instance or type. |
| GetVisibilityOverrideForCategory(Document, View, ElementType, String) | Boolean | Gets the visibility override for the provided element category name in the provided Coordination Model type. |
| GetVisibilityOverrideForReferenceInsideCoordinationModel(Document, View, Element, Reference) | Boolean | Gets the visibility for the provided reference inside the Coordination Model from Autodesk Docs. |
| IsCoordinationModelInstance(Document, Element) | Boolean | Checks whether an element is a Coordination Model instance. |
| IsCoordinationModelType(Document, Element) | Boolean | Checks whether an element is a Coordination Model type. |
| Link3DViewFromAutodeskDocs(Document, String, String, String, String, CoordinationModelLinkOptions) | Element | Creates a Coordination Model instance based on the information provided by the specified Autodesk Docs data and linking options. |
| LinkCoordinationModelFromLocalPath(Document, String, CoordinationModelLinkOptions) | Element | Creates a Coordination Model instance using the absolute path of a .nwc or .nwd file and the linking options. |
| Reload(Document, ElementType) | None | Reloads the provided Coordination Model type element. |
| ReloadAutodeskDocsCoordinationModelFrom(Document, ElementType, String, String, String, String) | None | Reloads a Autodesk Docs Coordination Model type from the specified Autodesk Docs data. |
| ReloadLocalCoordinationModelFrom(Document, ElementType, String) | None | Reloads a local Coordination Model type from the specified absolute path of a .nwc or .nwd file. |
| SetColorOverride(Document, View, Element, Color) | None | Sets the color override value for the provided Coordination Model type. |
| SetColorOverrideForCategory(Document, View, ElementType, String, Color) | None | Set the color override value for the provided element category name inside the provided Coordination Model type. |
| SetTransparencyOverride(Document, View, Element, Int32) | None | Sets the transparency override value for the provided Coordination Model type. |
| SetVisibilityOverride(Document, View, Element, Boolean) | None | Sets the visibility override for the provided Coordination Model instance or type. A value of true means that the graphics are visible. |
| SetVisibilityOverrideForCategory(Document, View, ElementType, String, Boolean) | None | Sets the visibility override for the provided element category name inside the provided Coordination Model type. |
| SetVisibilityOverrideForReferenceInsideCoordinationModel(Document, View, Element, Reference, Boolean) | None | Sets the visibility override for the provided reference inside the Coordination Model instance. A value of true means that the graphics are visible. |
| Unload(Document, ElementType) | None | Unloads the provided Coordination Model type element. |