Properties
- Property Activities() As (Read Only)
-
Give the List of Activities linked to a Manufacturing Program.
- Example:
- The following example returns the list of Activities ActivitiesList linked to the manufacturing Program CurrentProgram
Set ActivitiesList = CurrentProgram.Activities
- Property Comment() As
-
Return the Default Comment of a Manufacturing Program.
- Example:
- The following example return the comment ProgramComment of to the manufacturing Program CurrentProgram
Set CurrentProgram.Comment= "ProgramComment"
Methods
- Func AddGotoPoint( iPointName) As
-
Add a Goto Point Operation to a Manufacturing Program.
- Example:
- The following example create, inserts and sequences in Program firstProgram a PTP point instruction GOTO1 to the Point wich alias isMyPoint
Set GOTO1 = firstProgram.AddGotoPoint(MyPoint)
- Func AddGotoPointfromCoordinates( iX, iY, iZ) As
-
Add a Goto Point Operation to a Manufacturing Program.
The coordinates you give as input for this method have to be expressed into the 'Absolute Axis System' not in the 'Machining Axis System' of the Part Operation.
- Example:
- The following example create, inserts and sequences in Program firstProgram a PTP point instruction GOTO1 to the Point wich coordinates areX,Y,Z
Set GOTO1 = firstProgram.AddGotoPointfromCoordinates(X,Y,Z)
- Func AddPPInstruction( iPPInstruction) As
-
Add a PP Instruction to a Manufacturing Program.
- Example:
- The following example create, inserts and sequences in Program firstProgram a PP Instruction PPWORD1 with textPPWORD
Set PPWORD1 = firstProgram.AddPPInstruction(PPWORD)
- Func AddRotabl( iRotabl, iSens, ival) As
-
Add a Table Head Rotation instruction to a Manufacturing Program.
- Example:
- The following example create, inserts and sequences in Program firstProgram a Rotabl ROTABL1 with argumentMODE and angleANGLE1
Set ROTABL1 = firstProgram.AddRotabl(MODE,ANGLE1)
- Func AddToolChange( iToolName, iToolType, iToolCatalog, iNumSyntaxe) As
-
Add a Tool Change Operation to a Manufacturing Program.
- Example:
- The following example create, inserts and sequences in firstProgram a Tool Change Instruction with specified toolMyTool of specified type ToolTypein specified catalogToolCatalog
Set ToolChange1 = firstProgram.AddToolChange(MyTool,ToolType,ToolCatalog,Num)
- Func AddToolChangeMultipleFeeds( iToolName, iToolType, iToolCatalog, iNumFSData, iNumSyntaxe) As
-
Add a Tool Change Operation to a Manufacturing Program.
- Example:
- The following example create, inserts and sequences in firstProgram a Tool Change Instruction with specified toolMyTool of specified type ToolTypein specified catalogToolCatalog
Set ToolChange1 = firstProgram.AddToolChangeMultipleFeeds(MyTool,ToolType,ToolCatalog,NumFSData,Num)
- Func AppendOperation( type, AutoSequence) As
-
Create and Insert a Manufacturing Operation of a specified type to a Manufacturing Program.
if AutoSequence is set to 1, the new operation will be sequenced in the Program.
- Example:
- The following example creates, inserts and sequences in firstProgram the manufacturing operation
ManufacturingOperation of type : type
Set ManufacturingOperation = firstProgram.AppendOperation(Type,1)
- Sub AssociateOutputCode( iFileName)
- Method is used for associate APT file to V4 program iFileName = path for APT file.... Call on V4 ManufacturingProgram
- Sub CompletewithPolarStrategy( iListeMfgActivity, iAxeRef, iSensRotation)
-
Complete a list of Operation in a Manufacturing Program in Polar Mode.
- Example:
- The following example complete in Program firstProgram a liste of Operation ListeMo with Reference Axis A and sens CLW
Call firstProgram.CompletewithPolarStrategy(ListeMo,A,CLW)
- Func CreateMOfromReport( iReportSucceed, iTypeMo) As
-
Create a list of Operation in a Manufacturing Program, of a specified type.
- Example:
- The following example create in Program firstProgram a liste of Operation ListeMo with type Drilling from a CATIAExpertReportSucceedCollection ReportSucceed.
Set ListeMO = firstProgram.CreateMOfromReport(ReportSucceed,Drilling)
- Func GetNCOutputFile() As
-
Get the output file (APT or ISO) associated to the program (if associated during computation).
- Func GetTableCurrentAbsolutePosition( iActivityRef) As
-
Get the current absolute position of the Machine Table.
- Example:
- The following example gets in Program firstProgram the current Machine Table absolute position Angle from the Manufacturing activity reference iActivityRef
Angle = firstProgram.GetTableCurrentAbsolutePosition(iActivityRef)
- Sub ImportNCOutputOnProgram( iType, iNCOutputFile, iPPName)
-
Import an NC File on a program.
- Example:
- The following example imports in a Program firstProgram an NC File of type TYPE available in the file path PATH using the PP PPNAME if required.
Call firstProgram.ImportNCOutputOnProgram(TYPE,PATH,PPNAME)
- Sub InsertOperation( iReferenceOperation, iManufacturingOperation)
-
Insert an existing Manufacturing Operation to a Manufacturing Program.
- Example:
- The following example inserts in firstProgram the manufacturing operation
ExistingOperation after ReferenceOperation:
call firstProgram.InsertOperation(ReferenceOperation,ExistingOperation)
- Sub LockActivitesWithinProgram()
- Method is used for Locking and Unloking all activity in program Call on ManufacturingProgram on which Lock and Unlock want
- Sub MoveOperation( iReferenceOperation, iManufacturingOperation)
-
Move an existing Manufacturing Operation to a Manufacturing Program.
- Example:
- The following example moves in firstProgram the manufacturing operation
MovedOperation after the manufacturing operationExistingOperation:
call firstProgram.MoveOperation(ExistingOperation, MovedOperation)
- Func OrderAndCreateMOfromReport( iReportSucceed, iTypeMo, iAxeRotabl, iSensRotation) As
-
Create a list of Operation in a Manufacturing Program, of a specified type.
- Example:
- The following example create in Program firstProgram a liste of Operation ListeMo with type Drilling from a CATIAExpertReportSucceedCollection ReportSucceed with Rotabl of Axis A and sens CLW.
Set ListeMO = firstProgram.OrderAndCreateMOfromReport(ReportSucceed,Drilling)
- Sub UnlockActivitesWithinProgram()