pycatia.manufacturing_interfaces.manufacturing_program¶
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.manufacturing_program.ManufacturingProgram(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityManufacturingInterfaces.ManufacturingActivityManufacturingProgramA ManufacturingProgram for a Manufacturing Document.- property activities: ManufacturingActivities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Activities() As MfgActivities (Read Only)Give the List of Activities linked to a ManufacturingProgram.Example:The following example returns the list of Activities ActivitiesListlinked to the manufacturing Program CurrentProgramSet ActivitiesList = CurrentProgram.Activities
- Return type:
MfgActivities
- add_goto_point(i_point_name: str) ManufacturingActivity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddGotoPoint(CATBSTR iPointName) AsManufacturingActivityAdd a Goto Point Operation to a Manufacturing Program.Example:The following example create, inserts and sequences in ProgramfirstProgram a PTP point instruction GOTO1 to the Point wich aliasisMyPointSet GOTO1 = firstProgram.AddGotoPoint(MyPoint)
- Parameters:
i_point_name (str) –
- Return type:
- add_goto_point_from_coordinates(i_x: float, i_y: float, i_z: float) ManufacturingActivity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddGotoPointfromCoordinates(double iX,double iY,double iZ) As ManufacturingActivityAdd a Goto Point Operation to a Manufacturing Program.The coordinates you give as input for this method have to be expressedintothe ‘Absolute Axis System’ not in the ‘Machining Axis System’ of the PartOperation.Example:The following example create, inserts and sequences in ProgramfirstProgram a PTP point instruction GOTO1 to the Point wich coordinatesareX,Y,ZSet GOTO1 = firstProgram.AddGotoPointfromCoordinates(X,Y,Z)
- Parameters:
i_x (float) –
i_y (float) –
i_z (float) –
- Return type:
- add_pp_instruction(i_pp_instruction: str) ManufacturingActivity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddPPInstruction(CATBSTR iPPInstruction) AsManufacturingActivityAdd a PP Instruction to a Manufacturing Program.Example:The following example create, inserts and sequences in ProgramfirstProgram a PP Instruction PPWORD1 with textPPWORDSet PPWORD1 = firstProgram.AddPPInstruction(PPWORD)
- Parameters:
i_pp_instruction (str) –
- Return type:
- add_rotabl(i_rotabl: str, i_sens: str, ival: float) ManufacturingActivity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddRotabl(CATBSTR iRotabl,CATBSTR iSens,double ival) As ManufacturingActivityAdd a Table Head Rotation instruction to a ManufacturingProgram.Example:The following example create, inserts and sequences in ProgramfirstProgram a Rotabl ROTABL1 with argumentMODE andangleANGLE1Set ROTABL1 = firstProgram.AddRotabl(MODE,ANGLE1)
- Parameters:
i_rotabl (str) –
i_sens (str) –
ival (float) –
- Return type:
- add_tool_change(i_tool_name: str, i_tool_type: str, i_tool_catalog: str, i_num_syntaxe: int) ManufacturingActivity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddToolChange(CATBSTR iToolName,CATBSTR iToolType,CATBSTR iToolCatalog,short iNumSyntaxe) As ManufacturingActivityAdd a Tool Change Operation to a Manufacturing Program.Example:The following example create, inserts and sequences in firstProgram aTool Change Instruction with specified toolMyTool of specified type ToolTypeinspecified catalogToolCatalogSet ToolChange1 = firstProgram.AddToolChange(MyTool,ToolType,ToolCatalog,Num)
- Parameters:
i_tool_name (str) –
i_tool_type (str) –
i_tool_catalog (str) –
i_num_syntaxe (int) –
- Return type:
- add_tool_change_multiple_feeds(i_tool_name: str, i_tool_type: str, i_tool_catalog: str, i_num_fs_data: int, i_num_syntax: int) ManufacturingActivity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddToolChangeMultipleFeeds(CATBSTR iToolName,CATBSTR iToolType,CATBSTR iToolCatalog,short iNumFSData,short iNumSyntaxe) As ManufacturingActivityAdd a Tool Change Operation to a Manufacturing Program.Example:The following example create, inserts and sequences in firstProgram aTool Change Instruction with specified toolMyTool of specified type ToolTypeinspecified catalogToolCatalogSet ToolChange1 = firstProgram.AddToolChangeMultipleFeeds(MyTool,ToolType,ToolCatalog,NumFSData,Num)
- Parameters:
i_tool_name (str) –
i_tool_type (str) –
i_tool_catalog (str) –
i_num_fs_data (int) –
i_num_syntax (int) –
- Return type:
- append_operation(type: str, auto_sequence: int) ManufacturingOperation ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AppendOperation(CATBSTR type,short AutoSequence) As ManufacturingOperationCreate and Insert a Manufacturing Operation of a specified type to aManufacturing Program.if AutoSequence is set to 1, the new operation will be sequenced in theProgram.Example:The following example creates, inserts and sequences in firstProgram the manufacturing operation ManufacturingOperation of type : typeSet ManufacturingOperation = firstProgram.AppendOperation(Type,1)
- Parameters:
type (str) –
auto_sequence (int) –
- Return type:
- associate_output_code(i_file_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AssociateOutputCode(CATBSTR iFileName)Method is used for associate APT file to V4 program iFileName = path for APT file…. Call on V4 ManufacturingProgram
- Parameters:
i_file_name (str) –
- Return type:
None
- property comment: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Comment() As CATBSTRReturn the Default Comment of a Manufacturing Program.Example:The following example return the comment ProgramComment of to themanufacturing Program CurrentProgramSet CurrentProgram.Comment
- Return type:
str
- complete_with_polar_strategy(i_liste_mfg_activity: ManufacturingActivities, i_axe_ref: str, i_sens_rotation: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CompletewithPolarStrategy(MfgActivitiesiListeMfgActivity,CATBSTR iAxeRef,CATBSTR iSensRotation)Complete a list of Operation in a Manufacturing Program in PolarMode.Example:The following example complete in Program firstProgram a liste ofOperation ListeMo with Reference Axis A and sens CLWCallfirstProgram.CompletewithPolarStrategy(ListeMo,A,CLW)
- Parameters:
i_liste_mfg_activity (MfgActivities) –
i_axe_ref (str) –
i_sens_rotation (str) –
- Return type:
None
- create_mo_from_report(i_report_succeed: ExpertReportObjects, i_type_mo: str) ManufacturingActivities ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateMOfromReport(ExpertReportObjectsiReportSucceed,CATBSTR iTypeMo) As MfgActivitiesCreate a list of Operation in a Manufacturing Program, of a specifiedtype.Example:The following example create in Program firstProgram a liste ofOperation ListeMo with type Drilling from a CATIAExpertReportSucceedCollectionReportSucceed.Set ListeMO = firstProgram.CreateMOfromReport(ReportSucceed,Drilling)
- Parameters:
i_report_succeed (ExpertReportObjects) –
i_type_mo (str) –
- Return type:
MfgActivities
- get_nc_output_file() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetNCOutputFile() As CATBSTRGet the output file (APT or ISO) associated to the program (if associatedduring computation).
- Return type:
str
- get_table_current_absolute_position(i_activity_ref: ManufacturingActivity) float ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetTableCurrentAbsolutePosition(ManufacturingActivity iActivityRef) AsdoubleGet the current absolute position of the Machine Table.Example:The following example gets in Program firstProgram the current MachineTable absolute position Angle from the Manufacturing activity referenceiActivityRefAngle = firstProgram.GetTableCurrentAbsolutePosition(iActivityRef)
- Parameters:
i_activity_ref (ManufacturingActivity) –
- Return type:
float
- import_nc_output_on_program(i_type: str, i_nc_output_file: str, i_pp_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ImportNCOutputOnProgram(CATBSTR iType,CATBSTR iNCOutputFile,CATBSTR iPPName)Import an NC File on a program.Example:The following example imports in a Program firstProgram an NC File oftype TYPE available in the file path PATH using the PP PPNAME ifrequired.Call firstProgram.ImportNCOutputOnProgram(TYPE,PATH,PPNAME)
- Parameters:
i_type (str) –
i_nc_output_file (str) –
i_pp_name (str) –
- Return type:
None
- insert_operation(i_reference_operation: ManufacturingOperation, i_manufacturing_operation: ManufacturingOperation) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub InsertOperation(ManufacturingOperationiReferenceOperation,ManufacturingOperation iManufacturingOperation)Insert an existing Manufacturing Operation to a ManufacturingProgram.Example:The following example inserts in firstProgram the manufacturingoperation ExistingOperation after ReferenceOperation:call firstProgram.InsertOperation(ReferenceOperation,ExistingOperation)
- Parameters:
i_reference_operation (ManufacturingOperation) –
i_manufacturing_operation (ManufacturingOperation) –
- Return type:
None
- lock_activities_within_program() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub LockActivitesWithinProgram()Method is used for Locking and Unloking all activity in program Call onManufacturingProgram on which Lock and Unlock want
- Return type:
None
- move_operation(i_reference_operation: ManufacturingActivity, i_manufacturing_operation: ManufacturingActivity) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub MoveOperation(ManufacturingActivityiReferenceOperation,ManufacturingActivity iManufacturingOperation)Move an existing Manufacturing Operation to a ManufacturingProgram.Example:The following example moves in firstProgram the manufacturing operationMovedOperation after the manufacturingoperationExistingOperation:call firstProgram.MoveOperation(ExistingOperation,MovedOperation)
- Parameters:
i_reference_operation (ManufacturingActivity) –
i_manufacturing_operation (ManufacturingActivity) –
- Return type:
None
- order_and_create_mo_from_report(i_report_succeed: ExpertReportObjects, i_type_mo: str, i_axe_rotabl: str, i_sens_rotation: str) ManufacturingActivities ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func OrderAndCreateMOfromReport(ExpertReportObjectsiReportSucceed,CATBSTR iTypeMo,CATBSTR iAxeRotabl,CATBSTR iSensRotation) As MfgActivitiesCreate a list of Operation in a Manufacturing Program, of a specifiedtype.Example:The following example create in Program firstProgram a liste ofOperation ListeMo with type Drilling from a CATIAExpertReportSucceedCollectionReportSucceed with Rotabl of Axis A and sens CLW.Set ListeMO = firstProgram.OrderAndCreateMOfromReport(ReportSucceed,Drilling)
- Parameters:
i_report_succeed (ExpertReportObjects) –
i_type_mo (str) –
i_axe_rotabl (str) –
i_sens_rotation (str) –
- Return type:
MfgActivities
- unlock_activities_within_program() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub UnlockActivitesWithinProgram()
- Return type:
None