pycatia.manufacturing_interfaces.manufacturing_machinable_geometry¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.manufacturing_interfaces.manufacturing_machinable_geometry.ManufacturingMachinableGeometry(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectManufacturingInterfaces.ManufacturingFeatureManufacturingInterfaces.ManufacturingMachinableFeatureManufacturingMachinableGeometryRepresents the machinable geometry object.It is the low-level component of a machinable area.See also:ManufacturingMachinableArea- add_pointed_geometry(i_geometry: AnyObject, i_product: Product, i_shapes: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddPointedGeometry(AnyObject iGeometry,Product iProduct,CATSafeArrayVariant iShapes)Adds a geometry to the pointed geometry list.Parameters:iGeometryThe geometry to addiProductThe product where the geometry to add is locatediShapesThe list of shapes (body copied and pasted with links) where thegeometry is to be addedExample:The following example adds the geometry GeomToAdd of the productProdOfGeomToAdd to the pointed geometry list of the manufacturing machinablegeometry firstMachGeom.Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim GeomToAdd As ShapeDim ProdOfGeomToAdd As ProductSet GeomToAdd = …Set ProdOfGeomToAdd = …Dim ShapesList() As VariantRedim ShapesList(0) ‘ Create an empty list of shapesCall firstMachGeom.AddPointedGeometry( GeomToAdd, ProdOfGeomToAdd,ShapesList )
- add_pointed_geometry_notify(i_geometry: AnyObject, i_product: Product, i_shapes: tuple, i_notify: int) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddPointedGeometryNotify(AnyObject iGeometry,Product iProduct,CATSafeArrayVariant iShapes,short iNotify)Adds a geometry to the pointed geometry list (managenotification).Parameters:iGeometryThe geometry to addiProductThe product where the geometry to add is locatediShapesThe list of shapes (body copied and pasted with links) where thegeometry is to be addediNotifyA flag to request whether to send a notification to update themodelLegal values:0 No notification is sent and the model is notupdated1 A notification is sent and the model is updatedExample:The following example adds the geometry GeomToAdd of the productProdOfGeomToAdd to the pointed geometry list of the manufacturing machinablegeometry firstMachGeom.Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim GeomToAdd As ShapeDim ProdOfGeomToAdd As ProductSet GeomToAdd = …Set ProdOfGeomToAdd = …Dim ShapesList() As VariantRedim ShapesList(0) ‘ Create an empty list of shapesCall firstMachGeom.AddPointedGeometryNotify( GeomToAdd,ProdOfGeomToAdd, ShapesList, 0 )
- add_pointed_geometry_with_no_duplicated_check(i_geometry: AnyObject, i_product: Product, i_shapes: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddPointedGeometryWithNoDuplicatedCheck(AnyObjectiGeometry,Product iProduct,CATSafeArrayVariant iShapes)Adds a geometry to the pointed geometry list with no check on alreadyreferenced geometry.Parameters:iGeometryThe geometry to addiProductThe product where the geometry to add is locatediShapesThe list of shapes (body copied and pasted with links) where thegeometry is to be addedExample:The following example adds the geometry GeomToAdd of the productProdOfGeomToAdd to the pointed geometry list of the manufacturing machinablegeometry firstMachGeom.Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim GeomToAdd As ShapeDim ProdOfGeomToAdd As ProductSet GeomToAdd = …Set ProdOfGeomToAdd = …Dim ShapesList() As VariantRedim ShapesList(0) ‘ Create an empty list of shapesCall firstMachGeom.AddPointedGeometryWithNoDuplicatedCheck( GeomToAdd,ProdOfGeomToAdd, ShapesList )
- add_pointed_geometry_with_no_duplicated_check_notify(i_geometry: AnyObject, i_product: Product, i_shapes: tuple, i_notify: int) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddPointedGeometryWithNoDuplicatedCheckNotify(AnyObjectiGeometry,Product iProduct,CATSafeArrayVariant iShapes,short iNotify)Adds a geometry to the pointed geometry list with no check on an alreadyreferenced geometry.Parameters:iGeometryThe geometry to addiProductThe product where the geometry to add is locatediShapesThe list of shapes (body copied and pasted with links) where thegeometry is to be addediNotifyA flag to request whether to send a notification to update themodelLegal values:0 No notification is sent and the model is notupdated1 A notification is sent and the model is updatedExample:The following example adds the geometry GeomToAdd of the productProdOfGeomToAdd to the pointed geometry list of the manufacturing machinablegeometry firstMachGeom:Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim GeomToAdd As ShapeDim ProdOfGeomToAdd As ProductSet GeomToAdd = …Set ProdOfGeomToAdd = …Dim ShapesList() As VariantRedim ShapesList(0) ‘ Create an empty list of shapesCall firstMachGeom.AddPointedGeometryWithNoDuplicatedCheckNotify(GeomToAdd, ProdOfGeomToAdd, ShapesList, 0 )
- get_associated_tps(index_of_pointed_geom: int, o_annotations_list: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAssociatedTPS(long IndexOfPointedGeom,CATSafeArrayVariant oAnnotationsList)Retrieves the Annotation object lists associated with aManufacturingMachinableGeometry object.Parameters:IndexOfPointedGeomThe index of the pointed geometry among those associated with theManufacturingMachinableGeometry objectoAnnotationsListThe retrieved list Annotation objects.The array must be previously initialized using theGetAssociatedTPSCount method.Example:The following example retrieves the Annotation object list of the thirdpointed geometry under the manufacturing machinable geometry firstMachGeom inAnnotationList:Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim AssociatedTPSCount As LongAssociatedTPSCount = firstMachGeom.GetAssociatedTPSCount (2)If (AssociatedTPSCount > 0) ThenDim I As LongDim AnnotationList() As VariantRedim AnnotationList(AssociatedTPSCount-1)Call firstMachGeom.GetAssociatedTPS(2, AnnotationList)End If
- Parameters:
index_of_pointed_geom (int) –
o_annotations_list (tuple) –
- Return type:
Variant
- get_associated_tps_count(index_of_pointed_geom: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetAssociatedTPSCount(long IndexOfPointedGeom) AslongReturns the number of Annotation objects attached to a pointed geometryunder a ManufacturingMachinableGeometry object.Parameters:IndexOfPointedGeomThe index of the pointed geometryNote: Check that the index you are passing in less than or equal tothe pointed geometry count retrieved using thePointedGeometryCount method.oAnnotationsListCountThe number of Annotation objectsExample:The following example retrieves the number of Annotation objects attachedto the third geometry under the manufacturing machinable geometry firstMachGeomin AssociatedTPSCount:Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim AssociatedTPSCount As LongAssociatedTPSCount = PointedGeometryListSize = firstMachGeom.GetAssociatedTPSCount( 3 )
- Parameters:
index_of_pointed_geom (int) –
- Return type:
int
- get_direction(o_x: float, o_y: float, o_z: float, index_of_pointed_geom: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetDirection(double oX,double oY,double oZ,long IndexOfPointedGeom)Retrieves the direction of a pointed geometry under aManufacturingMachinableGeometry object.Note: Currently valid only for AxialUDF and DesignHolefeatures.Parameters:oX,oY,oZThe components of the directionIndexOfPointedGeomThe index of the pointed geometryNote: Check that the index you are passing in less than or equal tothe pointed geometry count retrieved using thePointedGeometryCount method.Example:The following example retrieves the components of the direction of thethird geometry under the manufacturing machinable geometryfirstMachGeom:Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim oX As DoubleDim oY As DoubleDim oZ As DoubleCall firstMachGeom.GetDirection( oX, oY, oZ, 3)
- Parameters:
o_x (float) –
o_y (float) –
o_z (float) –
index_of_pointed_geom (int) –
- Return type:
None
- get_origin() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetOrigin(double oX,double oY,double oZ,long IndexOfPointedGeom)Retrieves the origin of a pointed geometry under aManufacturingMachinableGeometry object.Note: Currently valid only for AxialUDF and DesignHolefeatures.Parameters:oX,oY,oZThe coordinates of the originIndexOfPointedGeomThe index of the pointed geometryNote: Check that the index you are passing in less than or equal tothe pointed geometry count retrieved using thePointedGeometryCount method.Example:The following example retrieves the coordinates of the origin of the thirdgeometry under the manufacturing machinable geometryfirstMachGeom:Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim oX As DoubleDim oY As DoubleDim oZ As DoubleCall firstMachGeom.GetOrigin( oX, oY, oZ, 3)
- Return type:
tuple
- list_pointed_geometry(i_index: int, o_geometry: AnyObject, o_product: Product, o_nb_shapes: int) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListPointedGeometry(long iIndex,AnyObject oGeometry,Product oProduct,long oNbShapes)Retrieves a pointed geometry and its product.Parameters:iIndexThe index of the pointed geometry and productoGeometryThe retrieved geometryoProductThe product of the retrieved geometryoNbShapesThe number of shapes of the retrieved geometryExample:The following example retrieves the pointed geometry lists of themanufacturing machinable geometry firstMachGeom in PointedGeometryList and inPointedProductsList. The arrays must be previously initialized using thePointedGeometryCount method.Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim PointedGeometryListSize As LongSet PointedGeometryListSize = firstMachGeom.PointedGeometryCountIf (PointedGeometryListSize > 0) ThenDim I As LongFor I = 0 To PointedGeometryListSize-1Dim PointedGeometryList() As VariantDim PointedProductsList() As VariantDim NbShapes As LongRedim PointedGeometryList(PointedGeometryListSize-1)Redim PointedProductsList(PointedGeometryListSize-1)Call firstMachGeom.ListPointedGeometry(I, PointedGeometryList,PointedProductsList, NbShapes)End ForEnd If
- list_shapes_of_pointed_geometry(i_index: int, o_shapes: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListShapesOfPointedGeometry(long iIndex,CATSafeArrayVariant oShapes)Retrieves the pointed shape list.Parameters:iIndexThe index of the pointed geometry and productoShapesThe retrieved shape list.The array must be previously initialized using theListPointedGeometry method.Example:The following example retrieves the pointed shape list of the manufacturingmachinable geometry firstMachGeom in PointedShapesList.Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim PointedGeometryListSize As LongSet PointedGeometryListSize = firstMachGeom.PointedGeometryCountIf (PointedGeometryListSize > 0) ThenDim I As LongFor I = 0 To PointedGeometryListSize-1Dim PointedGeometryList() As VariantDim PointedProductsList() As VariantDim NbShapes As LongRedim PointedGeometryList(PointedGeometryListSize-1)Redim PointedProductsList(PointedGeometryListSize-1)Call firstMachGeom.ListPointedGeometry(I, PointedGeometryList,PointedProductsList, NbShapes)If (NbShapes > 0) ThenDim PointedShapesList() As VariantRedim PointedShapesList(NbShapes-1)Call firstMachGeom.ListShapesOfPointedGeometry(I,PointedShapesList)End IfEnd ForEnd If
- Parameters:
i_index (int) –
o_shapes (tuple) –
- Return type:
Variant
- pointed_geometry_count() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func PointedGeometryCount() As longReturns the pointed geometry list count.Example:The following example retrieves the pointed geometry list count of themanufacturing machinable geometry firstMachGeom inPointedGeometryListSize.Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim PointedGeometryListSize As LongSet PointedGeometryListSize = firstMachGeom.PointedGeometryCount
- Return type:
int
- remove_pointed_geometry(i_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemovePointedGeometry(long iIndex)Removes a geometry from the pointed geometry list.Parameters:iIndexThe index of the geometry to removeExample:The following example removes the third geometry from the pointedgeometry list of the manufacturing machinable geometryfirstMachGeom:Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Call firstMachGeom.RemovePointedGeometry( 3 )
- Parameters:
i_index (int) –
- Return type:
None
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Shared() As booleanReturns or sets the shared state of a ManufacturingMachinableGeometryobject.Example:The following example returns in bState the shared state of manufacturingmachinable geometry firstMachGeom and then sets it toTRUE:Dim firstMachGeom As ManufacturingMachinableGeometrySet firstMachGeom = …Dim bState As booleanSet bState = firstMachGeom.SharedbState = TRUEfirstMachGeom.Shared = bState
- Return type:
bool