Public Member Functions | Public Attributes

MLSolidWorksSketchManager Class Reference

Impliments the ISketchManager interface of the SolidWorks API. More...

#include <+SolidWorks/MLSolidWorksSketchManager.h>

Inheritance diagram for MLSolidWorksSketchManager:
Inheritance graph
[legend]
Collaboration diagram for MLSolidWorksSketchManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

function MLSolidWorksSketchManager (in rawISketchMgrPointer)
 Class constructor.
function InsertSketch (in obj, in updateEditRebuild)
 Inserts a new sketch in the current part or assembly document.
function CreateCornerRectangle (in obj, in X1, in Y1, in Z1, in X2, in Y2, in Z2)
 Creates a rectangle sketch with the given points.
function CreateCircle (in obj, in Xc, in Yc, in Zc, in Xp, in Yp, in Zp)
 Creates a circle sketch with the given center point and a point on the circle.

Public Attributes

 m_CADRawPointer

Detailed Description

Impliments the ISketchManager interface of the SolidWorks API.

This class provides access to sketches and sketch-creation routines.


Constructor & Destructor Documentation

function MLSolidWorksSketchManager ( in  rawISketchMgrPointer )

Class constructor.

Parameters:
rawISketchMgrPointeris the COM pointer to the SolidWorks document object.

Member Function Documentation

function CreateCircle ( in  obj,
in  Xc,
in  Yc,
in  Zc,
in  Xp,
in  Yp,
in  Zp 
)

Creates a circle sketch with the given center point and a point on the circle.

Parameters:
objis the instance if the object calling and is implicit.
XcX coordinate of the circle center point, in meters
YcY coordinate of the circle center point, in meters
ZcZ coordinate of the circle center point, in meters
XpX coordinate of the point on the circle, in meters
YpY coordinate of the point on the circle, in meters
ZpZ coordinate of the point on the circle, in meters
Return values:
retObjectSketch segments for the circle of type MLSolidWorksSketchSegment
function CreateCornerRectangle ( in  obj,
in  X1,
in  Y1,
in  Z1,
in  X2,
in  Y2,
in  Z2 
)

Creates a rectangle sketch with the given points.

Parameters:
objis the instance if the object calling and is implicit.
X1Upper-left X coordinate for point 1
Y1Upper-left Y coordinate for point 1
Z1Upper-left Z coordinate for point 1
X2Lower-right X coordinate for point 2
Y2Lower-right Y coordinate for point 2
Z2Lower-right Z coordinate for point 2
Return values:
retObjectIt returns an array of sketch segments that represent the edges created for this corner rectangle in the form of MLSolidWorksSketchSegment objects.
function InsertSketch ( in  obj,
in  updateEditRebuild 
)

Inserts a new sketch in the current part or assembly document.

Parameters:
objis the instance if the object calling and is implicit.
updateEditRebuildTrue will rebuild the part with any changes made to the sketch and exit the sketch

Member Data Documentation

m_CADRawPointer [inherited]

The documentation for this class was generated from the following file: