pycatia.manufacturing_interfaces.machining_process¶
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.machining_process.MachiningProcess(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityManufacturingInterfaces.ManufacturingActivityMachiningProcessMachiningProcess defines a set of properties and methods to apply a MachiningProcess to a geometrical feature (design or manufacturing).It refers to a Machining Process which has been defined in the MachiningProcess view of a CATProcess file In the VB macro, be sure that the activedocument is the target document where are located the insertion level and wherethe instantiated activities will be created- get_activities() ManufacturingActivities ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetActivities() As MfgActivitiesThis method gets the Manufacturing Activities referenced by the MachiningProcess.Parameters:oMfgActivitiesThe Manufacturing Activities list
- Return type:
MfgActivities
- insert_activity(i_activity_type: str, i_referenced_activity: ManufacturingActivity) ManufacturingActivity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func InsertActivity(CATBSTR iActivityType,ManufacturingActivity iReferencedActivity) AsManufacturingActivityThis method creates and inserts a Manufacturing Activity in the MachiningProcess.Parameters:iActivityTypeThe activity to be created typeiReferencedActivityThe insertion level in the machining process: the machining processitself to insert at the beginning of the Machining ProcessoManufacturingActivityThe inserted activityExample:The following example executes the InsertActivity method to adda drilling operation to the mpReferenceMachiningProcess…Dim mpReference As MachiningProcessSet mpReference = ……Dim iActivityType As CATBSTRSet iActivityType = DrillingDim iReferencedActivity AsCATIAManufacturingActivitySet iReferencedActivity = MachiningProcessDim oManufacturingActivity AsCATIAManufacturingActivitympReference.InsertActivity(iActivityType,iReferencedActivity,oManufacturingActivity)
- Parameters:
i_activity_type (str) –
i_referenced_activity (ManufacturingActivity) –
- Return type:
- property insertion_level: ManufacturingActivity¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property InsertionLevel() As ManufacturingActivityThis property defines the insertion level in the program receiving theresulting operations. It can be set to either the Manufacturing Program or onethe Manufacturing Activities of the Manufacturing Program.Example:The following example sets the InsertionLevel property to the firstManufacturing Program as ManufacturingActivity Activity for the mpReferenceMachiningProcess which will be used for the Machining Processapplication:…Dim programReference As ManufacturingActivitySet programReference = …Dim mpReference As MachiningProcessSet mpReference = …mpReference.InsertionLevel = programReference
- Return type:
- instantiate(i_feature: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Instantiate(AnyObject iFeature)This method enables to apply a Machining Process to an any feature. Thisone has to be available for all Manufacturing Activities inside the MachiningProcess. At the end of the Machining Process application, the InsertionLevelproperty is set to the last created Manufacturing Activity in the ManufacturingprogramExample:The following example executes the Instantiate method to apply thempReference MachiningProcess to a DesignFeature selectedfeature…Dim mpReference As MachiningProcessSet mpReference = ……Dim DesignFeature As AnyObjectSet DesignFeature = ……mpReference.Instantiate(DesignFeature)
- Parameters:
i_feature (AnyObject) –
- Return type:
None
- instantiate_in_product_context(i_feature: AnyObject, i_product: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub InstantiateInProductContext(AnyObject iFeature,Product iProduct)This method enables to apply a Machining Process to a given feature bytaking into account the product from which it belongs to. This one has to beavailable for all Manufacturing Activities inside the Machining Process. At theend of the Machining Process application, the InsertionLevel property is set tothe last created Manufacturing Activity in the ManufacturingprogramParameters:iFeatureThe feature on which the Machining Process is instantiatediProductThe product containing the feature.Example:The following example executes the Instantiate method to applythe mpReference MachiningProcess to a iDesignFeature selectedfeature…Dim mpReference As MachiningProcessSet mpReference = ……Dim iDesignFeature As AnyObjectSet iDesignFeature = ……Dim iProduct As ProductSet iProduct = ……mpReference.Instantiate(iDesignFeature,iProduct)