UnloadServices Method


Unload the specified fabrication services from the project.

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

Syntax

C#
public void UnloadServices(
	IList<int> serviceIds
)
Visual Basic
Public Sub UnloadServices ( _
	serviceIds As IList(Of Integer) _
)
Visual C++
public:
void UnloadServices(
	IList<int>^ serviceIds
)

Parameters

serviceIds
Type: System.Collections.GenericIListInt32
The identifiers of the fabrication services to unload.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Fabrication services can not be unloaded if they are in use currently. -or- Some services are not loaded yet.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException The current fabrication configuration is not connected and updated to source configuration. Reload and try again.

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 →