pycatia.prismatic_machining_interfaces.manufacturing_prismatic_machining_area¶
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.prismatic_machining_interfaces.manufacturing_prismatic_machining_area.ManufacturingPrismaticMachiningArea(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectManufacturingInterfaces.ManufacturingFeatureManufacturingInterfaces.ManufacturingMachinableFeatureManufacturingInterfaces.ManufacturingMachinableAreaManufacturingPrismaticMachiningAreaManufacturingPrismaticMachiningArea defines a set of properties andmethods.- property bottom_type: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property BottomType() As CATBSTRReturns or sets the Hardness Mode on Bottom of a Manufacturing PrismaticMachining Area.Examples:The following example returns the hardness mode on bottomThisBottomType of the manufacturing prismatic machining areaCurrentPMADim ThisBottomType As CATBSTRThisBottomType = CurrentPMA.BottomTypeThe next example sets the hardness mode on bottom of the manufacturingprismatic machining area CurrentPMACurrentPMA.BottomType = “MfgHard”To be allowed to change BottomType into MfgSoft, Islands geometriesmust be removed first.Legal values: BottomType can beMfgHardMfgSoft
- Return type:
str
- property contours_count: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ContoursCount() As long (Read Only)Retreives the number of Contour of a Manufacturing Prismatic MachiningArea.Example:The following example returns the number of Contour NumberOfContour ofthe manufacturing prismatic machining area CurrentPMADim NumberOfContour As LongNumberOfContour = CurrentPMA.ContoursCount
- Return type:
int
- get_contour_side(i_contour_number: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetContourSide(long iContourNumber) As shortGets the side of one contour of a Manufacturing Prismatic MachiningArea.Parameters:iContourNumberThe geometry index inside the collection.Must be between 1 and ContoursCount (see Properties).Example: The following example gets the side of the contour numberiContourNumber of the manufacturing prismatic machining areaCurrentPMADim iContourNumber As LongiContourNumber = 3Dim oContourSide As shortoContourSide = CurrentPMA.GetContourSide(iContourNumber)
- Parameters:
i_contour_number (int) –
- Return type:
int
- get_geometries_aquisition_mode(i_geometry_type: str, i_geometry_number: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetGeometriesAquisitionMode(CATBSTR iGeometryType,long iGeometryNumber) As shortGets the aquisition mode of one geometry of a Manufacturing PrismaticMachining Area.Parameters:iGeometryTypeLegal values: iGeometryType can beContoursto get the aquisition mode of a guiding elementIslandsto get the aquisition mode of an island(not allowed if Type == “MfgContouringType” orif BottomType == “MfgSoft”) (see Properties).iGeometryNumberThe geometry index inside the collection.Must be 1 if Type == “MfgPocketType” (see Properties) andiGeometryType == “Contours”.Must be between 1 and IslandsCount + 1 (or ContoursCount + 1)(see Properties).Example: The following example gets the aquisition mode of the contournumber iGeometryNumber of the manufacturing prismatic machining areaCurrentPMADim iGeometryNumber As LongiGeometryNumber = 3Dim oMode As ShortoMode = CurrentPMA.GetGeometriesAquisitionMode(“Contours”,iGeometryNumber)Legal values: GetGeometriesAquisitionMode value can be0by Edges1by Belt of Faces2by Boundary of Faces (Islands only)5by Boundary of Faces (Contours only)
- Parameters:
i_geometry_type (str) –
i_geometry_number (int) –
- Return type:
int
- is_contour_closed(i_contour_number: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func IsContourClosed(long iContourNumber) As shortReturn the status of one contour of a Manufacturing Prismatic Machining Area : closed or open.Parameters:iContourNumberThe geometry index inside the collection.Must be between 1 and ContoursCount (see Properties).Example: The following example returns the status of the contour numberiContourNumber of the manufacturing prismatic machining areaCurrentPMADim iContourNumber As LongiContourNumber = 3Dim oIsClosed As shortoIsClosed = CurrentPMA.IsContourClosed(iContourNumber)Legal values: IsContourClosed value can be0 (means open contour)1 (means closed contour)
- Parameters:
i_contour_number (int) –
- Return type:
int
- property islands_count: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property IslandsCount() As long (Read Only)Retreives the number of Island of a Manufacturing Prismatic MachiningArea.Example:The following example returns the number of Island NumberOfIsland ofthe manufacturing prismatic machining area CurrentPMADim NumberOfIsland As LongNumberOfIsland = CurrentPMA.IslandsCount
- Return type:
int
- remove_all_geometry(i_geometry_type: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemoveAllGeometry(CATBSTR iGeometryType)Removes all the geometry of a specified type linked to a ManufacturingPrismatic Machining Area.Parameters:iGeometryTypeLegal values: iGeometryType can beRelimitingPlaneto remove the top planePartsto remove the bottomChecksto remove the check elementsContoursto remove the guiding elementsIslandsto remove the islandsExample: The following example removes the bottom of the manufacturingprismatic machining area CurrentPMACall CurrentPMA.RemoveAllGeometry(“Parts”)
- Parameters:
i_geometry_type (str) –
- Return type:
None
- set_closed_contour_side(i_contour_number: int, i_side: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetClosedContourSide(long iContourNumber,CATBSTR iSide)Sets the side of one closed contour of a Manufacturing Prismatic MachiningArea.Parameters:iContourNumberThe geometry index inside the collection.Must be between 1 and ContoursCount (see Properties).iSideLegal values: iSide can beInsideOutsideExample: The following example sets the side of the closed contournumber iContourNumber of the manufacturing prismatic machining areaCurrentPMADim iContourNumber As LongiContourNumber = 3Dim iContourSide As CATBSTRiContourSide = “Inside”Call CurrentPMA.SetClosedContourSide(iContourNumber,iContourSide)
- Parameters:
i_contour_number (int) –
i_side (str) –
- Return type:
None
- set_contour_side(i_contour_number: int, i_side: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetContourSide(long iContourNumber,short iSide)Sets the side of one contour of a Manufacturing Prismatic MachiningArea.Parameters:iContourNumberThe geometry index inside the collection.Must be between 1 and ContoursCount (see Properties).iSideLegal values: iSide can be12Example: The following example sets the side of the contour numberiContourNumber of the manufacturing prismatic machining areaCurrentPMADim iContourNumber As LongiContourNumber = 3Dim iContourSide As ShortiContourSide = 2Call CurrentPMA.SetContourSide(iContourNumber,iContourSide)
- Parameters:
i_contour_number (int) –
i_side (int) –
- Return type:
None
- set_geometries(i_geometry_type: str, i_mode: int, i_geometry_number: int, i_reference: AnyObject, i_product: AnyObject, i_position: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetGeometries(CATBSTR iGeometryType,short iMode,long iGeometryNumber,AnyObject iReference,AnyObject iProduct,short iPosition)Sets or adds geometry in a collection of a specified type to aManufacturing Prismatic Machining Area.Parameters:iGeometryTypeLegal values: iGeometryType can beContoursto set or to add a guiding elementIslandsto set or to add an island(not allowed if Type == “MfgContouringType” orif BottomType == “MfgSoft”) (see Properties).iModeLegal values: iMode can be0by EdgesiGeometryNumberThe geometry index inside the collection.Must be 1 if Type == “MfgPocketType” (see Properties) andiGeometryType == “Contours”.Must be between 1 and IslandsCount + 1 (or ContoursCount + 1)(see Properties).iReferenceThe geometry to be set.iProductThe product containing the geometry to be set.iPosition0Example: The following example sets 3 Islands, linked to 2 circles and3 lines, to the manufacturing prismatic machining areaCurrentPMADim iGeometryNumber As LongiGeometryNumber = 0…‘Get number of Island of CurrentPMA and add 1 to create a new island(Island number 1)iGeometryNumber = CurrentPMA.IslandsCount + 1Call 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 + 1Call 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 + 1Call CurrentPMA.SetGeometries(“Islands”,0,iGeometryNumber,Line5,PartMachined,0)‘Adding Line6 to Island number 3Call CurrentPMA.SetGeometries(“Islands”,0,iGeometryNumber,Line6,PartMachined,0)‘Adding Line7 to Island number 3Call CurrentPMA.SetGeometries(“Islands”,0,iGeometryNumber,Line7,PartMachined,0)
- set_geometry(i_geometry_type: str, i_reference: AnyObject, i_product: AnyObject, i_position: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetGeometry(CATBSTR iGeometryType,AnyObject iReference,AnyObject iProduct,short iPosition)Sets a geometry of a specified type to a Manufacturing Prismatic MachiningArea.Parameters:iGeometryTypeLegal values: iGeometryType can beRelimitingPlaneto set the top planePartsto set the bottomChecksto set a check elementiReferenceThe geometry to be set.iProductThe product containing the geometry to be set.iPosition0Example: The following example sets the top plane Plane2 to themanufacturing prismatic machining area CurrentPMACall CurrentPMA.SetGeometry(“RelimitingPlane”,Plane2,PartMachined,0)
- set_open_contour_side(i_contour_number: int, i_point: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetOpenContourSide(long iContourNumber,AnyObject iPoint)Sets the side of one open contour of a Manufacturing Prismatic MachiningArea.Parameters:iContourNumberThe geometry index inside the collection.Must be between 1 and ContoursCount (see Properties).iPointA point near one of both limits of the contour.From this limit to the other one, the side of the contour is onthe left.Example: The following example sets the side of the open contour numberiContourNumber of the manufacturing prismatic machining areaCurrentPMADim iContourNumber As LongiContourNumber = 3Dim Point1 As CATIABase…Set Point1 = hybridShapes1.Item(“Point.1”)…CallCurrentPMA.SetOpenContourSide(iContourNumber,Point1)
- Parameters:
i_contour_number (int) –
i_point (AnyObject) –
- Return type:
None
- property top_type: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TopType() As CATBSTRReturns or sets the Hardness Mode on top of a Manufacturing PrismaticMachining Area.Examples:The following example returns the hardness mode on top ThisTopType ofthe manufacturing prismatic machining area CurrentPMADim ThisTopType As CATBSTRThisTopType = CurrentPMA.TopTypeThe next example sets the hardness mode on top of the manufacturingprismatic machining area CurrentPMACurrentPMA.TopType = “MfgHard”Legal values: TopType can beMfgHardMfgSoft
- Return type:
str
- property type: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Type() As CATBSTRReturns or sets the Type of a Manufacturing Prismatic MachiningArea.Examples:The following example returns the feature type ThisType of themanufacturing prismatic machining area CurrentPMADim ThisType As CATBSTRThisType = CurrentPMA.TypeThe next example sets the feature type of the manufacturing prismaticmachining area CurrentPMACurrentPMA.Type = “MfgPocketType”To be allowed to change Type into MfgPocketType or intoMfgContouringType, Contours and Islands geometries must be removedfirst.Legal values: Type can beMfgPocketTypeMfgContouringType
- Return type:
str