ConceptualConstructionTypeGetGBSId Method

Gets the Green Building Studio identifier associated with the construction.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public int GetGBSId(
	ElementId massSurfaceSubCategoryId
)

Parameters

massSurfaceSubCategoryId  ElementId
The ElementId of a valid Mass subcategory of a MassSurfaceData.

Return Value

Int32
Returns the integer id used to represent the ConceptualConstructionType.
Exceptions
ExceptionCondition
ArgumentException The input Element massSurfaceSubCategoryId is not a valid subcategory value for MassSurfaceData. -or- The ElementId massSurfaceSubCategoryId is not appropriate for this ConceptualConstructionType.
ArgumentNullException A non-optional argument was null
Remarks
Sometimes the GBSId is different for the same ConceptualConstructionType depending on the mass subcategory it is related to. This is usually the case, for example, for window and skylight constructions, which do not share GBSid's even when they share ConceptualConstructionTypes.
See Also