Share

DirectShapeLibrary.AddDefinition(String, GeometryObject) Method

Add a definition to be reused by instances. A definition is a single geometry object.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public void AddDefinition(
	string id,
	GeometryObject GNode
)

Parameters

id  String
ID of the definition to be added. Must be unique.
GNode  GeometryObject
Definition as a single Geometry object

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

See Also

Reference

Was this information helpful?