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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
DMAPSInterfaces.Activity
ManufacturingInterfaces.ManufacturingActivity
MachiningProcess

MachiningProcess defines a set of properties and methods to apply a Machining
Process to a geometrical feature (design or manufacturing).
It refers to a Machining Process which has been defined in the Machining
Process view of a CATProcess file In the VB macro, be sure that the active
document is the target document where are located the insertion level and where
the 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 MfgActivities

This method gets the Manufacturing Activities referenced by the Machining
Process.

Parameters:

oMfgActivities
The 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) As
ManufacturingActivity

This method creates and inserts a Manufacturing Activity in the Machining
Process.

Parameters:

iActivityType
The activity to be created type
iReferencedActivity
The insertion level in the machining process: the machining process
itself to insert at the beginning of the Machining Process

oManufacturingActivity
The inserted activity

Example:
The following example executes the InsertActivity method to add
a drilling operation to the mpReference
MachiningProcess

Dim mpReference As MachiningProcess
Set mpReference = …
Dim iActivityType As CATBSTR
Set iActivityType = Drilling
Dim iReferencedActivity As
CATIAManufacturingActivity
Set iReferencedActivity = MachiningProcess
Dim oManufacturingActivity As
CATIAManufacturingActivity
mpReference.InsertActivity(iActivityType,iReferencedActivity,oManufacturingActivity)
Parameters:
Return type:

ManufacturingActivity

property insertion_level: ManufacturingActivity

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property InsertionLevel() As ManufacturingActivity

This property defines the insertion level in the program receiving the
resulting operations. It can be set to either the Manufacturing Program or one
the Manufacturing Activities of the Manufacturing Program.

Example:
The following example sets the InsertionLevel property to the first
Manufacturing Program as ManufacturingActivity Activity for the mpReference
MachiningProcess which will be used for the Machining Process
application:

Dim programReference As ManufacturingActivity
Set programReference = …
Dim mpReference As MachiningProcess
Set mpReference = …
mpReference.InsertionLevel = programReference
Return type:

ManufacturingActivity

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. This
one has to be available for all Manufacturing Activities inside the Machining
Process. At the end of the Machining Process application, the InsertionLevel
property is set to the last created Manufacturing Activity in the Manufacturing
program

Example:
The following example executes the Instantiate method to apply the
mpReference MachiningProcess to a DesignFeature selected
feature

Dim mpReference As MachiningProcess
Set mpReference = …
Dim DesignFeature As AnyObject
Set 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 by
taking into account the product from which it belongs to. This one has to be
available for all Manufacturing Activities inside the Machining Process. At the
end of the Machining Process application, the InsertionLevel property is set to
the last created Manufacturing Activity in the Manufacturing
program

Parameters:

iFeature
The feature on which the Machining Process is instantiated

iProduct
The product containing the feature.

Example:
The following example executes the Instantiate method to apply
the mpReference MachiningProcess to a iDesignFeature selected
feature

Dim mpReference As MachiningProcess
Set mpReference = …
Dim iDesignFeature As AnyObject
Set iDesignFeature = …
Dim iProduct As Product
Set iProduct = …
mpReference.Instantiate(iDesignFeature,iProduct)
Parameters:
Return type:

None