CreateTransformed Method


Creates a new Solid which is the transformation of the input Solid.

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

Syntax

C#
public static Solid CreateTransformed(
	Solid solid,
	Transform transform
)
Visual Basic
Public Shared Function CreateTransformed ( _
	solid As Solid, _
	transform As Transform _
) As Solid
Visual C++
public:
static Solid^ CreateTransformed(
	Solid^ solid, 
	Transform^ transform
)

Parameters

solid
Type: Autodesk.Revit.DB Solid
The input solid to be transformed.
transform
Type: Autodesk.Revit.DB Transform
The transform (which must be conformal).

Return Value

The newly created Solid.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions ArgumentOutOfRangeException transform is not conformal. -or- transform has a scale that is negative or zero.

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 →