Hide Table of Contents
AlignEntities2Point Method (ISketchManager)

Aligns the specified entities, rotating them based on the current coordinate system, using two pairs of points.

.NET Syntax

Visual Basic (Declaration) 
Sub AlignEntities2Point( _
   dsMathPoint* FirstSourcePoint As MathPoint, _
   dsMathPoint* FirstDestinationPoint As MathPoint, _
   dsMathPoint* SecondSourcePoint As MathPoint, _
   dsMathPoint* SecondDestinationPoint As MathPoint, _
   bool ScaleEntities As System.Boolean, _
   const dsObjectPtrArray& 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


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:   AlignEntities2Point 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.