Hide Table of Contents
ScaleEntities Method (ISketchManager)

Scales the specified entities while keeping their proportions the same.

.NET Syntax

Visual Basic (Declaration) 
Sub ScaleEntities( _
   double BasePointX As System.Double, _
   double BasePointY As System.Double, _
   double BasePointZ As System.Double, _
   double ScaleFactor As System.Double, _
   const dsLongArray& EntityTypeLongArray As System.Object, _
   const dsObjectPtrArray& EntitiesArray As System.Object _
) 
C# 
void ScaleEntities( 
   System.double BasePointX,
   System.double BasePointY,
   System.double BasePointZ,
   System.double ScaleFactor,
   System.object EntityTypeLongArray,
   System.object EntitiesArray
)
JavaScript 
ScaleEntities( 
   BasePointX : Number,
   BasePointY : Number,
   BasePointZ : Number,
   ScaleFactor : Number,
   EntityTypeLongArray : Array,
   EntitiesArray : Array
)
COM native C++ 
HRESULT ScaleEntities( 
   DOUBLE BasePointX,
   DOUBLE BasePointY,
   DOUBLE BasePointZ,
   DOUBLE ScaleFactor,
   VARIANT EntityTypeLongArray,
   VARIANT EntitiesArray
) 
C++ 
DSRESULT ScaleEntities( 
   double BasePointX,
   double BasePointY,
   double BasePointZ,
   double ScaleFactor,
   const dsLongArray& EntityTypeLongArray,
   const dsObjectPtrArray& EntitiesArray
) 

Parameters

BasePointX
x coordinate of the base point (see Remarks)
BasePointY
y coordinate of the base point (see Remarks)
BasePointZ
z coordinate of the base point (see Remarks)
ScaleFactor
Factor by which to scale the entities (see Remarks)
EntityTypeLongArray
Array of longs of the types of entities to scale as defined dsObjectType_e
EntitiesArray
Array of objects of the entities to scale

Remarks

The base point, if located on any of the specified entities, holds its original position during scaling, while all other points move by the same relative values in the direction of the x axis, y axis, and optional z axis. You can also select a point not on an existing entity as the base point. In this case, the distance from the base point to all other points making up the entity change by the same scale factor.

A scaling factor... Causes the entities to be...
larger than 1 enlarged by this factor.
between 0 and 1 reduced by this factor.

For example, the scaling factor of 3 enlarges the specified entities three times, while a scaling factor of 0.25 reduces the entities to a quarter of their original size.

 

See Also

Availability

DraftSight V1R1.3


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   ScaleEntities Method (ISketchManager)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2019 SP04

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.