AlignEntities2Point Method (ISketchManager) Send Feedback
See Also 
FirstSourcePoint
First source point for the movement vector
FirstDestinationPoint
First destination point for the movement vector
SecondSourcePoint
Second source point for the rotation angle
SecondDestinationPoint
Second destination point for the rotation angle
ScaleEntities
True to scale the specified entities if the distance between both source points and both destination points is not identical, false to not
EntitiesArray
Array of entities to align and rotate
Aligns the specified entities, rotating them based on the current coordinate system, using two pairs of points.

Syntax

Visual Basic 
Sub AlignEntities2Point( _
   ByVal FirstSourcePoint As MathPoint, _
   ByVal FirstDestinationPoint As MathPoint, _
   ByVal SecondSourcePoint As MathPoint, _
   ByVal SecondDestinationPoint As MathPoint, _
   ByVal ScaleEntities As System.Boolean, _
   ByVal EntitiesArray As System.Object _
) 
C# 
void AlignEntities2Point( 
   MathPoint FirstSourcePoint,
   MathPoint FirstDestinationPoint,
   MathPoint SecondSourcePoint,
   MathPoint SecondDestinationPoint,
   System.bool ScaleEntities,
   System.object EntitiesArray
)
JavaScript 
AlignEntities2Point( 
   FirstSourcePoint : dsMathPoint,
   FirstDestinationPoint : dsMathPoint,
   SecondSourcePoint : dsMathPoint,
   SecondDestinationPoint : dsMathPoint,
   ScaleEntities : Boolean,
   EntitiesArray : Array
)
COM native C++ 
HRESULT AlignEntities2Point( 
   IMathPoint* FirstSourcePoint,
   IMathPoint* FirstDestinationPoint,
   IMathPoint* SecondSourcePoint,
   IMathPoint* SecondDestinationPoint,
   VARIANT_BOOL ScaleEntities,
   VARIANT EntitiesArray
) 
C++ 
DSRESULT AlignEntities2Point( 
   dsMathPoint* FirstSourcePoint,
   dsMathPoint* FirstDestinationPoint,
   dsMathPoint* SecondSourcePoint,
   dsMathPoint* SecondDestinationPoint,
   bool ScaleEntities,
   const dsObjectPtrArray& EntitiesArray
) 

Parameters

FirstSourcePoint
First source point for the movement vector
FirstDestinationPoint
First destination point for the movement vector
SecondSourcePoint
Second source point for the rotation angle
SecondDestinationPoint
Second destination point for the rotation angle
ScaleEntities
True to scale the specified entities if the distance between both source points and both destination points is not identical, false to not
EntitiesArray
Array of entities to align and rotate

Remarks

Specifying two pairs of points moves the entities and rotates them based on the current coordinate system.

 

See Also

Availability

DraftSight V1R4.0