OnRPC Method


This method marks the beginning of export of an RPC object.

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

Syntax

C#
void OnRPC(
	RPCNode node
)
Visual Basic
Sub OnRPC ( _
	node As RPCNode _
)
Visual C++
void OnRPC(
	RPCNode^ node
)

Parameters

node
Type: Autodesk.Revit.DBRPCNode
A node with asset information about the RPC object.

Remarks

This method is only called for photo-rendering export (a custom exporter that implements IPhotoRenderContext). When an RPC object is encountered for a model context export (a custom exporter that implements IModelExportContext), the RPC object will be provided as a polymesh (via OnPolymesh(PolymeshTopology)).

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 →