All Frameworks  Object Hierarchy  This Framework  Indexes  Previous Next  

Factory2D (Object)

Interface to the factory for 2D objects.

Method Index

CreateCircle
Creates and returns a 2D circle arc.
CreateClosedCircle
Creates and returns a closed 2D circle.
CreateClosedEllipse
Creates and returns a closed 2D ellipse.
CreateControlPoint
Creates and returns a 2D spline control point.
CreateEllipse
Creates and returns a 2D ellipse arc.
CreateHyperbola
Creates and returns a hyperbola.
CreateIntersection
Creates and returns the intersection of an object with the sketch.
CreateIntersections
Creates and returns the possible intersections of an object with the sketch.
CreateLineFromVector
Creates and returns a 2D line.
CreateLine
Creates and returns a 2D line.
CreateParabola
Creates and returns a parabola.
CreatePoint
Creates and returns a 2D point.
CreateProjection
Creates and returns the projection of an object on the sketch.
CreateProjections
Creates and returns the possible projections of an object on the sketch.
CreateSpline
Creates and returns a 2D b-spline.

Methods


o Func CreateCircle(double iCenterX,
double iCenterY,
double iRadius,
double iStartParam,
double iEndParam) As Circle2D
Creates and returns a 2D circle arc.
Parameters:
iCenterX
The X coordinate of the circle center
iCenterY
The Y coordinate of the circle center
iRadius
The radius of the circle
iStartParam
The beginning parameter of the circle.
This parameter is an angle value between 0 included and 2PI excluded. Parameter values are computed from the axis horizontal direction in the trigonometrical direction.
iEndParam
The end parameter of the circle.
This parameter may take any value between iStartParam excluded and 4PI included.
o Func CreateClosedCircle(double iCenterX,
double iCenterY,
double iRadius) As Circle2D
Creates and returns a closed 2D circle.
Parameters:
iCenterX
The X coordinate of the circle center
iCenterY
The Y coordinate of the circle center
iRadius
The radius of the circle
o Func CreateClosedEllipse(double iCenterX,
double iCenterY,
double iMajorX,
double iMajorY,
double iMajorRadius,
double iMinorRadius) As Ellipse2D
Creates and returns a closed 2D ellipse.
Parameters:
iCenterX
The X coordinate of the ellipse center
iCenterY
The Y coordinate of the ellipse center
iMajorX
The X component of the major axis direction
iMajorY
The Y component of the Major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
o Func CreateControlPoint(double iX,
double iY) As ControlPoint2D
Creates and returns a 2D spline control point.
Parameters:
iX
The X coordinate of point to create
iY
The Y coordinate of point to create
o Func CreateEllipse(double iCenterX,
double iCenterY,
double iMajorX,
double iMajorY,
double iMajorRadius,
double iMinorRadius,
double iStartParam,
double iEndParam) As Ellipse2D
Creates and returns a 2D ellipse arc.
Parameters:
iCenterX
The X coordinate of the ellipse center
iCenterY
The Y coordinate of the ellipse center
iMajorX
The X component of the major axis direction
iMajorY
The Y component of the major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
iStartParam
The beginning parameter of the ellipse.
This parameter is an angle value between 0 included and 2PI excluded. Parameter values are computed from the major axis direction in the trigonometrical direction.
iEndParam
The end parameter of the ellipse.
This parameter may take any value between iStartParam excluded and 4PI included.
o Func CreateHyperbola(double iCenterX,
double iCenterY,
double iAxisX,
double iAxisY,
double iMajorRadius,
double iMinorRadius) As Hyperbola2D
Creates and returns a hyperbola.
Parameters:
iCenterX
The X coordinate of the hyperbola center
iCenterY
The Y coordinate of the hyperbola center
iAxisX
The X coordinate of the major axis direction
iAxisY
The Y coordinate of the major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
o Func CreateIntersection(Reference iGeometry) As Geometry2D
Creates and returns the intersection of an object with the sketch.
Parameters:
iGeometry
The object to intersect with the sketch
o Func CreateIntersections(Reference iGeometry) As GeometricElements
Creates and returns the possible intersections of an object with the sketch.
Parameters:
iGeometry
The object to intersect with the sketch
o Func CreateLineFromVector(double iX1,
double iY1,
double iUX,
double iUY) As Line2D
Creates and returns a 2D line.
Parameters:
iX1
The X coordinate of the line origin
iY1
The Y coordinate of the line origin
iUX
The X component of the line vector
iUY
The Y component of the line vector
o Func CreateLine(double iX1,
double iY1,
double iX2,
double iY2) As Line2D
Creates and returns a 2D line.
Parameters:
iX1
The X coordinate of line first extremity
iY1
The Y coordinate of line first extremity
iX2
The X coordinate of line second extremity
iY2
The Y coordinate of line second extremity
o Func CreateParabola(double iCenterX,
double iCenterY,
double iAxisX,
double iAxisY,
double iFocalDistance) As Parabola2D
Creates and returns a parabola.
Parameters:
iCenterX
The X coordinate of the parabola center
iCenterY
The Y coordinate of the parabola center
iAxisX
The X coordinate of the major axis direction
iAxisY
The Y coordinate of the major axis direction
iFocalDistance
The parabola focal distance
o Func CreatePoint(double iX,
double iY) As Point2D
Creates and returns a 2D point.
Parameters:
iX
The X coordinate of point to create
iY
The Y coordinate of point to create
o Func CreateProjection(Reference iGeometry) As Geometry2D
Creates and returns the projection of an object on the sketch.
Parameters:
iGeometry
The object to project on the sketch
o Func CreateProjections(Reference iGeometry) As GeometricElements
Creates and returns the possible projections of an object on the sketch.
Parameters:
iGeometry
The object to project on the sketch
o Func CreateSpline(CATSafeArrayVariant iPoles) As Spline2D
Creates and returns a 2D b-spline.
Parameters:
iPoles
An array of CATIAPoint2D forming the poles of the b-spline.

Copyright © 2003, Dassault Systèmes. All rights reserved.