SetServicesToLoad Method


Sets the services which are to be loaded or not next time reloadConfiguration is called. If a service is not included but is currently loaded then it will be unloaded then.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2024

Syntax

C#
public bool SetServicesToLoad(
	IList<int> serviceIds
)
Visual Basic
Public Function SetServicesToLoad ( _
	serviceIds As IList(Of Integer) _
) As Boolean
Visual C++
public:
bool SetServicesToLoad(
	IList<int>^ serviceIds
)

Parameters

serviceIds
Type: System.Collections.GenericIListInt32

Return Value

Returns true if successful. May fail if any service currently loaded is not included and is in use so cannot be unloaded.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →