Functions | |
def | MakeSketcher |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument. More... | |
def | MakeSketcherOnPlane |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument. More... | |
def | Sketcher2D |
Obtain a 2D sketcher interface. More... | |
def | Make3DSketcher |
Create a sketcher wire, following the numerical description, passed through theCoordinates argument. More... | |
def | Sketcher3D |
Obtain a 3D sketcher interface. More... | |
def | Polyline2D |
Obtain a 2D polyline creation interface. More... | |
def MakeSketcher | ( | self, | |
theCommand, | |||
theWorkingPlane = [0 , |
|||
theName = None |
|||
) |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument.
Edges of the resulting wire or face will be arcs of circles and/or linear segments.
Format of the description string have to be the following:
"Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"
Where:
theCommand | String, defining the sketcher in local coordinates of the working plane. |
theWorkingPlane | Nine double values, defining origin, OZ and OX directions of the working plane. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ManageTransactions(), geomBuilder.ParseSketcherCommand(), and geomBuilder.RaiseIfFailed().
def MakeSketcherOnPlane | ( | self, | |
theCommand, | |||
theWorkingPlane, | |||
theName = None |
|||
) |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument.
For format of the description string see MakeSketcher() method.
theCommand | String, defining the sketcher in local coordinates of the working plane. |
theWorkingPlane | Planar Face or LCS(Marker) of the working plane. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ParseSketcherCommand(), and geomBuilder.RaiseIfFailed().
def Sketcher2D | ( | self | ) |
Obtain a 2D sketcher interface.
References geomBuilder.ManageTransactions().
def Make3DSketcher | ( | self, | |
theCoordinates, | |||
theName = None |
|||
) |
Create a sketcher wire, following the numerical description, passed through theCoordinates argument.
theCoordinates | double values, defining points to create a wire, passing from it. |
theName | Object name; when specified, this parameter is used for result publication in the study. Otherwise, if automatic publication is switched on, default value is used for result name. |
References geomBuilder._autoPublish(), geomBuilder.CurvesOp, geomBuilder.ParseParameters(), and geomBuilder.RaiseIfFailed().
def Sketcher3D | ( | self | ) |
def Polyline2D | ( | self | ) |