Bcc.ScaleEntity({entity}, {xScaleFactor, yScaleFactor, zScaleFactor})

Description

This function is utilized to form an arc which is tangent to 3 entities.  

Parameters

The inputs to this function consist of 2 tables; one representing the entity to be scaled and the other representing the 3 scale factors.


  • entity - table providing the entity definition which is to be scaled
  • xScaleFactor - first double value in the second table which sets the scale factor in X
  • yScaleFactor - second double value in the second table which sets the scale factor in Y
  • zScaleFactor - third double value in the second table which sets the scale factor in Z


NOTE: In order to scale an object uniformly, the X, Y, and Z scale factors should all be set to the same value.

Return

Returns an entity definition of the scale entity matching the input entity type.

Examples

--A function to scale an entity and create it

function ScaleEntity()

       --Get a new entity which is the scaled version of the defined arc

       scaleEnt = Bcc.ScaleEntity({Type="ArcFromAngles", Center={0,0,0}, Radius=35, StartAngle=0, EndAngle=360, IsClockwise=false }, {1.0, 0.8})

       

       --Set the undo list name for this entity upon creation

       scaleEnt.CmdName = "Entity Scale"

       

       --Add the scaled entity to the BobCAD entity database

       Bcc.AddEntity(scaleEnt);

end