Sketcher#
Sketcher commands are used to define the entities, such as the geometry, constraints, and dimensions, to create a sketch and to store the values and attributes associated with a particular sketch.
Create constrained sketches#
- class SketchModel(name, description='', stefanBoltzmann=None, absoluteZero=None, waveFormulation=abaqusConstants.NOT_SET, modelType=abaqusConstants.STANDARD_EXPLICIT, universalGas=None, copyConstraints=ON, copyConnectors=ON, copyInteractions=ON)[source]#
Abaqus creates a Model object named Model-1 when a session is started.
Note
This object can be accessed by:
mdb.models[name]
Note
Public Data Attributes:
Inherited from
ModelBasenameA String specifying the repository key.
stefanBoltzmannNone or a Float specifying the Stefan-Boltzmann constant.
absoluteZeroNone or a Float specifying the absolute zero constant.
waveFormulationA SymbolicConstant specifying the type of incident wave formulation to be used in acoustic problems.
universalGasNone or a Float specifying the universal gas constant.
noPartsInputFileA Boolean specifying whether an input file should be written without parts and assemblies.
restartIncrementAn Int specifying the increment, interval, iteration or cycle where the restart analysis will start.
endRestartStepA Boolean specifying that the step specified by restartStep should be terminated at the increment specified by restartIncrement.
shellToSolidA Boolean specifying that a shell global model drives a solid submodel.
lastChangedCountA Float specifying the time stamp that indicates when the model was last changed.
descriptionA String specifying the purpose and contents of the Model object.
restartJobA String specifying the name of the job that generated the restart data.
restartStepA String specifying the name of the step where the restart analysis will start.
globalJobA String specifying the name of the job that generated the results for the global model.
copyConstraintsA boolean specifying the status of constraints created in a model, in the model which instances this model.
copyConnectorsA boolean specifying the status of connectors created in a model, in the model which instances this model.
copyInteractionsA boolean specifying the status of interactions created in a model, in the model which instances this model.
keywordBlockA
KeywordBlockobject.rootAssemblyAn
Assemblyobject.amplitudesA repository of Amplitude objects.
profilesA repository of Profile objects.
boundaryConditionsA repository of BoundaryCondition objects.
constraintsA repository of ConstrainedSketchConstraint objects.
analyticalFieldsA repository of AnalyticalField objects.
discreteFieldsA repository of DiscreteField objects.
predefinedFieldsA repository of PredefinedField objects.
interactionsA repository of Interaction objects.
interactionPropertiesA repository of InteractionProperty objects.
contactControlsA repository of ContactControl objects.
contactInitializationsA repository of ContactInitialization objects.
contactStabilizationsA repository of ContactStabilization objects.
linkedInstancesA tuple of tuples of Strings specifying the linked child PartInstance name in the current model to the corresponding parent PartInstance name in a different model.
linkedPartsA tuple of tuples of Strings specifying the linked child Part name in the current model to the corresponding parent Part name in a different model.
loadsA repository of Load objects.
materialsA repository of Material objects.
calibrationsA repository of Calibration objects.
sectionsA repository of Section objects.
remeshingRulesA repository of RemeshingRule objects.
sketchesA repository of ConstrainedSketch objects.
partsA repository of Part objects.
stepsA repository of Step objects.
featureOptionsA
FeatureOptionsobject.adaptiveMeshConstraintsA repository of AdaptiveMeshConstraint objects.
adaptiveMeshControlsA repository of AdaptiveMeshControl objects.
timePointsA repository of TimePoint objects.
filtersA repository of Filter objects.
integratedOutputSectionsA repository of IntegratedOutputSection objects.
fieldOutputRequestsA repository of FieldOutputRequest objects.
historyOutputRequestsA repository of HistoryOutputRequest objects.
optimizationTasksA repository of OptimizationTask objects.
tableCollectionsA repository of TableCollection objects.
eventSeriesTypesA repository of EventSeriesType objects.
eventSeriesDatasA repository of EventSeriesData objects.
Public Methods:
ConstrainedSketch(name, sheetSize[, ...])This method creates a ConstrainedSketch object.
Inherited from
ModelBase__init__(name[, description, ...])This method creates a Model object.
ModelFromInputFile(name, inputFileName)This method creates a Model object by reading the keywords in an input file and creating the corresponding Abaqus/CAE objects.
ModelFromOdbFile(name, odbFileName)This method creates a Model object by reading an output database and creating any corresponding Abaqus/CAE objects.
ModelFromNastranFile(modelName, inputFileName)This method creates a Model object by reading the keywords in a Nastran bulk data file or Nastran input file and creating any corresponding Abaqus/CAE objects.
setValues([description, noPartsInputFile, ...])This method modifies the Model object.
- ConstrainedSketch(name, sheetSize, gridSpacing=None, transform=())[source]#
This method creates a ConstrainedSketch object. If the sketch cannot be created, the method returns None.
Note
This function can be accessed by:
mdb.models[name].ConstrainedSketch
Note
- Parameters:
name (
str) – A String specifying the repository key.sheetSize (
float) – A Float specifying the sheet size.gridSpacing (
Optional[float], default:None) – A Float specifying the spacing between gridlines. Possible values are Floats >> 0. The default value is approximately 2 percent of sheetSize.transform (
tuple, default:()) – A sequence of sequences of Floats specifying the three-dimensional orientation of the sketch. The sequence is a 3 × 4 transformation matrix specifying the axis of rotation and the translation vector. Possible values are any Floats.The default value for the axis of rotation is the identity matrix`(1.0, 0.0, 0.0), (0.0, 1.0, 0.0), (0.0, 0.0, 1.0)`The default value for the translation vector is`(0.0, 0.0, 0.0)`The default values position the sketch on the X - Y plane centered at the origin.
- Returns:
sketch – A
ConstrainedSketchobject.- Return type:
Object features#
ConstrainedSketch#
- class ConstrainedSketch(name: str, sheetSize: float, gridSpacing: Optional[float] = None, transform: tuple = ())[source]#
- class ConstrainedSketch(name: str, objectToCopy: ConstrainedSketch)
Public Data Attributes:
Inherited from
ConstrainedSketchBaseA repository of ConstrainedSketchConstraint objects.
A repository of ConstrainedSketchDimension objects.
A
ConstrainedSketchGeometryArrayobject specifying the sketch geometry, such as lines, arcs, circles, and splines.A repository of ConstrainedSketchParameter objects specifying sketch parameters, which may be associated with dimensions.
A
ConstrainedSketchOptionsobject specifying the sketch option settings.A
ConstrainedSketchVertexArrayobject.A
ConstrainedSketchImageOptionsobject.Public Methods:
__init__())ConstrainedSketchFromGeometryFile(name, ...)This method creates a ConstrainedSketch object and places it in the sketches repository.
print()This method prints the following statistics about a sketch: - The sketch Id (a positive integer).
assignCenterline(line)This method indicates the construction line that will be used as a centerline for revolved features.
assignCenterOfTwist(point)This method indicates the isolated point that will be used as the center of twist when an extruded feature is created with twist.
autoDimension(objectList)This method applies dimensions to the selected ConstrainedSketchGeometry objects in an effort to make the ConstrainedSketch well defined.
autoTrimCurve(curve1, point1, parameter1)This method automatically trims a selected ConstrainedSketchGeometry object at the specified location.
breakCurve(curve1, point1, curve2, point2)This method breaks a specified ConstrainedSketchGeometry object (curve1) using another specified ConstrainedSketchGeometry object (curve2).
copyMirror(mirrorLine, objectList)This method creates copies of the given ConstrainedSketchGeometry objects, mirrors them about a selected line, and inserts them into the appropriate repositories of the ConstrainedSketch object.
copyMove(vector, objectList)This method creates copies of the given ConstrainedSketchGeometry objects, moves them from their original position, and inserts them into the appropriate repositories of the ConstrainedSketch object.
copyRotate(centerPoint, angle, objectList)This method creates copies of the given ConstrainedSketchGeometry objects, rotates them, and inserts them into the appropriate repositories of the ConstrainedSketch object.
copyScale(scaleValue, scaleCenter, objectList)This method creates copies of the given ConstrainedSketchGeometry objects, scales them by the specified value about a selected point, and inserts them into the appropriate repositories of the ConstrainedSketch object.
delete(objectList)This method deletes the given ConstrainedSketchGeometry, ConstrainedSketchDimension, or ConstrainedSketchConstraint objects.
deleteParameter(name)The command deletes a specified parameter.
dragEntity(entity, points)This method drags a specified ConstrainedSketchGeometry or ConstrainedSketchVertex object to a specific location.
linearPattern(number1, spacing1, angle1[, ...])This method copies ConstrainedSketchGeometry objects in a linear pattern along one or two directions.
mergeVertices(value, vertexList)This method merges the ConstrainedSketchVertex objects that lie within the specified distance of each other.
move(vector, objectList)This method translates the given ConstrainedSketchGeometry objects by the given vector.
offset(distance, objectList, side[, ...])This method creates copies of the selected ConstrainedSketchGeometry objects, offsets them by the specified distance in the specified direction, and inserts them into the ConstrainedSketch object's appropriate repositories.
radialPattern(number, totalAngle, centerPoint)This method copies ConstrainedSketchGeometry objects in a radial pattern about a specified center point.
This method resets the view to be perpendicular to the sketching plane.
rectangle(point1, point2)This method creates four lines that form a rectangle with diagonal corners defined by the given points and inserts them into the geometry repository of the ConstrainedSketch object.
removeGapsAndOverlaps(tolerance, geomList)This method removes gaps and overlaps between sketch geometries specified by the user.
repairShortEdges(geomList[, tolerance])This method deletes the short edges specified, optionally selecting only those short edges whose lengths are smaller than the specified tolerance and healing the resultant gap in the sketch.
retrieveSketch(sketch)This method copies all ConstrainedSketchGeometry, ConstrainedSketchDimension, ConstrainedSketchConstraint, and ConstrainedSketchParameter objects from the specified ConstrainedSketch object.
rotate(centerPoint, angle, objectList)This method rotates the given ConstrainedSketchGeometry objects by the given angle and about the given point.
scale(scaleValue, scaleCenter, objectList)This method scales the given ConstrainedSketchGeometry objects by the given scale factor and about the given point.
setPrimaryObject(option)This method makes the ConstrainedSketch object the primary object in the current viewport.
trimExtendCurve(curve1, point1, curve2, point2)This method trims or extends a specified ConstrainedSketchGeometry object (curve1) using another specified ConstrainedSketchGeometry object (curve2).
undo()This method undoes the effects of the last ConstrainedSketch object method.
This method removes the ConstrainedSketch object from the current viewport, reversing the effects of the setPrimaryobject command.
writeAcisFile(fileName[, version])This method exports the geometry of the sketch to a named file in ACIS format.
writeIgesFile(filename[, flavor])This method exports the geometry of the sketch to a named file in IGES format.
Inherited from
ConstrainedSketchConstraintModelCoincidentConstraint(entity1, entity2)This method creates a coincident constraint.
ConcentricConstraint(entity1, entity2)This method creates a concentric constraint.
EqualLengthConstraint(entity1, entity2)This method creates an equal length constraint.
EqualRadiusConstraint(entity1, entity2)This method creates an equal radius constraint.
FixedConstraint(entity)This method creates a fixed constraint.
HorizontalConstraint(entity)This method creates a horizontal constraint.
VerticalConstraint(entity)This method creates a vertical constraint.
ParallelConstraint(entity1, entity2)This method creates a parallel constraint.
PerpendicularConstraint(entity1, entity2)This method creates a perpendicular constraint.
EqualDistanceConstraint(entity1, entity2, ...)This method creates an equal distance constraint.
TangentConstraint(entity1, entity2)This method creates a tangent constraint.
Inherited from
ConstrainedSketchDimensionModelAngularDimension(line1, line2, textPoint[, ...])This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry objects, with the given angle between them.
HorizontalDimension(vertex1, vertex2, textPoint)This method constructs a ConstrainedSketchDimension object between two vertices.
ObliqueDimension(vertex1, vertex2, textPoint)This method constructs a ConstrainedSketchDimension object between two vertices.
RadialDimension(curve, textPoint[, value, ...])This method constructs a ConstrainedSketchDimension object on a circular or elliptical arc.
VerticalDimension(vertex1, vertex2, textPoint)This method constructs a ConstrainedSketchDimension between two vertices.
DistanceDimension(entity1, entity2, textPoint)This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry, or aConstrainedSketchVertex and ConstrainedSketchGeometry object.
Inherited from
ConstrainedSketchGeometryModelArc3Points(point1, point2, point3)This method constructs an arc using a two endpoints and an intermediate third point on the arc.
ArcByCenterEnds(center, point1, point2, ...)This method constructs an arc using a center point and two vertices.
ArcByStartEndTangent(point1, point2, vector)This method constructs an arc using two vertices.
CircleByCenterPerimeter(center, point1)This method constructs a circle using a center point and a point on the perimeter.
ConstructionCircleByCenterPerimeter(center, ...)This method constructs a construction circle using a center point and a point on the perimeter.
EllipseByCenterPerimeter(center, axisPoint1, ...)This method constructs an ellipse using a center point, a major axis point, and a minor axis point.
FilletByRadius(radius, curve1, nearPoint1, ...)This method constructs a fillet arc of a given radius between two curves.
Line(point1, point2)This method creates a line between two given points.
ConstructionLine(point1, point2)This method creates an oblique construction line that runs between two given points.
Spline(points[, constrainPoints])This method creates a spline curve running through a sequence of points.
Spot(point)This method creates a spot construction point located at the specified coordinates.
This method returns an list of ConstrainedSketchVertex objects which are a part of the given ConstrainedSketchGeometry object.
getSize()This method returns the length of the given ConstrainedSketchGeometry object.
getPointAtDistance(point, distance[, percentage])This method returns a point offset along the given ConstrainedSketchGeometry from the given end by a specified arc length distance or a percentage of the total length of the ConstrainedSketchGeometry object.
Inherited from
ConstrainedSketchParameterModelConstrainedSketchParameter(name[, path, ...])This method creates a parameter and optionally associates a dimension with this parameter.
Inherited from
ConstrainedSketchVertexModelSpot(point)This method creates a spot construction point located at the specified coordinates.
- AngularDimension(line1, line2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry objects, with the given angle between them.
Note
This function can be accessed by:
mdb.models[name].sketches[name].AngularDimension
Note
- Parameters:
line1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first line.line2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the angle between the two lines.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- Arc3Points(point1, point2, point3)[source]#
This method constructs an arc using a two endpoints and an intermediate third point on the arc.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Arc3Points
Note
- Parameters:
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- ArcByCenterEnds(center, point1, point2, direction)[source]#
This method constructs an arc using a center point and two vertices. The Arc object is added to the geometry repository of the ConstrainedSketch object. The arc is created in a clockwise fashion from point1 to point2.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ArcByCenterEnds
Note
- Parameters:
center (
Tuple[float,...]) – A pair of Floats specifying the center point of the arc.point1 (
Tuple[float,...]) – A pair of Floats specifying the first endpoint of the arc.point2 (
Tuple[float,...]) – A pair of Floats specifying the second endpoint of the arc.direction (
SymbolicConstant) – A SymbolicConstant specifying the direction of the arc. Possible values are CLOCKWISE and COUNTERCLOCKWISE.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
:raises If incompatible data are given`, :class:`the second endpoint is ignored:
- ArcByStartEndTangent(point1, point2, vector)[source]#
This method constructs an arc using two vertices. The Arc object is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ArcByStartEndTangent
Note
- Parameters:
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- CircleByCenterPerimeter(center, point1)[source]#
This method constructs a circle using a center point and a point on the perimeter. The circle is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].CircleByCenterPerimeter
Note
- CoincidentConstraint(entity1, entity2)[source]#
This method creates a coincident constraint. This constraint applies to two vertices, to a vertex and a ConstrainedSketchGeometry object, or to two ConstrainedSketchGeometry objects of the same type and constrains them to be coincident.
Note
This function can be accessed by:
mdb.models[name].sketches[name].CoincidentConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject or a ConstrainedSketchVertex object specifying the first object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject or a ConstrainedSketchVertex object specifying the second object.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- ConcentricConstraint(entity1, entity2)[source]#
This method creates a concentric constraint. This constraint applies to any combination of circles, arcs, ellipses, and points and constrains them to be concentric. A concentric constraint implies that the center of ConstrainedSketchGeometry objects coincide.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConcentricConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first arc, circle, ellipse, or sketch vertex.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second arc, circle, ellipse, or sketch vertex.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- ConstrainedSketchFromGeometryFile(name, geometryFile)[source]#
This method creates a ConstrainedSketch object and places it in the sketches repository.
Note
This function can be accessed by:
mdb.models[name].ConstrainedSketchFromGeometryFile
- Parameters:
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- ConstrainedSketchParameter(name, path='', expression='', previousParameter='')[source]#
This method creates a parameter and optionally associates a dimension with this parameter.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConstrainedSketchParameter
Note
- Parameters:
name (
str) – A String specifying the name of the ConstrainedSketchParameter object. No two parameters in the same ConstrainedSketch can have the same name.path (
str, default:'') – A String specifying the ConstrainedSketchDimension object with which this parameter is associated.expression (
str, default:'') – A String specifying the expression or value associated with the ConstrainedSketchParameter.previousParameter (
str, default:'') – A String specifying the name of the previous ConstrainedSketchParameter, if it exists. The previousParameter argument implies an order among the parameters. No two parameters can reference the same parameter as the previous parameter.
- Returns:
obj – A
ConstrainedSketchParameterobject- Return type:
- ConstructionCircleByCenterPerimeter(center, point1)[source]#
This method constructs a construction circle using a center point and a point on the perimeter. The circle is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConstructionCircleByCenterPerimeter
- Parameters:
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- ConstructionLine(point1, point2)[source]#
This method creates an oblique construction line that runs between two given points.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConstructionLine
Note
- DistanceDimension(entity1, entity2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry, or aConstrainedSketchVertex and ConstrainedSketchGeometry object. A distance dimension specifies the shortest distance between two entities.
Note
This function can be accessed by:
mdb.models[name].sketches[name].DistanceDimension
Note
- Parameters:
entity1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject or ConstrainedSketchGeometry object.entity2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject or ConstrainedSketchGeometry object.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the angle between the two lines.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- EllipseByCenterPerimeter(center, axisPoint1, axisPoint2)[source]#
This method constructs an ellipse using a center point, a major axis point, and a minor axis point. The ellipse is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EllipseByCenterPerimeter
Note
- Parameters:
center (
Tuple[float,...]) – A pair of Floats specifying the center point of the ellipse.axisPoint1 (
Tuple[float,...]) – A pair of Floats specifying the major or minor axis point of the ellipse.axisPoint2 (
Tuple[float,...]) – A pair of Floats specifying the minor or major axis point of the ellipse.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- EqualDistanceConstraint(entity1, entity2, midpoint)[source]#
This method creates an equal distance constraint. This constraint can be applied between a midpoint ConstrainedSketchVertex object and any other two ConstrainedSketchVertex objects or between a midpoint ConstrainedSketchVertex object and two ConstrainedSketchGeometry objects that are lines. The equal distance constraint forces the midpoint vertex to remain at an equal distance from the two other vertices or lines.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EqualDistanceConstraint
Note
- Parameters:
entity1 (
str) – AConstrainedSketchGeometry object specifying the first line or ConstrainedSketchVertex object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line or ConstrainedSketchVertex object.midpoint (
Vertex) – AConstrainedSketchVertexobject specifying the vertex that will be positioned an equal distance from entity1 and entity2.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- EqualLengthConstraint(entity1, entity2)[source]#
This method creates an equal length constraint. This constraint applies to lines and constrains them such that their lengths are equal.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EqualLengthConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first line.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- EqualRadiusConstraint(entity1, entity2)[source]#
This method creates an equal radius constraint. This constraint applies to circles and arcs and constrains them such that their radii are equal.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EqualRadiusConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first arc or circle.entity2 (
str) – A ConstrainedSketchGeometry specifying the second arc or circle.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- FilletByRadius(radius, curve1, nearPoint1, curve2, nearPoint2)[source]#
This method constructs a fillet arc of a given radius between two curves. The fillet is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].FilletByRadius
Note
- Parameters:
radius (
float) – A Float specifying the radius of the fillet arc. Possible values are Floats > 0.curve1 (
ConstrainedSketchGeometryModel) – AConstrainedSketchGeometryobject specifying the first curve.nearPoint1 (
Tuple[float,...]) – A pair of Floats specifying a point on the sketch near where the user wishes the fillet to intersect with curve1. This point does not need to be on*curve1*; it is used as a hint to draw the fillet.curve2 (
ConstrainedSketchGeometryModel) – AConstrainedSketchGeometryobject specifying the second curve.nearPoint2 (
Tuple[float,...]) – A pair of Floats specifying a point on the sketch near where the user wishes the fillet to intersect with curve2. This point does not need to be on curve2; it is used as a hint to draw the fillet.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry- Raises:
Range Error` – :class:`cannot construct the Fillet specified: If the radius given cannot be used to create a fillet between the two curves given.
- FixedConstraint(entity)[source]#
This method creates a fixed constraint. This constraint applies to a ConstrainedSketchGeometry object or a ConstrainedSketchVertex object and constrains them to be fixed in space. Both the location and the shape of the sketch geometry is fixed.
Note
This function can be accessed by:
mdb.models[name].sketches[name].FixedConstraint
Note
- Parameters:
entity (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject or a ConstrainedSketchVertex object specifying the item to fix in space.- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- HorizontalConstraint(entity)[source]#
This method creates a horizontal constraint. This constraint applies to a line and constrains it to be horizontal.
Note
This function can be accessed by:
mdb.models[name].sketches[name].HorizontalConstraint
Note
- Parameters:
entity (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the line to constrain.- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- HorizontalDimension(vertex1, vertex2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two vertices. A horizontal dimension indicates the horizontal distance along the X-axis between two vertices.
Note
This function can be accessed by:
mdb.models[name].sketches[name].HorizontalDimension
Note
- Parameters:
vertex1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the first endpoint.vertex2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the second endpoint.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float distance between the two vertices.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the distance between the two vertices.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- Line(point1, point2)[source]#
This method creates a line between two given points.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Line
Note
Check Line on help.3ds.com/0.1..
- ObliqueDimension(vertex1, vertex2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two vertices. An oblique dimension indicates the distance between two vertices.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ObliqueDimension
Note
- Parameters:
vertex1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the first endpoint.vertex2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the second endpoint.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the distance between the two ConstrainedSketchVertex objects.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the distance between the two vertices.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- ParallelConstraint(entity1, entity2)[source]#
This method creates a parallel constraint. This constraint applies to lines and constrains them to be parallel.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ParallelConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first line.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- PerpendicularConstraint(entity1, entity2)[source]#
This method creates a perpendicular constraint. This constraint applies to different types of ConstrainedSketchGeometry objects and constrains them to be perpendicular to each other.
Note
This function can be accessed by:
mdb.models[name].sketches[name].PerpendicularConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second object.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- RadialDimension(curve, textPoint, value=None, reference=OFF, majorRadius=None, minorRadius=None)[source]#
This method constructs a ConstrainedSketchDimension object on a circular or elliptical arc. A radial dimension indicates the radius of an arc or circle or the major or minor radius of an ellipse.
Note
This function can be accessed by:
mdb.models[name].sketches[name].RadialDimension
Note
- Parameters:
curve (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the circular or elliptical arc.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the radius of the arc, circle or ellipse.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.majorRadius (
Optional[float], default:None) – A Float specifying the major Radius if curve is an ellipse. This is mutually exclusive with value and minorRadius.minorRadius (
Optional[float], default:None) – A Float specifying the minor Radius if curve is an ellipse. This is mutually exclusive with value and majorRadius.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- Spline(points, constrainPoints=True)[source]#
This method creates a spline curve running through a sequence of points.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Spline
Note
Check Spline on help.3ds.com/0.1..
- Parameters:
points (
tuple) – A sequence of pairs of Floats specifying the points through which the spline passes.constrainPoints (
Union[AbaqusBoolean,bool], default:True) – A Boolean that determines whether the points given are to constrained to always remain on the Spline. The default is True. For a large sequence of points, significant performance gains may be achieved by setting the value to False.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- Spot(point)[source]#
This method creates a spot construction point located at the specified coordinates. The spot is added to the vertex repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Spot
Note
Check Spot on help.3ds.com/0.1..
- Parameters:
point (
Tuple[float,...]) – A pair of Floats specifying the coordinates of the spot construction point.- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- TangentConstraint(entity1, entity2)[source]#
This method creates a tangent constraint. This constraint applies to different types of ConstrainedSketchGeometry objects and constrains them to remain tangential.
Note
This function can be accessed by:
mdb.models[name].sketches[name].TangentConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second object.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- VerticalConstraint(entity)[source]#
This method creates a vertical constraint. This constraint applies to a line and constrains it to be vertical.
Note
This function can be accessed by:
mdb.models[name].sketches[name].VerticalConstraint
Note
- Parameters:
entity (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the line to constrain.- Returns:
sketch – A
ConstrainedSketchobject- Return type:
- VerticalDimension(vertex1, vertex2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension between two vertices. A vertical dimension controls the vertical distance along the Y-axis between two vertices.
Note
This function can be accessed by:
mdb.models[name].sketches[name].VerticalDimension
Note
- Parameters:
vertex1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the first endpoint.vertex2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the second endpoint.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the angle between the two lines.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- assignCenterOfTwist(point)[source]#
This method indicates the isolated point that will be used as the center of twist when an extruded feature is created with twist.
- Parameters:
point (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying an isolated point that indicates the center of twist for extruded features that use a twist angle.
- assignCenterline(line)[source]#
This method indicates the construction line that will be used as a centerline for revolved features.
- Parameters:
line (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying a construction line that indicates the centerline of revolved features.
- autoDimension(objectList)[source]#
This method applies dimensions to the selected ConstrainedSketchGeometry objects in an effort to make the ConstrainedSketch well defined.
- Parameters:
objectList (
tuple) – A sequence specifying the ConstrainedSketchGeometry objects to dimension.
- autoTrimCurve(curve1, point1, parameter1)[source]#
This method automatically trims a selected ConstrainedSketchGeometry object at the specified location. If the object does not intersect other ConstrainedSketchGeometry objects, the entire selected object will be deleted.
- Parameters:
curve1 (
str) – The ConstrainedSketchGeometry object to be trimmed.point1 (
Tuple[float,float]) – A pair of Floats specifying the location on ConstrainedSketchGeometry where the trimming should be applied. point1 and parameter1 are mutually exclusive.parameter1 (
float) – A Float specifying the parameter location on the ConstrainedSketchGeometry where the trimming should be applied. point1 and parameter1 are mutually exclusive.
- breakCurve(curve1, point1, curve2, point2)[source]#
This method breaks a specified ConstrainedSketchGeometry object (curve1) using another specified ConstrainedSketchGeometry object (curve2). If the selected ConstrainedSketchGeometry objects intersect, then only curve1 will be broken; curve2 is not affected by the operation. The location for the break is determined by the specified point values.
- Parameters:
curve1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the object to be broken.point1 (
Tuple[float,float]) – A pair of Floats specifying the location on curve1 near where the break should be applied.curve2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying where curve1 should be broken.point2 (
Tuple[float,float]) – A pair of Floats specifying the location on curve2 near where curve1 should be broken.
- constraints: Dict[str, ConstrainedSketchConstraint] = {}[source]#
A repository of ConstrainedSketchConstraint objects.
- copyMirror(mirrorLine, objectList)[source]#
This method creates copies of the given ConstrainedSketchGeometry objects, mirrors them about a selected line, and inserts them into the appropriate repositories of the ConstrainedSketch object.
- Parameters:
mirrorLine (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the line about which Abaqus will mirror the sketch.objectList (
Tuple[ConstrainedSketchGeometry,...]) – A sequence of ConstrainedSketchGeometry objects specifying the sketch to be copied and mirrored.
- copyMove(vector, objectList)[source]#
This method creates copies of the given ConstrainedSketchGeometry objects, moves them from their original position, and inserts them into the appropriate repositories of the ConstrainedSketch object.
Note
- Parameters:
vector (
tuple) – A sequence of two Floats specifying the translation vector.objectList (
Tuple[ConstrainedSketchGeometry,...]) – A sequence of ConstrainedSketchGeometry objects to be copied and moved.
- copyRotate(centerPoint, angle, objectList)[source]#
This method creates copies of the given ConstrainedSketchGeometry objects, rotates them, and inserts them into the appropriate repositories of the ConstrainedSketch object.
- copyScale(scaleValue, scaleCenter, objectList)[source]#
This method creates copies of the given ConstrainedSketchGeometry objects, scales them by the specified value about a selected point, and inserts them into the appropriate repositories of the ConstrainedSketch object.
Note
- delete(objectList)[source]#
This method deletes the given ConstrainedSketchGeometry, ConstrainedSketchDimension, or ConstrainedSketchConstraint objects.
Note
- Parameters:
objectList (
tuple) – A sequence of ConstrainedSketchGeometry, ConstrainedSketchDimension, or ConstrainedSketchConstraint objects to be deleted.
- deleteParameter(name)[source]#
The command deletes a specified parameter.
- Parameters:
name (
str) – A String specifying the name of the parameter to delete.
- dimensions: Dict[str, ConstrainedSketchDimension] = {}[source]#
A repository of ConstrainedSketchDimension objects.
- dragEntity(entity, points)[source]#
This method drags a specified ConstrainedSketchGeometry or ConstrainedSketchVertex object to a specific location.
- Parameters:
entity (
str) – A ConstrainedSketchGeometry or ConstrainedSketchVertex object specifying the object to drag.points (
tuple) – A sequence of sequences of three Floats specifying a sequence of points along which to drag the entity. The order of points in the sequence defines a path that determines the solution.
- geometry: ConstrainedSketchGeometryArray = [][source]#
A
ConstrainedSketchGeometryArrayobject specifying the sketch geometry, such as lines, arcs, circles, and splines.
- getPointAtDistance(point, distance, percentage=OFF)[source]#
This method returns a point offset along the given ConstrainedSketchGeometry from the given end by a specified arc length distance or a percentage of the total length of the ConstrainedSketchGeometry object.
- Parameters:
point (
Tuple[float,...]) – A pair of Floats specifying the point from which the distance is to be measured.distance (
str) – A float specifying the arc length distance along the ConstrainedSketchGeometry from the point at which the required point is situated.percentage (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean that specifies if the distance is an absolute distance or is a fraction relative to the length of the ConstrainedSketchGeometry object.
- Returns:
points – A pair of floats representing the point along the edge
- Return type:
Tuple[float,]
- getSize()[source]#
This method returns the length of the given ConstrainedSketchGeometry object.
- Returns:
length – The length of the given ConstrainedSketchGeometry
- Return type:
- getVertices()[source]#
This method returns an list of ConstrainedSketchVertex objects which are a part of the given ConstrainedSketchGeometry object.
- Returns:
vertices – A list of ConstrainedSketchVertex objects
- Return type:
List[ConstrainedSketchVertex]
- imageOptions: ConstrainedSketchImageOptions = <abaqus.Sketcher.ConstrainedSketchOptions.ConstrainedSketchImageOptions.ConstrainedSketchImageOptions object>[source]#
A
ConstrainedSketchImageOptionsobject.
- linearPattern(number1, spacing1, angle1, vertexList=(), geomList=(), number2=1, spacing2=None, angle2=None)[source]#
This method copies ConstrainedSketchGeometry objects in a linear pattern along one or two directions. This method also copies any associated dimension or constraint objects that exist between the given objects.
- Parameters:
number1 (
int) – An Integer specifying the total number of copies, including the original objects, that appear along the first direction in the pattern. Possible values are 1 ≤ number1 ≤ 1000.spacing1 (
float) – A Float specifying the spacing between copies along the first direction in the pattern. Possible values are 0.0 ≤ spacing1 .angle1 (
float) – A Float specifying the angle in degrees of the first direction in the pattern. Possible values are -360.0 ≤ angle1 ≤ 360.0.vertexList (
Tuple[ConstrainedSketchVertex,...], default:()) – A sequence of ConstrainedSketchVertex objects to copy.geomList (
Tuple[ConstrainedSketchGeometry,...], default:()) – A sequence of ConstrainedSketchGeometry objects to copy.number2 (
int, default:1) – An integer specifying the total number of copies, including the original objects, that appear along the second direction in the pattern. Possible values are 1 ≤ number2 ≤ 1000. The default value is 1. The value of either number1 or number2 must be greater than one.spacing2 (
Optional[float], default:None) – A Float specifying the spacing between copies along the first direction in the pattern. Possible values are 0.0 ≤ spacing2. The default value is spacing1.angle2 (
Optional[float], default:None) – A Float specifying the angle in degrees of the first direction in the pattern. Possible values are -360.0 ≤ angle2 ≤ 360.0. The default value is 90° beyond the value of angle1.
- Return type:
None.- Raises:
AbaqusException – Number must be greater than 1 for at least one direction
- mergeVertices(value, vertexList)[source]#
This method merges the ConstrainedSketchVertex objects that lie within the specified distance of each other. If only one ConstrainedSketchVertex object is selected, it will merge all ConstrainedSketchVertex objects that lie within the specified distance of that vertex. If more than one vertex is selected, the search will be restricted to only the selected ConstrainedSketchVertex objects.
- Parameters:
value (
float) – A Float specifying the search radius.vertexList (
Tuple[ConstrainedSketchVertex,...]) – A sequence of ConstrainedSketchVertex objects to be merged.
- move(vector, objectList)[source]#
This method translates the given ConstrainedSketchGeometry objects by the given vector.
Note
- Parameters:
vector (
tuple) – A sequence of two Floats specifying the translation vector.objectList (
Tuple[ConstrainedSketchGeometry,...]) – A sequence of ConstrainedSketchGeometry objects specifying the objects to be translated.
- offset(distance, objectList, side, filletCorners=OFF)[source]#
This method creates copies of the selected ConstrainedSketchGeometry objects, offsets them by the specified distance in the specified direction, and inserts them into the ConstrainedSketch object’s appropriate repositories. If connected objects are selected, trim or extend is carried out to complete the offset.
Note
- Parameters:
distance (
float) – A Float specifying the distance to be offset.objectList (
Tuple[ConstrainedSketchGeometry,...]) – A sequence of ConstrainedSketchGeometry objects to be copied and offset.side (
Literal[LEFT, RIGHT]) – A SymbolicConstant specifying which side the offset should occur. Possible values are LEFT and RIGHT.filletCorners (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the corners need to be rounded instead of being extended.
- parameters: Dict[str, ConstrainedSketchParameter] = {}[source]#
A repository of ConstrainedSketchParameter objects specifying sketch parameters, which may be associated with dimensions.
- print()[source]#
This method prints the following statistics about a sketch: - The sketch Id (a positive integer). - The number of geometry curves (the number of ConstrainedSketchGeometry objects). - The number of dimensions (the number of ConstrainedSketchDimension objects). - The number of vertices (the number of ConstrainedSketchVertex objects).
- radialPattern(number, totalAngle, centerPoint, vertexList=(), geomList=())[source]#
This method copies ConstrainedSketchGeometry objects in a radial pattern about a specified center point.
- Parameters:
number (
int) – An Int specifying the total number of copies, including the original objects, that appear in the radial pattern. Possible values are 2 ≤ number2 ≤ 1000.totalAngle (
float) – A Float specifying the total angle in degrees between the first and last instance in the pattern. A positive angle corresponds to a counter-clockwise direction. The values 360° and -360° represent a special case where the pattern makes a full circle. In this case, because the copy would overlay the original, the copy is not placed at the last position. Possible values are -360.0 ≤ totalAngle ≤ 360.0.centerPoint (
Tuple[float,float]) – A pair of Floats specifying the center of the radial pattern.vertexList (
Tuple[ConstrainedSketchVertex,...], default:()) – A sequence of ConstrainedSketchVertex objects to copy.geomList (
Tuple[ConstrainedSketchGeometry,...], default:()) – A sequence of ConstrainedSketchGeometry objects to copy.
- rectangle(point1, point2)[source]#
This method creates four lines that form a rectangle with diagonal corners defined by the given points and inserts them into the geometry repository of the ConstrainedSketch object.
Note
- Parameters:
- Returns:
success – An Int specifying the success or failure of the method. A value of 0 indicates failure
- Return type:
- removeGapsAndOverlaps(tolerance, geomList)[source]#
This method removes gaps and overlaps between sketch geometries specified by the user. This method is particularly useful when cleaning up imported sketches
- Parameters:
tolerance (
str) – A float value which specifies the largest size of the gap or overlap between entities that is to be removed. Typically this value is small and is used to close gaps and overlaps which may not exist in the originating program but exist in the sketch because of mismatched tolerances between the two programs.geomList (
Tuple[ConstrainedSketchGeometry,...]) – A sequence of ConstrainedSketchGeometry objects where the gaps and overlaps are to be removed.
- repairShortEdges(geomList, tolerance='')[source]#
This method deletes the short edges specified, optionally selecting only those short edges whose lengths are smaller than the specified tolerance and healing the resultant gap in the sketch. This method is particularly useful in conjunction with removeGapsAndOverlap when cleaning up imported sketches.
- Parameters:
geomList (
Tuple[ConstrainedSketchGeometry,...]) – A sequence of ConstrainedSketchGeometry objects where the short edges are to be removed.tolerance (
str, default:'') – A float value that is used to select and delete only those edges specified in geomList whose lengths are smaller than the given value. The default value is -1.0. This value implies that all edges specified in geomList will be removed and the sketch healed to remove gaps left by their removal.
- retrieveSketch(sketch)[source]#
This method copies all ConstrainedSketchGeometry, ConstrainedSketchDimension, ConstrainedSketchConstraint, and ConstrainedSketchParameter objects from the specified ConstrainedSketch object. The new objects are added to the existing objects (if any). The objects in the specified ConstrainedSketch object are not modified by the retrieve operation.
- Parameters:
sketch (
ConstrainedSketch) – AConstrainedSketchobject specifying the object from which to copy.
- rotate(centerPoint, angle, objectList)[source]#
This method rotates the given ConstrainedSketchGeometry objects by the given angle and about the given point.
Note
- scale(scaleValue, scaleCenter, objectList)[source]#
This method scales the given ConstrainedSketchGeometry objects by the given scale factor and about the given point.
Note
- setPrimaryObject(option)[source]#
This method makes the ConstrainedSketch object the primary object in the current viewport. The sketch remains the primary object in the current viewport until an unsetPrimaryobject command is issued.
- Parameters:
option (
Literal[STANDALONE, SUPERIMPOSE]) – A SymbolicConstant specifying how the sketch is displayed. Possible values are: STANDALONE: Indicates a new stand-alone sketch. The current viewport is cleared and is replaced by the stand-alone sketch. The view direction is set to −ZZ. SUPERIMPOSE: Indicates that the sketch is superimposed on the current viewport. The view direction is changed to be perpendicular to the sketch plane. The change is effected smoothly as an animated sequence of many small viewing steps.
- sketchOptions: ConstrainedSketchOptions = <abaqus.Sketcher.ConstrainedSketchOptions.ConstrainedSketchOptions.ConstrainedSketchOptions object>[source]#
A
ConstrainedSketchOptionsobject specifying the sketch option settings.
- trimExtendCurve(curve1, point1, curve2, point2)[source]#
This method trims or extends a specified ConstrainedSketchGeometry object (curve1) using another specified ConstrainedSketchGeometry object (curve2). curve2 is not affected by the operation. The location for the trim or extend is determined by the specified point values.
- Parameters:
curve1 (
str) – The ConstrainedSketchGeometry object specifying the object to be trimmed or extended.point1 (
Tuple[float,float]) – A pair of Floats specifying the location on curve1 where trim or extend should be applied.curve2 (
str) – The ConstrainedSketchGeometry object specifying the object to which curve1 is trimmed or extended. curve2 is not trimmed or extended.point2 (
Tuple[float,float]) – A pair of Floats specifying the location on curve2 near where curve1 should be trimmed or extended.
- unsetPrimaryObject()[source]#
This method removes the ConstrainedSketch object from the current viewport, reversing the effects of the setPrimaryobject command. If the option argument was set to SUPERIMPOSE, the viewport will be returned to the view orientation that was in place when the setPrimaryobject command was issued. If the option argument was set to STANDALONE, the viewport will be left empty.
- vertices: ConstrainedSketchVertexArray = [][source]#
A
ConstrainedSketchVertexArrayobject.
- writeAcisFile(fileName, version=None)[source]#
This method exports the geometry of the sketch to a named file in ACIS format.
- Parameters:
fileName (
str) –A String specifying the name of the file to which to write. The file name’s extension is used to determine whether a part or assembly is written. Use the file extension .asat for the assembly format.
Changed in version 2018: Add description for thr file name’s extension.
version (
Optional[float], default:None) – A Float specifying the ACIS version. For example, the Float 12.0 corresponds to ACIS Version 12.0. The default value is the current version of ACIS.
ConstrainedSketchConstraintModel#
- class ConstrainedSketchConstraintModel[source]#
A
ConstrainedSketchobject contains the entities that are used to create a sketch. The objects include ConstrainedSketchGeometry objects contained in the ConstrainedSketchGeometry Repository, such as Line, Arc, and Spline. ConstrainedSketchVertex, ConstrainedSketchDimension, ConstrainedSketchConstraint, and ConstrainedSketchParameter objects are contained in their respective repositories.Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name]
Public Data Attributes:
Inherited from
ConstrainedSketchBaseconstraintsA repository of ConstrainedSketchConstraint objects.
dimensionsA repository of ConstrainedSketchDimension objects.
geometryA
ConstrainedSketchGeometryArrayobject specifying the sketch geometry, such as lines, arcs, circles, and splines.parametersA repository of ConstrainedSketchParameter objects specifying sketch parameters, which may be associated with dimensions.
sketchOptionsA
ConstrainedSketchOptionsobject specifying the sketch option settings.verticesA
ConstrainedSketchVertexArrayobject.imageOptionsA
ConstrainedSketchImageOptionsobject.Public Methods:
CoincidentConstraint(entity1, entity2)This method creates a coincident constraint.
ConcentricConstraint(entity1, entity2)This method creates a concentric constraint.
EqualLengthConstraint(entity1, entity2)This method creates an equal length constraint.
EqualRadiusConstraint(entity1, entity2)This method creates an equal radius constraint.
FixedConstraint(entity)This method creates a fixed constraint.
HorizontalConstraint(entity)This method creates a horizontal constraint.
VerticalConstraint(entity)This method creates a vertical constraint.
ParallelConstraint(entity1, entity2)This method creates a parallel constraint.
PerpendicularConstraint(entity1, entity2)This method creates a perpendicular constraint.
EqualDistanceConstraint(entity1, entity2, ...)This method creates an equal distance constraint.
TangentConstraint(entity1, entity2)This method creates a tangent constraint.
- CoincidentConstraint(entity1, entity2)[source]#
This method creates a coincident constraint. This constraint applies to two vertices, to a vertex and a ConstrainedSketchGeometry object, or to two ConstrainedSketchGeometry objects of the same type and constrains them to be coincident.
Note
This function can be accessed by:
mdb.models[name].sketches[name].CoincidentConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject or a ConstrainedSketchVertex object specifying the first object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject or a ConstrainedSketchVertex object specifying the second object.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- ConcentricConstraint(entity1, entity2)[source]#
This method creates a concentric constraint. This constraint applies to any combination of circles, arcs, ellipses, and points and constrains them to be concentric. A concentric constraint implies that the center of ConstrainedSketchGeometry objects coincide.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConcentricConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first arc, circle, ellipse, or sketch vertex.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second arc, circle, ellipse, or sketch vertex.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- EqualDistanceConstraint(entity1, entity2, midpoint)[source]#
This method creates an equal distance constraint. This constraint can be applied between a midpoint ConstrainedSketchVertex object and any other two ConstrainedSketchVertex objects or between a midpoint ConstrainedSketchVertex object and two ConstrainedSketchGeometry objects that are lines. The equal distance constraint forces the midpoint vertex to remain at an equal distance from the two other vertices or lines.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EqualDistanceConstraint
Note
- Parameters:
entity1 (
str) – AConstrainedSketchGeometry object specifying the first line or ConstrainedSketchVertex object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line or ConstrainedSketchVertex object.midpoint (
Vertex) – AConstrainedSketchVertexobject specifying the vertex that will be positioned an equal distance from entity1 and entity2.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- EqualLengthConstraint(entity1, entity2)[source]#
This method creates an equal length constraint. This constraint applies to lines and constrains them such that their lengths are equal.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EqualLengthConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first line.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- EqualRadiusConstraint(entity1, entity2)[source]#
This method creates an equal radius constraint. This constraint applies to circles and arcs and constrains them such that their radii are equal.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EqualRadiusConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first arc or circle.entity2 (
str) – A ConstrainedSketchGeometry specifying the second arc or circle.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- FixedConstraint(entity)[source]#
This method creates a fixed constraint. This constraint applies to a ConstrainedSketchGeometry object or a ConstrainedSketchVertex object and constrains them to be fixed in space. Both the location and the shape of the sketch geometry is fixed.
Note
This function can be accessed by:
mdb.models[name].sketches[name].FixedConstraint
Note
- Parameters:
entity (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject or a ConstrainedSketchVertex object specifying the item to fix in space.- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- HorizontalConstraint(entity)[source]#
This method creates a horizontal constraint. This constraint applies to a line and constrains it to be horizontal.
Note
This function can be accessed by:
mdb.models[name].sketches[name].HorizontalConstraint
Note
- Parameters:
entity (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the line to constrain.- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- ParallelConstraint(entity1, entity2)[source]#
This method creates a parallel constraint. This constraint applies to lines and constrains them to be parallel.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ParallelConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first line.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- PerpendicularConstraint(entity1, entity2)[source]#
This method creates a perpendicular constraint. This constraint applies to different types of ConstrainedSketchGeometry objects and constrains them to be perpendicular to each other.
Note
This function can be accessed by:
mdb.models[name].sketches[name].PerpendicularConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second object.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- TangentConstraint(entity1, entity2)[source]#
This method creates a tangent constraint. This constraint applies to different types of ConstrainedSketchGeometry objects and constrains them to remain tangential.
Note
This function can be accessed by:
mdb.models[name].sketches[name].TangentConstraint
Note
- Parameters:
entity1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first object.entity2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second object.
- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
- VerticalConstraint(entity)[source]#
This method creates a vertical constraint. This constraint applies to a line and constrains it to be vertical.
Note
This function can be accessed by:
mdb.models[name].sketches[name].VerticalConstraint
Note
- Parameters:
entity (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the line to constrain.- Returns:
sketch – A
ConstrainedSketchobject- Return type:
ConstrainedSketch
ConstrainedSketchDimensionModel#
- class ConstrainedSketchDimensionModel[source]#
A
ConstrainedSketchobject contains the entities that are used to create a sketch. The objects include ConstrainedSketchGeometry objects contained in the ConstrainedSketchGeometry Repository, such as Line, Arc, and Spline. ConstrainedSketchVertex, ConstrainedSketchDimension, ConstrainedSketchConstraint, and ConstrainedSketchParameter objects are contained in their respective repositories.Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name]
Public Data Attributes:
Inherited from
ConstrainedSketchBaseconstraintsA repository of ConstrainedSketchConstraint objects.
dimensionsA repository of ConstrainedSketchDimension objects.
geometryA
ConstrainedSketchGeometryArrayobject specifying the sketch geometry, such as lines, arcs, circles, and splines.parametersA repository of ConstrainedSketchParameter objects specifying sketch parameters, which may be associated with dimensions.
sketchOptionsA
ConstrainedSketchOptionsobject specifying the sketch option settings.verticesA
ConstrainedSketchVertexArrayobject.imageOptionsA
ConstrainedSketchImageOptionsobject.Public Methods:
AngularDimension(line1, line2, textPoint[, ...])This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry objects, with the given angle between them.
HorizontalDimension(vertex1, vertex2, textPoint)This method constructs a ConstrainedSketchDimension object between two vertices.
ObliqueDimension(vertex1, vertex2, textPoint)This method constructs a ConstrainedSketchDimension object between two vertices.
RadialDimension(curve, textPoint[, value, ...])This method constructs a ConstrainedSketchDimension object on a circular or elliptical arc.
VerticalDimension(vertex1, vertex2, textPoint)This method constructs a ConstrainedSketchDimension between two vertices.
DistanceDimension(entity1, entity2, textPoint)This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry, or aConstrainedSketchVertex and ConstrainedSketchGeometry object.
- AngularDimension(line1, line2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry objects, with the given angle between them.
Note
This function can be accessed by:
mdb.models[name].sketches[name].AngularDimension
Note
- Parameters:
line1 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the first line.line2 (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the second line.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the angle between the two lines.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- DistanceDimension(entity1, entity2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry, or aConstrainedSketchVertex and ConstrainedSketchGeometry object. A distance dimension specifies the shortest distance between two entities.
Note
This function can be accessed by:
mdb.models[name].sketches[name].DistanceDimension
Note
- Parameters:
entity1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject or ConstrainedSketchGeometry object.entity2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject or ConstrainedSketchGeometry object.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the angle between the two lines.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- HorizontalDimension(vertex1, vertex2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two vertices. A horizontal dimension indicates the horizontal distance along the X-axis between two vertices.
Note
This function can be accessed by:
mdb.models[name].sketches[name].HorizontalDimension
Note
- Parameters:
vertex1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the first endpoint.vertex2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the second endpoint.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float distance between the two vertices.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the distance between the two vertices.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- ObliqueDimension(vertex1, vertex2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension object between two vertices. An oblique dimension indicates the distance between two vertices.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ObliqueDimension
Note
- Parameters:
vertex1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the first endpoint.vertex2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the second endpoint.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the distance between the two ConstrainedSketchVertex objects.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the distance between the two vertices.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- RadialDimension(curve, textPoint, value=None, reference=OFF, majorRadius=None, minorRadius=None)[source]#
This method constructs a ConstrainedSketchDimension object on a circular or elliptical arc. A radial dimension indicates the radius of an arc or circle or the major or minor radius of an ellipse.
Note
This function can be accessed by:
mdb.models[name].sketches[name].RadialDimension
Note
- Parameters:
curve (
ConstrainedSketchGeometry) – AConstrainedSketchGeometryobject specifying the circular or elliptical arc.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the radius of the arc, circle or ellipse.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.majorRadius (
Optional[float], default:None) – A Float specifying the major Radius if curve is an ellipse. This is mutually exclusive with value and minorRadius.minorRadius (
Optional[float], default:None) – A Float specifying the minor Radius if curve is an ellipse. This is mutually exclusive with value and majorRadius.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
- VerticalDimension(vertex1, vertex2, textPoint, value=None, reference=OFF)[source]#
This method constructs a ConstrainedSketchDimension between two vertices. A vertical dimension controls the vertical distance along the Y-axis between two vertices.
Note
This function can be accessed by:
mdb.models[name].sketches[name].VerticalDimension
Note
- Parameters:
vertex1 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the first endpoint.vertex2 (
ConstrainedSketchVertex) – AConstrainedSketchVertexobject specifying the second endpoint.textPoint (
Tuple[float,...]) – A pair of Floats specifying the location of the dimension text.value (
Optional[float], default:None) – A Float specifying the angle between the two lines.reference (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether the created dimension enforces the above value or if it simply measures the angle between two lines.
- Returns:
A
ConstrainedSketchDimensionobject- Return type:
dimension
ConstrainedSketchGeometryModel#
- class ConstrainedSketchGeometryModel[source]#
A
ConstrainedSketchobject contains the entities that are used to create a sketch. The objects include ConstrainedSketchGeometry objects contained in the ConstrainedSketchGeometry Repository, such as Line, Arc, and Spline. ConstrainedSketchVertex, ConstrainedSketchDimension, ConstrainedSketchConstraint, and ConstrainedSketchParameter objects are contained in their respective repositories.Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name]
Public Data Attributes:
Inherited from
ConstrainedSketchBaseconstraintsA repository of ConstrainedSketchConstraint objects.
dimensionsA repository of ConstrainedSketchDimension objects.
geometryA
ConstrainedSketchGeometryArrayobject specifying the sketch geometry, such as lines, arcs, circles, and splines.parametersA repository of ConstrainedSketchParameter objects specifying sketch parameters, which may be associated with dimensions.
sketchOptionsA
ConstrainedSketchOptionsobject specifying the sketch option settings.verticesA
ConstrainedSketchVertexArrayobject.imageOptionsA
ConstrainedSketchImageOptionsobject.Public Methods:
Arc3Points(point1, point2, point3)This method constructs an arc using a two endpoints and an intermediate third point on the arc.
ArcByCenterEnds(center, point1, point2, ...)This method constructs an arc using a center point and two vertices.
ArcByStartEndTangent(point1, point2, vector)This method constructs an arc using two vertices.
CircleByCenterPerimeter(center, point1)This method constructs a circle using a center point and a point on the perimeter.
ConstructionCircleByCenterPerimeter(center, ...)This method constructs a construction circle using a center point and a point on the perimeter.
EllipseByCenterPerimeter(center, axisPoint1, ...)This method constructs an ellipse using a center point, a major axis point, and a minor axis point.
FilletByRadius(radius, curve1, nearPoint1, ...)This method constructs a fillet arc of a given radius between two curves.
Line(point1, point2)This method creates a line between two given points.
ConstructionLine(point1, point2)This method creates an oblique construction line that runs between two given points.
Spline(points[, constrainPoints])This method creates a spline curve running through a sequence of points.
Spot(point)This method creates a spot construction point located at the specified coordinates.
This method returns an list of ConstrainedSketchVertex objects which are a part of the given ConstrainedSketchGeometry object.
getSize()This method returns the length of the given ConstrainedSketchGeometry object.
getPointAtDistance(point, distance[, percentage])This method returns a point offset along the given ConstrainedSketchGeometry from the given end by a specified arc length distance or a percentage of the total length of the ConstrainedSketchGeometry object.
- Arc3Points(point1, point2, point3)[source]#
This method constructs an arc using a two endpoints and an intermediate third point on the arc.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Arc3Points
Note
- Parameters:
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- ArcByCenterEnds(center, point1, point2, direction)[source]#
This method constructs an arc using a center point and two vertices. The Arc object is added to the geometry repository of the ConstrainedSketch object. The arc is created in a clockwise fashion from point1 to point2.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ArcByCenterEnds
Note
- Parameters:
center (
Tuple[float,...]) – A pair of Floats specifying the center point of the arc.point1 (
Tuple[float,...]) – A pair of Floats specifying the first endpoint of the arc.point2 (
Tuple[float,...]) – A pair of Floats specifying the second endpoint of the arc.direction (
SymbolicConstant) – A SymbolicConstant specifying the direction of the arc. Possible values are CLOCKWISE and COUNTERCLOCKWISE.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
:raises If incompatible data are given`, :class:`the second endpoint is ignored:
- ArcByStartEndTangent(point1, point2, vector)[source]#
This method constructs an arc using two vertices. The Arc object is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ArcByStartEndTangent
Note
- Parameters:
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- CircleByCenterPerimeter(center, point1)[source]#
This method constructs a circle using a center point and a point on the perimeter. The circle is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].CircleByCenterPerimeter
Note
- ConstructionCircleByCenterPerimeter(center, point1)[source]#
This method constructs a construction circle using a center point and a point on the perimeter. The circle is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConstructionCircleByCenterPerimeter
- Parameters:
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- ConstructionLine(point1, point2)[source]#
This method creates an oblique construction line that runs between two given points.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConstructionLine
Note
- EllipseByCenterPerimeter(center, axisPoint1, axisPoint2)[source]#
This method constructs an ellipse using a center point, a major axis point, and a minor axis point. The ellipse is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].EllipseByCenterPerimeter
Note
- Parameters:
center (
Tuple[float,...]) – A pair of Floats specifying the center point of the ellipse.axisPoint1 (
Tuple[float,...]) – A pair of Floats specifying the major or minor axis point of the ellipse.axisPoint2 (
Tuple[float,...]) – A pair of Floats specifying the minor or major axis point of the ellipse.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- FilletByRadius(radius, curve1, nearPoint1, curve2, nearPoint2)[source]#
This method constructs a fillet arc of a given radius between two curves. The fillet is added to the geometry repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].FilletByRadius
Note
- Parameters:
radius (
float) – A Float specifying the radius of the fillet arc. Possible values are Floats > 0.curve1 (
ConstrainedSketchGeometryModel) – AConstrainedSketchGeometryobject specifying the first curve.nearPoint1 (
Tuple[float,...]) – A pair of Floats specifying a point on the sketch near where the user wishes the fillet to intersect with curve1. This point does not need to be on*curve1*; it is used as a hint to draw the fillet.curve2 (
ConstrainedSketchGeometryModel) – AConstrainedSketchGeometryobject specifying the second curve.nearPoint2 (
Tuple[float,...]) – A pair of Floats specifying a point on the sketch near where the user wishes the fillet to intersect with curve2. This point does not need to be on curve2; it is used as a hint to draw the fillet.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry- Raises:
Range Error` – :class:`cannot construct the Fillet specified: If the radius given cannot be used to create a fillet between the two curves given.
- Line(point1, point2)[source]#
This method creates a line between two given points.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Line
Note
Check Line on help.3ds.com/0.1..
- Spline(points, constrainPoints=True)[source]#
This method creates a spline curve running through a sequence of points.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Spline
Note
Check Spline on help.3ds.com/0.1..
- Parameters:
points (
tuple) – A sequence of pairs of Floats specifying the points through which the spline passes.constrainPoints (
Union[AbaqusBoolean,bool], default:True) – A Boolean that determines whether the points given are to constrained to always remain on the Spline. The default is True. For a large sequence of points, significant performance gains may be achieved by setting the value to False.
- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- Spot(point)[source]#
This method creates a spot construction point located at the specified coordinates. The spot is added to the vertex repository of the ConstrainedSketch object.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Spot
Note
Check Spot on help.3ds.com/0.1..
- Parameters:
point (
Tuple[float,...]) – A pair of Floats specifying the coordinates of the spot construction point.- Returns:
geometry – A
ConstrainedSketchGeometryobject- Return type:
ConstrainedSketchGeometry
- getPointAtDistance(point, distance, percentage=OFF)[source]#
This method returns a point offset along the given ConstrainedSketchGeometry from the given end by a specified arc length distance or a percentage of the total length of the ConstrainedSketchGeometry object.
- Parameters:
point (
Tuple[float,...]) – A pair of Floats specifying the point from which the distance is to be measured.distance (
str) – A float specifying the arc length distance along the ConstrainedSketchGeometry from the point at which the required point is situated.percentage (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean that specifies if the distance is an absolute distance or is a fraction relative to the length of the ConstrainedSketchGeometry object.
- Returns:
points – A pair of floats representing the point along the edge
- Return type:
Tuple[float,]
ConstrainedSketchParameterModel#
- class ConstrainedSketchParameterModel[source]#
A
ConstrainedSketchobject contains the entities that are used to create a sketch. The objects include ConstrainedSketchGeometry objects contained in the ConstrainedSketchGeometry Repository, such as Line, Arc, and Spline. ConstrainedSketchVertex, ConstrainedSketchDimension, ConstrainedSketchConstraint, and ConstrainedSketchParameter objects are contained in their respective repositories.Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name]
Public Data Attributes:
Inherited from
ConstrainedSketchBaseconstraintsA repository of ConstrainedSketchConstraint objects.
dimensionsA repository of ConstrainedSketchDimension objects.
geometryA
ConstrainedSketchGeometryArrayobject specifying the sketch geometry, such as lines, arcs, circles, and splines.parametersA repository of ConstrainedSketchParameter objects specifying sketch parameters, which may be associated with dimensions.
sketchOptionsA
ConstrainedSketchOptionsobject specifying the sketch option settings.verticesA
ConstrainedSketchVertexArrayobject.imageOptionsA
ConstrainedSketchImageOptionsobject.Public Methods:
ConstrainedSketchParameter(name[, path, ...])This method creates a parameter and optionally associates a dimension with this parameter.
- ConstrainedSketchParameter(name, path='', expression='', previousParameter='')[source]#
This method creates a parameter and optionally associates a dimension with this parameter.
Note
This function can be accessed by:
mdb.models[name].sketches[name].ConstrainedSketchParameter
Note
- Parameters:
name (
str) – A String specifying the name of the ConstrainedSketchParameter object. No two parameters in the same ConstrainedSketch can have the same name.path (
str, default:'') – A String specifying the ConstrainedSketchDimension object with which this parameter is associated.expression (
str, default:'') – A String specifying the expression or value associated with the ConstrainedSketchParameter.previousParameter (
str, default:'') – A String specifying the name of the previous ConstrainedSketchParameter, if it exists. The previousParameter argument implies an order among the parameters. No two parameters can reference the same parameter as the previous parameter.
- Returns:
obj – A
ConstrainedSketchParameterobject- Return type:
ConstrainedSketchVertexModel#
- class ConstrainedSketchVertexModel[source]#
A
ConstrainedSketchobject contains the entities that are used to create a sketch. The objects include ConstrainedSketchGeometry objects contained in the ConstrainedSketchGeometry Repository, such as Line, Arc, and Spline. ConstrainedSketchVertex, ConstrainedSketchDimension, ConstrainedSketchConstraint, and ConstrainedSketchParameter objects are contained in their respective repositories.Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name]
Public Data Attributes:
Inherited from
ConstrainedSketchBaseconstraintsA repository of ConstrainedSketchConstraint objects.
dimensionsA repository of ConstrainedSketchDimension objects.
geometryA
ConstrainedSketchGeometryArrayobject specifying the sketch geometry, such as lines, arcs, circles, and splines.parametersA repository of ConstrainedSketchParameter objects specifying sketch parameters, which may be associated with dimensions.
sketchOptionsA
ConstrainedSketchOptionsobject specifying the sketch option settings.verticesA
ConstrainedSketchVertexArrayobject.imageOptionsA
ConstrainedSketchImageOptionsobject.Public Methods:
Spot(point)This method creates a spot (construction point) located at the specified coordinates.
- Spot(point)[source]#
This method creates a spot (construction point) located at the specified coordinates.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Spot
Note
Check Spot on help.3ds.com/0.1..
- Parameters:
point (
Tuple[float,...]) – A pair of Floats specifying the coordinates of the construction point.- Returns:
vertex – A
ConstrainedSketchVertexobject (None if the spot cannot be created)- Return type:
ConstrainedSketchVertex
CoincidentConstraint#
ConcentricConstraint#
ConstrainedSketchConstraint#
EqualDistanceConstraint#
EqualLengthConstraint#
EqualRadiusConstraint#
FixedConstraint#
HorizontalConstraint#
ParallelConstraint#
PerpendicularConstraint#
TangentConstraint#
VerticalConstraint#
AngularDimension#
DistanceDimension#
- class DistanceDimension(entity1, entity2, textPoint, value=None, reference=OFF)[source]#
Public Methods:
__init__(entity1, entity2, textPoint[, ...])This method constructs a ConstrainedSketchDimension object between two ConstrainedSketchGeometry, or aConstrainedSketchVertex and ConstrainedSketchGeometry object.
HorizontalDimension#
ObliqueDimension#
RadialDimension#
VerticalDimension#
ConstrainedSketchGeometry#
- class ConstrainedSketchGeometry[source]#
The ConstrainedSketchGeometry object stores the geometry of a sketch, such as lines, circles, arcs, and construction lines.
Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name].geometry[i] mdb.models[name].sketches[name].geometry[i][i]
Note
Public Data Attributes:
An Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
A SymbolicConstant specifying the geometry of the sketch entity.
A SymbolicConstant specifying the type of sketch entity.
A tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
- curveType: Optional[SymbolicConstant] = None[source]#
A SymbolicConstant specifying the geometry of the sketch entity. Possible values are ARC, CIRCLE, ELLIPSE, LINE, and SPLINE.
- id: Optional[int] = None[source]#
An Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
- pointOn: Optional[float] = None[source]#
A tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
- type: Optional[SymbolicConstant] = None[source]#
A SymbolicConstant specifying the type of sketch entity. Possible values are REGULAR, REFERENCE, and CONSTRUCTION.
ConstrainedSketchGeometryArray#
- class ConstrainedSketchGeometryArray(iterable=(), /)[source]#
The ConstrainedSketchGeometryArray is a sequence of ConstrainedSketchGeometry objects.
Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name].geometry[i]
Public Methods:
findAt(coordinates[, printWarning])This method returns the ConstrainedSketchGeometry object located at the given coordinates.
Inherited from
list__repr__()Return repr(self).
__getattribute__(name, /)Return getattr(self, name).
__lt__(value, /)Return self<value.
__le__(value, /)Return self<=value.
__eq__(value, /)Return self==value.
__ne__(value, /)Return self!=value.
__gt__(value, /)Return self>value.
__ge__(value, /)Return self>=value.
__iter__()Implement iter(self).
__init__(*args, **kwargs)__len__()Return len(self).
__getitem__x.__getitem__(y) <==> x[y]
__setitem__(key, value, /)Set self[key] to value.
__delitem__(key, /)Delete self[key].
__add__(value, /)Return self+value.
__mul__(value, /)Return self*value.
__rmul__(value, /)Return value*self.
__contains__(key, /)Return key in self.
__iadd__(value, /)Implement self+=value.
__imul__(value, /)Implement self*=value.
__reversed__()Return a reverse iterator over the list.
__sizeof__()Return the size of the list in memory, in bytes.
clear()Remove all items from list.
copy()Return a shallow copy of the list.
append(object, /)Append object to the end of the list.
insert(index, object, /)Insert object before index.
extend(iterable, /)Extend list by appending elements from the iterable.
pop([index])Remove and return item at index (default last).
remove(value, /)Remove first occurrence of value.
index(value[, start, stop])Return first index of value.
count(value, /)Return number of occurrences of value.
reverse()Reverse IN PLACE.
sort(*[, key, reverse])Sort the list in ascending order and return None.
__class_getitem__See PEP 585
Inherited from
Generic__class_getitem__See PEP 585
__init_subclass__(*args, **kwargs)This method is called when a class is subclassed.
Private Data Attributes:
Inherited from
Generic_is_protocol
- findAt(coordinates, printWarning=True)[source]#
This method returns the ConstrainedSketchGeometry object located at the given coordinates.
- Parameters:
coordinates (
tuple) – A sequence of Floats specifying the X- and Y-coordinates of the object to find.printWarning (
Union[AbaqusBoolean,bool], default:True) – A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:
A
ConstrainedSketchGeometryobject.- Return type:
ConstrainedSketchGeometry
Arc3Points#
- class Arc3Points(point1, point2, point3)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(point1, point2, point3)This method constructs an arc using a two endpoints and an intermediate third point on the arc.
ArcByCenterEnds#
- class ArcByCenterEnds(center, point1, point2, direction)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(center, point1, point2, direction)This method constructs an arc using a center point and two vertices.
ArcByStartEndTangent#
- class ArcByStartEndTangent(point1, point2, vector)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(point1, point2, vector)This method constructs an arc using two vertices.
CircleByCenterPerimeter#
- class CircleByCenterPerimeter(center, point1)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(center, point1)This method constructs a circle using a center point and a point on the perimeter.
ConstructionCircleByCenterPerimeter#
- class ConstructionCircleByCenterPerimeter(center, point1)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(center, point1)This method constructs a construction circle using a center point and a point on the perimeter.
ConstructionLine#
- class ConstructionLine(point1, point2)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(point1, point2)This method creates an oblique construction line that runs between two given points.
EllipseByCenterPerimeter#
- class EllipseByCenterPerimeter(center, axisPoint1, axisPoint2)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(center, axisPoint1, axisPoint2)This method constructs an ellipse using a center point, a major axis point, and a minor axis point.
FilletByRadius#
- class FilletByRadius(radius, curve1, nearPoint1, curve2, nearPoint2)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(radius, curve1, nearPoint1, curve2, ...)This method constructs a fillet arc of a given radius between two curves.
getPointAtDistance#
- class getPointAtDistance(point, distance, percentage=OFF)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(point, distance[, percentage])This method returns a point offset along the given ConstrainedSketchGeometry from the given end by a specified arc length distance or a percentage of the total length of the ConstrainedSketchGeometry object.
Line#
- class Line(point1, point2)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(point1, point2)This method creates a line between two given points.
Spline#
- class Spline(points, constrainPoints=True)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(points[, constrainPoints])This method creates a spline curve running through a sequence of points.
Spot#
- class Spot(point)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchGeometryidAn Int specifying the index of the sketch entity in the ConstrainedSketchGeometryArray.
curveTypeA SymbolicConstant specifying the geometry of the sketch entity.
typeA SymbolicConstant specifying the type of sketch entity.
pointOnA tuple of Floats specifying the X- and*Y*-coordinates of a point located on the geometry.
Public Methods:
__init__(point)This method creates a spot construction point located at the specified coordinates.
ConstrainedSketcherOptions#
- class ConstrainedSketcherOptions[source]#
The ConstrainedSketcherOptions object is used to store values and attributes which will be applied to all sketches used in the current session. The ConstrainedSketcherOptions object has no constructor.
Note
This object can be accessed by:
import sketch session.sketcherOptions
Note
Public Methods:
setValues([constructionGeometry, gridSnap, ...])This method modifies the ConstrainedSketchOptions object.
- setValues(constructionGeometry=ON, gridSnap=ON, preselection=ON, addImpliedConstraints=ON, maxCoplanarEntities=300, autoConstrainAngularTolerance=0, autoConstrainLinearTolerance=None, autoConstrainOptions=None, dragMethod=abaqusConstants.MINIMUM_MOVE, editMethod=abaqusConstants.STANDARD)[source]#
This method modifies the ConstrainedSketchOptions object.
- Parameters:
constructionGeometry (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying whether construction geometry is shown. The default value is ON.gridSnap (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying whether the cursor snaps to the grid. The default value is ON.preselection (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying whether geometry will be preselected. The default value is ON.addImpliedConstraints (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying if implied constraints are added during sketching. The default value is ON.maxCoplanarEntities (
int, default:300) – An Int specifying the maximum number of coplanar entities which should be automatically projected from the background, when a sketch based feature is created or edited. When this value is exceeded no entities are automatically projected and a warning issued. Possible values are maxCoplanarEntities >> 0. The default value is 300.autoConstrainAngularTolerance (
float, default:0) – A Float specifying the angular tolerance in degrees which is used to determine parallel and tangential conditions during the auto-constrain operation. For example any two lines which have an angle smaller than the given autoConstrainAngularTolerance will be assumed to be parallel, and a parallel constrain may be added during the auto-constrain operation. The default value is 0.01.autoConstrainLinearTolerance (
Optional[float], default:None) – A Float specifying the linear tolerance which is used to determine when two points or geometries are coincident during the auto-constrain operation. The default value is 10-6.autoConstrainOptions (
Optional[SymbolicConstant], default:None) – A sequence of SymbolicConstants specifying which type of constraints may be added by the auto-constraint tool. Possible values are PARALLEL, PERPENDICULAR, IDENTICAL, TANGENT, CONCENTRIC, and EQUALRADIUS. The default value is (PARALLEL,, PERPENDICULAR,, IDENTICAL,, TANGENT,, CONCENTRIC,, EQUALRADIUS).dragMethod (
SymbolicConstant, default:MINIMUM_MOVE) – A SymbolicConstant specifying the constraint solving mode used by the sketcher during drag operation. Possible values are MINIMUM_MOVE, STANDARD, WEIGHTED, and RELAXATION. The default value is MINIMUM_MOVE.editMethod (
SymbolicConstant, default:STANDARD) – A SymbolicConstant specifying the constraint solving mode used by the sketcher during regular sketch editing and adding new constraints and dimensions. Possible values are MINIMUM_MOVE, STANDARD, WEIGHTED, and RELAXATION. The default value is STANDARD.
- Raises:
RangeError –
ConstrainedSketchImageOptions#
- class ConstrainedSketchImageOptions[source]#
The ConstrainedSketchImageOptions object is used to store values and attributes associated with the background image for a particular sketch. The ConstrainedSketchImageOptions object has no constructor.
Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name].imageOptions
Public Methods:
setValues([imageName, showImage, origin, ...])This method modifies the ConstrainedSketchOptions object.
- setValues(imageName='', showImage=OFF, origin=(), xScale=1, yScale=1, translucency=1)[source]#
This method modifies the ConstrainedSketchOptions object.
- Parameters:
imageName (
str, default:'') – A String specifying the name of the image. A list of valid image names is in the images repository in the session object.showImage (
Union[AbaqusBoolean,bool], default:OFF) – A Boolean specifying whether an image should be displayed in the sketcher background. The default value is OFF.origin (
Tuple[float,...], default:()) – A pair of Floats specifying the X- and Y-offsets in millimeters from the lower-left corner of the viewport. The default value is (0, 0).xScale (
float, default:1) – A Float specifying the scale applied to the image width. The default value is 1.0.When xScale is negative, the image is mirrored about its y-axis but its position is not affected.yScale (
float, default:1) – A Float specifying the scale applied to the image height. The default value is 1.0.When yScale is negative, the image is mirrored about its x-axis but its position is not affected.translucency (
float, default:1) – A Float specifying the translucency factor to use when displaying the image. Possible values are 0.0 ≤ translucency ≤ 1.0 with 0.0 being invisible and 1.0 being opaque. The default value is 1.0.
- Raises:
RangeError –
ConstrainedSketchOptions#
- class ConstrainedSketchOptions[source]#
The ConstrainedSketchOptions object is used to store values and attributes associated with a particular sketch. The ConstrainedSketchOptions object has no constructor.
Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name].sketchOptions
Note
Public Methods:
setValues([sheetSize, gridSpacing, grid, ...])This method modifies the ConstrainedSketchOptions object.
- setValues(sheetSize=None, gridSpacing=None, grid=ON, gridFrequency=1, dimensionTextHeight=12, decimalPlaces=None, constructionGeometry=ON, gridSnap=ON, preselection=ON, sheetAuto=ON, gridOrigin=(), gridAngle=0, viewStyle=abaqusConstants.REGULAR, addImpliedConstraints=ON, maxCoplanarEntities=300, autoConstrainAngularTolerance=0, autoConstrainLinearTolerance=None, autoConstrainOptions=None, dragMethod=abaqusConstants.MINIMUM_MOVE, editMethod=abaqusConstants.STANDARD)[source]#
This method modifies the ConstrainedSketchOptions object.
- Parameters:
sheetSize (
Optional[float], default:None) – A Float specifying the sheet size. Possible values are Floats >> 0. The default value is the sheetSize specified with the Sketch method.gridSpacing (
Optional[float], default:None) – A Float specifying the spacing between gridlines. Possible values are Floats >> 0. The default value is approximately 2.5% of sheetSize.grid (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying whether the grid is shown. The default value is ON.gridFrequency (
int, default:1) – An Int specifying how often gridlines are shown. Possible values are gridFrequency >> 0. The default value is 1.dimensionTextHeight (
float, default:12) – A Float specifying the height of the dimension text in points. Possible values are Floats >> 0. The default value is 12.0.decimalPlaces (
Optional[int], default:None) – An Int specifying how many decimal places are shown in dimensions. Possible values are 0 ≤ decimalPlaces ≤ 6. The initial value depends on the value of sheetSize.constructionGeometry (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying whether construction geometry is shown. The default value is ON.gridSnap (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying whether the cursor snaps to the grid. The default value is ON.preselection (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying whether geometry will be preselected. The default value is ON.sheetAuto (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying if the sheet size and the grid spacing are automatically computed. The default value is ON.gridOrigin (
tuple, default:()) – A sequence of Floats specifying the X - Y coordinates for the origin of the grid. The default value is (0, 0).gridAngle (
float, default:0) – A Float specifying the angle of the grid relative to the computer screen. The default value is 0.0.viewStyle (
SymbolicConstant, default:REGULAR) – A SymbolicConstant specifying the type of sketch displayed in the viewport. Possible values are REGULAR and AXISYM. The default value is REGULAR.addImpliedConstraints (
Union[AbaqusBoolean,bool], default:ON) – A Boolean specifying if implied constraints are added during sketching. The default value is ON.maxCoplanarEntities (
int, default:300) – An Int specifying the maximum number of coplanar entities which should be automatically projected from the background, when a sketch based feature is created or edited. When this value is exceeded no entities are automatically projected and a warning issued. Possible values are maxCoplanarEntities >> 0. The default value is 300.autoConstrainAngularTolerance (
float, default:0) – A Float specifying the angular tolerance in degrees which is used to determine parallel and tangential conditions during the auto-constrain operation. For example any two lines which have an angle smaller than the given autoConstrainAngularTolerance will be assumed to be parallel, and a parallel constrain may be added during the auto-constrain operation. The default value is 0.01.autoConstrainLinearTolerance (
Optional[float], default:None) – A Float specifying the linear tolerance which is used to determine when two points or geometries are coincident during the auto-constrain operation. The default value is 10-6.autoConstrainOptions (
Optional[SymbolicConstant], default:None) – A sequence of SymbolicConstants specifying which type of constraints may be added by the auto-constraint tool. Possible values are PARALLEL, PERPENDICULAR, IDENTICAL, TANGENT, CONCENTRIC, and EQUALRADIUS. The default value is (PARALLEL,, PERPENDICULAR,, IDENTICAL,, TANGENT,, CONCENTRIC,, EQUALRADIUS).dragMethod (
SymbolicConstant, default:MINIMUM_MOVE) – A SymbolicConstant specifying the constraint solving mode used by the sketcher during drag operation. Possible values are MINIMUM_MOVE, STANDARD, WEIGHTED, and RELAXATION. The default value is MINIMUM_MOVE.editMethod (
SymbolicConstant, default:STANDARD) – A SymbolicConstant specifying the constraint solving mode used by the sketcher during regular sketch editing and adding new constraints and dimensions. Possible values are MINIMUM_MOVE, STANDARD, WEIGHTED, and RELAXATION. The default value is STANDARD.
- Raises:
RangeError –
Parameter#
- class Parameter(name, path='', expression='', previous='')[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchParameternameA String specifying the name of the ConstrainedSketchParameter object.
pathA String specifying the path to the ConstrainedSketchDimension that depends on this ConstrainedSketchParameter.
expressionA String specifying an expression or value associated with this ConstrainedSketchParameter.
previousParameterA String specifying the name of the ConstrainedSketchParameter that appears before this one in the ordered list.
Public Methods:
__init__(name[, path, expression, previous])This method creates a parameter and optionally associates a dimension with this parameter.
Inherited from
ConstrainedSketchParameterParameter(name[, path, expression, ...])This method creates a parameter and optionally associates a dimension with this parameter.
ConstrainedSketchVertex#
- class ConstrainedSketchVertex[source]#
The ConstrainedSketchVertex object stores the vertex position.
Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name].vertices[i] mdb.models[name].sketches[name].vertices[i][i]
Note
Public Data Attributes:
A tuple of Floats specifying the*X*-, Y-, and Z-coordinates of the sketch vertex.
Public Methods:
Spot(point)This method creates a spot (construction point) located at the specified coordinates.
- Spot(point)[source]#
This method creates a spot (construction point) located at the specified coordinates.
Note
This function can be accessed by:
mdb.models[name].sketches[name].Spot
Note
Check Spot on help.3ds.com/0.1..
- Parameters:
point (
Tuple[float,...]) – A pair of Floats specifying the coordinates of the construction point.- Returns:
A
ConstrainedSketchVertexobject (None if the spot cannot be created).- Return type:
ConstrainedSketchVertexArray#
- class ConstrainedSketchVertexArray(iterable=(), /)[source]#
The ConstrainedSketchVertexArray is a sequence of ConstrainedSketchVertex objects.
Note
This object can be accessed by:
import sketch mdb.models[name].sketches[name].vertices[i]
Public Methods:
findAt(coordinates[, printWarning])This method returns the ConstrainedSketchVertex located at the given coordinates.
Inherited from
list__repr__()Return repr(self).
__getattribute__(name, /)Return getattr(self, name).
__lt__(value, /)Return self<value.
__le__(value, /)Return self<=value.
__eq__(value, /)Return self==value.
__ne__(value, /)Return self!=value.
__gt__(value, /)Return self>value.
__ge__(value, /)Return self>=value.
__iter__()Implement iter(self).
__init__(*args, **kwargs)__len__()Return len(self).
__getitem__x.__getitem__(y) <==> x[y]
__setitem__(key, value, /)Set self[key] to value.
__delitem__(key, /)Delete self[key].
__add__(value, /)Return self+value.
__mul__(value, /)Return self*value.
__rmul__(value, /)Return value*self.
__contains__(key, /)Return key in self.
__iadd__(value, /)Implement self+=value.
__imul__(value, /)Implement self*=value.
__reversed__()Return a reverse iterator over the list.
__sizeof__()Return the size of the list in memory, in bytes.
clear()Remove all items from list.
copy()Return a shallow copy of the list.
append(object, /)Append object to the end of the list.
insert(index, object, /)Insert object before index.
extend(iterable, /)Extend list by appending elements from the iterable.
pop([index])Remove and return item at index (default last).
remove(value, /)Remove first occurrence of value.
index(value[, start, stop])Return first index of value.
count(value, /)Return number of occurrences of value.
reverse()Reverse IN PLACE.
sort(*[, key, reverse])Sort the list in ascending order and return None.
__class_getitem__See PEP 585
Inherited from
Generic__class_getitem__See PEP 585
__init_subclass__(*args, **kwargs)This method is called when a class is subclassed.
Private Data Attributes:
Inherited from
Generic_is_protocol
- findAt(coordinates, printWarning=True)[source]#
This method returns the ConstrainedSketchVertex located at the given coordinates.
- Parameters:
coordinates (
tuple) – A sequence of Floats specifying the X- and Y-coordinates of the object to find.printWarning (
Union[AbaqusBoolean,bool], default:True) – A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:
A
ConstrainedSketchVertexobject.- Return type:
ConstrainedSketchVertex
Spot#
- class Spot(point)[source]#
Public Data Attributes:
Inherited from
ConstrainedSketchVertexcoordsA tuple of Floats specifying the*X*-, Y-, and Z-coordinates of the sketch vertex.
Public Methods:
__init__(point)This method creates a spot (construction point) located at the specified coordinates.
Inherited from
ConstrainedSketchVertexSpot(point)This method creates a spot (construction point) located at the specified coordinates.