Properties
- Property BottomType() As
-
Returns or sets the Hardness Mode on Bottom of a Manufacturing Prismatic Machining Area.
- Examples:
- The following example returns the hardness mode on bottom ThisBottomType of the manufacturing prismatic machining area CurrentPMA
Dim ThisBottomType As CATBSTR ThisBottomType = CurrentPMA.BottomType
- The next example sets the hardness mode on bottom of the manufacturing prismatic machining area CurrentPMA
CurrentPMA.BottomType = "MfgHard"
To be allowed to change BottomType into MfgSoft, Islands geometries must be removed first. - The next example sets the hardness mode on bottom of the manufacturing prismatic machining area CurrentPMA
- Legal values: BottomType can be
- MfgHard
- MfgSoft
- Property ContoursCount() As (Read Only)
-
Retreives the number of Contour of a Manufacturing Prismatic Machining Area.
- Example:
- The following example returns the number of Contour NumberOfContour of the manufacturing prismatic machining area CurrentPMA
Dim NumberOfContour As Long NumberOfContour = CurrentPMA.ContoursCount
- Property IslandsCount() As (Read Only)
-
Retreives the number of Island of a Manufacturing Prismatic Machining Area.
- Example:
- The following example returns the number of Island NumberOfIsland of the manufacturing prismatic machining area CurrentPMA
Dim NumberOfIsland As Long NumberOfIsland = CurrentPMA.IslandsCount
- Property TopType() As
-
Returns or sets the Hardness Mode on top of a Manufacturing Prismatic Machining Area.
- Examples:
- The following example returns the hardness mode on top ThisTopType of the manufacturing prismatic machining area CurrentPMA
Dim ThisTopType As CATBSTR ThisTopType = CurrentPMA.TopType
- The next example sets the hardness mode on top of the manufacturing prismatic machining area CurrentPMA
CurrentPMA.TopType = "MfgHard"
- The next example sets the hardness mode on top of the manufacturing prismatic machining area CurrentPMA
- Legal values: TopType can be
- MfgHard
- MfgSoft
- Property Type() As
-
Returns or sets the Type of a Manufacturing Prismatic Machining Area.
- Examples:
- The following example returns the feature type ThisType of the manufacturing prismatic machining area CurrentPMA
Dim ThisType As CATBSTR ThisType = CurrentPMA.Type
- The next example sets the feature type of the manufacturing prismatic machining area CurrentPMA
CurrentPMA.Type = "MfgPocketType"
To be allowed to change Type into MfgPocketType or into MfgContouringType, Contours and Islands geometries must be removed first. - The next example sets the feature type of the manufacturing prismatic machining area CurrentPMA
- Legal values: Type can be
- MfgPocketType
- MfgContouringType
Methods
- Func GetContourSide( iContourNumber) As
-
Gets the side of one contour of a Manufacturing Prismatic Machining Area.
- Parameters:
-
- iContourNumber
- The geometry index inside the collection.
- Must be between 1 and ContoursCount (see Properties).
- Example:
The following example gets the side of the contour number iContourNumber of the manufacturing prismatic machining area CurrentPMA
Dim iContourNumber As Long iContourNumber = 3 Dim oContourSide As short oContourSide = CurrentPMA.GetContourSide(iContourNumber)
- Parameters:
-
- iGeometryType
- Legal values: iGeometryType can be
- Contours
- to get the aquisition mode of a guiding element
- Islands
- to get the aquisition mode of an island
(not allowed if Type == "MfgContouringType" or
if BottomType == "MfgSoft") (see Properties).
- iGeometryNumber
- The geometry index inside the collection.
- Must be 1 if Type == "MfgPocketType" (see Properties) and iGeometryType == "Contours".
- Must be between 1 and IslandsCount + 1 (or ContoursCount + 1) (see Properties).
- Example:
The following example gets the aquisition mode of the contour number iGeometryNumber of the manufacturing prismatic machining area CurrentPMA
Dim iGeometryNumber As Long iGeometryNumber = 3 Dim oMode As Short oMode = CurrentPMA.GetGeometriesAquisitionMode("Contours",iGeometryNumber)- Legal values: GetGeometriesAquisitionMode value can be
- 0
- by Edges
- 1
- by Belt of Faces
- 2
- by Boundary of Faces (Islands only)
- 5
- by Boundary of Faces (Contours only)
- Parameters:
-
- iContourNumber
- The geometry index inside the collection.
- Must be between 1 and ContoursCount (see Properties).
- Example:
The following example returns the status of the contour number iContourNumber of the manufacturing prismatic machining area CurrentPMA
Dim iContourNumber As Long iContourNumber = 3 Dim oIsClosed As short oIsClosed = CurrentPMA.IsContourClosed(iContourNumber)
- Legal values: IsContourClosed value can be
- 0 (means open contour)
- 1 (means closed contour)
- Parameters:
-
- iGeometryType
- Legal values: iGeometryType can be
- RelimitingPlane
- to remove the top plane
- Parts
- to remove the bottom
- Checks
- to remove the check elements
- Contours
- to remove the guiding elements
- Islands
- to remove the islands
- Example:
The following example removes the bottom of the manufacturing prismatic machining area CurrentPMA
Call CurrentPMA.RemoveAllGeometry("Parts")
- Parameters:
-
- iContourNumber
- The geometry index inside the collection.
- Must be between 1 and ContoursCount (see Properties).
- iSide
- Legal values: iSide can be
- Inside
- Outside
- Inside
- Example:
The following example sets the side of the closed contour number iContourNumber of the manufacturing prismatic machining area CurrentPMA
Dim iContourNumber As Long iContourNumber = 3 Dim iContourSide As CATBSTR iContourSide = "Inside" Call CurrentPMA.SetClosedContourSide(iContourNumber,iContourSide)
- Parameters:
-
- iContourNumber
- The geometry index inside the collection.
- Must be between 1 and ContoursCount (see Properties).
- iSide
- Legal values: iSide can be
- 1
- 2
- 1
- Example:
The following example sets the side of the contour number iContourNumber of the manufacturing prismatic machining area CurrentPMA
Dim iContourNumber As Long iContourNumber = 3 Dim iContourSide As Short iContourSide = 2 Call CurrentPMA.SetContourSide(iContourNumber,iContourSide)
- Parameters:
-
- iGeometryType
- Legal values: iGeometryType can be
- Contours
- to set or to add a guiding element
- Islands
- to set or to add an island
(not allowed if Type == "MfgContouringType" or
if BottomType == "MfgSoft") (see Properties).
- iMode
- Legal values: iMode can be
- 0
- by Edges
- iGeometryNumber
- The geometry index inside the collection.
- Must be 1 if Type == "MfgPocketType" (see Properties) and iGeometryType == "Contours".
- Must be between 1 and IslandsCount + 1 (or ContoursCount + 1) (see Properties).
- iReference
- The geometry to be set. dd>
- iProduct
- The product containing the geometry to be set. dd>
- iPosition
- 0
- Example:
The following example sets 3 Islands, linked to 2 circles and 3 lines, to the manufacturing prismatic machining area CurrentPMA
Dim iGeometryNumber As Long iGeometryNumber = 0 ... 'Get number of Island of CurrentPMA and add 1 to create a new island (Island number 1) iGeometryNumber = CurrentPMA.IslandsCount + 1 Call CurrentPMA.SetGeometries("Islands",0,iGeometryNumber,Circle1,PartMachined,0) 'Get number of Island of CurrentPMA and add 1 to create a new island (Island number 2) iGeometryNumber = CurrentPMA.IslandsCount + 1 Call CurrentPMA.SetGeometries("Islands",0,iGeometryNumber,Circle2,PartMachined,0) 'Get number of Island of CurrentPMA and add 1 to create a new island (Island number 3) iGeometryNumber = CurrentPMA.IslandsCount + 1 Call CurrentPMA.SetGeometries("Islands",0,iGeometryNumber,Line5,PartMachined,0) 'Adding Line6 to Island number 3 Call CurrentPMA.SetGeometries("Islands",0,iGeometryNumber,Line6,PartMachined,0) 'Adding Line7 to Island number 3 Call CurrentPMA.SetGeometries("Islands",0,iGeometryNumber,Line7,PartMachined,0)
- Parameters:
-
- iGeometryType
- Legal values: iGeometryType can be
- RelimitingPlane
- to set the top plane
- Parts
- to set the bottom
- Checks
- to set a check element
- iReference
- The geometry to be set. dd>
- iProduct
- The product containing the geometry to be set. dd>
- iPosition
- 0
- Example:
The following example sets the top plane Plane2 to the manufacturing prismatic machining area CurrentPMA
Call CurrentPMA.SetGeometry("RelimitingPlane",Plane2,PartMachined,0)
- Parameters:
-
- iContourNumber
- The geometry index inside the collection.
- Must be between 1 and ContoursCount (see Properties).
- iPoint
- A point near one of both limits of the contour.
- From this limit to the other one, the side of the contour is on the left.
- Example:
The following example sets the side of the open contour number iContourNumber of the manufacturing prismatic machining area CurrentPMA
Dim iContourNumber As Long iContourNumber = 3 Dim Point1 As CATIABase ... Set Point1 = hybridShapes1.Item("Point.1") ... Call CurrentPMA.SetOpenContourSide(iContourNumber,Point1)