2027 Class
Changes 8
C

CoordinationModelLinkUtils

Description:
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.
Remarks:

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.

Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ExternalData.CoordinationModelLinkUtils
public static class CoordinationModelLinkUtils
Name Return Type Description
M ContainsCategory(Document, ElementType, String) Boolean Checks whether a provided string is a element category name in the provided AutodeskDocs Coordination Model type.
M GetAllCoordinationModelInstanceIds(Document) ISet<ElementId> Gets all Coordination Model instance ids in the document.
M GetAllCoordinationModelTypeIds(Document) ISet<ElementId> Gets all Coordination Model type ids in the document.
M GetAllPropertiesForReferenceInsideCoordinationModel(Document, Element, Reference) IList<CoordinationModelElementProperty> Gets all the properties for the provided Coordination Model instance reference.
M GetCategoryForReferenceInsideCoordinationModel(Document, Element, Reference) String Returns the category name for the provided element reference inside the provided Coordination Model instance.
M GetColorOverride(Document, View, Element) Color Gets the color override value for the provided Coordination Model type.
M GetColorOverrideForCategory(Document, View, ElementType, String) Color Returns the color override value for the provided element category name inside the provided Coordination Model type.
M GetCoordinationModelTypeData(Document, ElementType) CoordinationModelLinkData Gets link data for the provided Coordination Model type.
M GetTransparencyOverride(Document, View, Element) Int32 Gets the transparency override value for the provided Coordination Model type.
M GetVisibilityOverride(Document, View, Element) Boolean Gets the visibility override for the provided Coordination Model instance or type.
M GetVisibilityOverrideForCategory(Document, View, ElementType, String) Boolean Gets the visibility override for the provided element category name in the provided Coordination Model type.
M GetVisibilityOverrideForReferenceInsideCoordinationModel(Document, View, Element, Reference) Boolean Gets the visibility for the provided reference inside the Coordination Model from Autodesk Docs.
M IsCoordinationModelInstance(Document, Element) Boolean Checks whether an element is a Coordination Model instance.
M IsCoordinationModelType(Document, Element) Boolean Checks whether an element is a Coordination Model type.
M 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.
M LinkCoordinationModelFromLocalPath(Document, String, CoordinationModelLinkOptions) Element Creates a Coordination Model instance using the absolute path of a .nwc or .nwd file and the linking options.
M Reload(Document, ElementType) None Reloads the provided Coordination Model type element.
M ReloadAutodeskDocsCoordinationModelFrom(Document, ElementType, String, String, String, String) None Reloads a Autodesk Docs Coordination Model type from the specified Autodesk Docs data.
M ReloadLocalCoordinationModelFrom(Document, ElementType, String) None Reloads a local Coordination Model type from the specified absolute path of a .nwc or .nwd file.
M SetColorOverride(Document, View, Element, Color) None Sets the color override value for the provided Coordination Model type.
M SetColorOverrideForCategory(Document, View, ElementType, String, Color) None Set the color override value for the provided element category name inside the provided Coordination Model type.
M SetTransparencyOverride(Document, View, Element, Int32) None Sets the transparency override value for the provided Coordination Model type.
M 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.
M SetVisibilityOverrideForCategory(Document, View, ElementType, String, Boolean) None Sets the visibility override for the provided element category name inside the provided Coordination Model type.
M 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.
M Unload(Document, ElementType) None Unloads the provided Coordination Model type element.