ScaleRef

Abstract: Scales the selected objects to match the final user-specified length.

Description: This tool scales the selected objects by a factor that is computed by defining an unknown length and a final specified length either by typing it numerically or also by defining it by distance.

Working Scenarios: This tool is really helpful when working with drafted models where you have some objects that you want to scale perfectly to a specified length. Without to much speaking, it’s very similar to the reference option in the scale command in AutoCAD (or Resize command in ArchiCAD).

User Usage: Run the script and follow the prompts.

Developer Usage: You can call this tool from any other script using the following function call:
ScaleRef(oInObjs,fDist,fLength)

Where oInObjs is a collection of XSI objects that contains all objects you want to scale.
fDist is float of original distance.
fLength is a float for the final length.
This tool returns true if it succeeds and false if it failed for any reason.

Nature: Script

Applies To: XSI 4.0 on NT,Win2K,XP

Languages: VBScript