GetService Method


Get the service based on the service identifier from the fabrication configuration in the current document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Since: 2016

Syntax

C#
public FabricationService GetService(
	int serviceId
)
Visual Basic
Public Function GetService ( _
	serviceId As Integer _
) As FabricationService
Visual C++
public:
FabricationService^ GetService(
	int serviceId
)

Parameters

serviceId
Type: System Int32
The service identifier.

Return Value

The service based on the service identifier.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →