It is the low-level component of a machinable area.
- See also:
Properties
- Property Shared() As
- Returns or sets the shared state of a ManufacturingMachinableGeometry object.
- Example:
- The following example returns in bState the shared state of
manufacturing machinable geometry firstMachGeom
and then sets it to TRUE:
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim bState As boolean Set bState = firstMachGeom.Shared bState = TRUE firstMachGeom.Shared = bState
Methods
- Sub AddPointedGeometry( iGeometry, iProduct, iShapes)
-
Adds a geometry to the pointed geometry list.
- Parameters:
-
- iGeometry
- The geometry to add dd>
- iProduct
- The product where the geometry to add is located dd>
- iShapes
- The list of shapes (body copied and pasted with links) where the geometry is to be added
- Example:
- The following example adds the geometry GeomToAdd of the product ProdOfGeomToAdd to
the pointed geometry list of the manufacturing machinable geometry firstMachGeom.
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim GeomToAdd As Shape Dim ProdOfGeomToAdd As Product Set GeomToAdd = ... Set ProdOfGeomToAdd = ... Dim ShapesList() As Variant Redim ShapesList(0) ' Create an empty list of shapes Call firstMachGeom.AddPointedGeometry( GeomToAdd, ProdOfGeomToAdd, ShapesList )
- Parameters:
-
- iGeometry
- The geometry to add dd>
- iProduct
- The product where the geometry to add is located dd>
- iShapes
- The list of shapes (body copied and pasted with links) where the geometry is to be added dd>
- iNotify
- A flag to request whether to send a notification to update the model
Legal values:0 No notification is sent and the model is not updated 1 A notification is sent and the model is updated
- Example:
- The following example adds the geometry GeomToAdd of the product ProdOfGeomToAdd to
the pointed geometry list of the manufacturing machinable geometry firstMachGeom.
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim GeomToAdd As Shape Dim ProdOfGeomToAdd As Product Set GeomToAdd = ... Set ProdOfGeomToAdd = ... Dim ShapesList() As Variant Redim ShapesList(0) ' Create an empty list of shapes Call firstMachGeom.AddPointedGeometryNotify( GeomToAdd, ProdOfGeomToAdd, ShapesList, 0 )
- Parameters:
-
- iGeometry
- The geometry to add dd>
- iProduct
- The product where the geometry to add is located dd>
- iShapes
- The list of shapes (body copied and pasted with links) where the geometry is to be added
- Example:
- The following example adds the geometry GeomToAdd of the product ProdOfGeomToAdd to
the pointed geometry list of the manufacturing machinable geometry firstMachGeom.
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim GeomToAdd As Shape Dim ProdOfGeomToAdd As Product Set GeomToAdd = ... Set ProdOfGeomToAdd = ... Dim ShapesList() As Variant Redim ShapesList(0) ' Create an empty list of shapes Call firstMachGeom.AddPointedGeometryWithNoDuplicatedCheck( GeomToAdd, ProdOfGeomToAdd, ShapesList )
- Parameters:
-
- iGeometry
- The geometry to add dd>
- iProduct
- The product where the geometry to add is located dd>
- iShapes
- The list of shapes (body copied and pasted with links) where the geometry is to be added dd>
- iNotify
- A flag to request whether to send a notification to update the model
Legal values:0 No notification is sent and the model is not updated 1 A notification is sent and the model is updated
- Example:
- The following example adds the geometry GeomToAdd of the product ProdOfGeomToAdd to
the pointed geometry list of the manufacturing machinable geometry firstMachGeom:
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim GeomToAdd As Shape Dim ProdOfGeomToAdd As Product Set GeomToAdd = ... Set ProdOfGeomToAdd = ... Dim ShapesList() As Variant Redim ShapesList(0) ' Create an empty list of shapes Call firstMachGeom.AddPointedGeometryWithNoDuplicatedCheckNotify( GeomToAdd, ProdOfGeomToAdd, ShapesList, 0 )
- Parameters:
-
- IndexOfPointedGeom
- The index of the pointed geometry among those associated with the ManufacturingMachinableGeometry object dd>
- oAnnotationsList
- The retrieved list Annotation objects.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the Annotation object list of the third pointed geometry under
the manufacturing machinable geometry firstMachGeom in AnnotationList:
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim AssociatedTPSCount As Long AssociatedTPSCount = firstMachGeom.GetAssociatedTPSCount (2) If (AssociatedTPSCount > 0) Then Dim I As Long Dim AnnotationList() As Variant Redim AnnotationList(AssociatedTPSCount-1) Call firstMachGeom.GetAssociatedTPS(2, AnnotationList) End If
- Parameters:
-
- IndexOfPointedGeom
- The index of the pointed geometry
Note: Check that the index you are passing in less than or equal to the pointed geometry count retrieved using the method. dd> - oAnnotationsListCount
- The number of Annotation objects
- Example:
- The following example retrieves the number of Annotation objects attached to the third geometry
under the manufacturing machinable geometry firstMachGeom in AssociatedTPSCount:
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim AssociatedTPSCount As Long AssociatedTPSCount = PointedGeometryListSize = firstMachGeom.GetAssociatedTPSCount( 3 )
Note: Currently valid only for AxialUDF and DesignHole features.
- Parameters:
-
- oX,oY,oZ
- The components of the direction dd>
- IndexOfPointedGeom
- The index of the pointed geometry
Note: Check that the index you are passing in less than or equal to the pointed geometry count retrieved using the method.
- Example:
- The following example retrieves the components of the direction of the third geometry
under the manufacturing machinable geometry firstMachGeom:
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim oX As Double Dim oY As Double Dim oZ As Double Call firstMachGeom.GetDirection( oX, oY, oZ, 3)
Note: Currently valid only for AxialUDF and DesignHole features.
- Parameters:
-
- oX,oY,oZ
- The coordinates of the origin dd>
- IndexOfPointedGeom
- The index of the pointed geometry
Note: Check that the index you are passing in less than or equal to the pointed geometry count retrieved using the method.
- Example:
- The following example retrieves the coordinates of the origin of the third geometry
under the manufacturing machinable geometry firstMachGeom:
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim oX As Double Dim oY As Double Dim oZ As Double Call firstMachGeom.GetOrigin( oX, oY, oZ, 3)
- Parameters:
-
- iIndex
- The index of the pointed geometry and product dd>
- oGeometry
- The retrieved geometry dd>
- oProduct
- The product of the retrieved geometry dd>
- oNbShapes
- The number of shapes of the retrieved geometry
- Example:
- The following example retrieves the pointed geometry lists of
the manufacturing machinable geometry firstMachGeom in PointedGeometryList
and in PointedProductsList.
The arrays must be previously initialized
using the
method.
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim PointedGeometryListSize As Long Set PointedGeometryListSize = firstMachGeom.PointedGeometryCount If (PointedGeometryListSize > 0) Then Dim I As Long For I = 0 To PointedGeometryListSize-1 Dim PointedGeometryList() As Variant Dim PointedProductsList() As Variant Dim NbShapes As Long Redim PointedGeometryList(PointedGeometryListSize-1) Redim PointedProductsList(PointedGeometryListSize-1) Call firstMachGeom.ListPointedGeometry(I, PointedGeometryList, PointedProductsList, NbShapes) End For End If
- Parameters:
-
- iIndex
- The index of the pointed geometry and product dd>
- oShapes
- The retrieved shape list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the pointed shape list of
the manufacturing machinable geometry firstMachGeom in PointedShapesList.
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim PointedGeometryListSize As Long Set PointedGeometryListSize = firstMachGeom.PointedGeometryCount If (PointedGeometryListSize > 0) Then Dim I As Long For I = 0 To PointedGeometryListSize-1 Dim PointedGeometryList() As Variant Dim PointedProductsList() As Variant Dim NbShapes As Long Redim PointedGeometryList(PointedGeometryListSize-1) Redim PointedProductsList(PointedGeometryListSize-1) Call firstMachGeom.ListPointedGeometry(I, PointedGeometryList, PointedProductsList, NbShapes) If (NbShapes > 0) Then Dim PointedShapesList() As Variant Redim PointedShapesList(NbShapes-1) Call firstMachGeom.ListShapesOfPointedGeometry(I, PointedShapesList) End If End For End If
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Dim PointedGeometryListSize As Long Set PointedGeometryListSize = firstMachGeom.PointedGeometryCount
- Parameters:
-
- iIndex
- The index of the geometry to remove
- Example:
- The following example removes the third geometry from the pointed geometry list
of the manufacturing machinable geometry firstMachGeom:
Dim firstMachGeom As ManufacturingMachinableGeometry Set firstMachGeom = ... Call firstMachGeom.RemovePointedGeometry( 3 )