PreScale Method


Scales the linear part of this transformation and returns the result.

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

Syntax

C#
public Transform2D PreScale(
	double scale
)
Visual Basic
Public Function PreScale ( _
	scale As Double _
) As Transform2D
Visual C++
public:
Transform2D^ PreScale(
	double scale
)

Parameters

scale
Type: SystemDouble
The scale value.

Return Value

Returns a pointer to "this" Transform2D.

Remarks

The resulting transformation is equivalent to the application of the uniform scale and then this transformation, in this order.

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 →