Table of Contents

Class ScaleObjects

Namespace
CADability.Actions
Assembly
CADability.dll

Scales (or copies and scales) the selected objects. The user enters the fixed point, the scaling factor (either directly or by a start point and an end point whose distances from the fixed point define the factor) or, if distortion is chosen, separate factors for x, y and z, and decides whether the originals are scaled or copies are created. Menu id: "ScaleObjects".

public class ScaleObjects : ConstructAction, ICommandHandler, IPropertyEntry
Inheritance
ScaleObjects
Implements
Inherited Members

Constructors

ScaleObjects(GeoObjectList)

public ScaleObjects(GeoObjectList list)

Parameters

list GeoObjectList

Methods

GetID()

Must be implemented by derived class. Returns an identification string. All CADability actions return the unique strings like "Draw.Line.TwoPoints" or "Zoom"

public override string GetID()

Returns

string

the identification of the action

OnDone()

Called, when the ConstructAction is done, i.e. all non-optional inputs have been fixed. The default implementation adds the active object (if it exists and HasValidData() returns true) to the active model and removes this action. Override this method if you need a different behaviour.

public override void OnDone()

OnSetAction()

Implements OnSetAction(). If you override this method don't forget to call the base implementation.

public override void OnSetAction()