Edit and Deploy a Procedure
You can edit and deploy procedures using the MQL programming language.
-
Make a copy of
'Server_Home/server/Apps/VPMMultiDiscipline/Release/java/src/Any_OOTB_Procedure.1.0.0.udoproc.js'
in the same folder and rename the copied file
My_Custo_Procedure.1.0.0.udoproc.jsfor example. - Modify the procedure as required. For more information, see About User-Defined Open and Explore Procedures.
-
Deploy the procedure using MQL and do the followings:
-
cd Server_Home/server/scripts -
./mql -
set context user creator; -
verbose on; -
add prog My_Custo_Procedure.1.0.0 file 'Server_Home/server/Apps/VPMMultiDiscipline/Release/java/src/My_Custo_Procedure.1.0.0.udoproc.js' property isjavascriptprogram value TRUE property ProcDisplayName value "Custo_Display_Name" property ProcShortDescription value "Custo_Short_Description" property ProcUsageContexts value UserDefCompletionForOpenCmd property ProcCategory value Custo property ProcVisibility value ALL property ProcAction value BOTH property ProcNodeType value Any property ProcOpenApp value ProcessPlanning;
-
mod pack UDOProcedures add member program My_Custo_Procedure.1.0.0
Recommendation: Stop your interactive session before deploying the procedure and restart it afterward.Notes:Server_Home: The home folder of the server. The path'Server_Home/server/Apps/VPMMultiDiscipline/Release/java/src/My_Custo_Procedure.1.0.0.udoproc.js'above gives you an example and specifies where is the java script file (My_Custo_Procedure.1.0.0.udoproc.js) used to create the program.Release: The release level folder.Any_OOTB_Procedure.1.0.0.udoproc.js: The name of the default procedure file you used to customize your own procedure.My_Custo_Procedure.1.0.0.udoproc.js: The name of your customized procedure file including the version (with the last three numbers) of the program.Custo_Display_Name: The label of the completion procedure that appears in the box of the user interface. It contains more precisely an NLS key.Custo_Short_Description: The short description of the completion procedure displayed in the user interface. It contains more precisely an NLS key.- The
UserDefCompletionForOpenCmdstring ensures that the procedure is displayed only in DELMIA Manufacturing Context Builder.Note: To display the procedure also in CATIA Product Finder, specify theProcUsageContextsvalue asUserDefCompletionForOpenCmd|ProductFinder. ProcVisibility: There are two possible values.ALL: The customer procedure is ready to be used in production and visible by any user.DEV: The procedure have been created but not yet been validated.
Note: You can manage the list of available procedures in Me
> Preferences > App Preferences > Simulation > Process Engineering
> Manufacturing Context Builder > User Defined. For more information, see User Defined.ProcAction: There are three possible values.- The
MCB_OPENstring ensures that the procedure is available only for the PPR User Defined Open
command. - The
MCB_EXPLOREstring ensures that the procedure is available only for the PPR User Defined Explore
command. - The
BOTHstring ensures that the procedure is available for PPR User Defined Open
and PPR User Defined Explore
commands.
Note: If theProcActionis not specified, by default the procedure is available in both commands.- The
ProcNodeType: There are two possible values.- The
<ObjectType>string ensures that the procedure is available only for the defined object type. For example, if you specifyEBOMas the object type, the procedure will only be available when selecting an item when launching the UDO
or UDE
command.
Values can be:EBOMMBOMSystemWorkPlanResource
- The
Anystring ensures that the procedure is available for all input object types.
Note: If theProcNodeTypeis not specified, by default the procedure is available for all input object types.- The
ProcOpenApp: There is one possible value.The
<AppTitle>string ensure that the UDO procedure opens within the specified authoring app. Values can be:AdditivePartPreparationAssemblyDefinitionAssemblyEvaluationAssemblyExperienceAssemblyPathOptimizationConstructionPlanningCuttingToolsBuilderDrillingRivetingEquipmentAllocationEquipmentDesignEquipmentSimulationEquipmentVirtualCommissioningErgonomicWorkplaceDesignErgonomicsatWorkErgonomicsEvaluationFabricatedStepDefinitionFactoryFlowSimulationHeavyIndustryFluidicFabricationHeavyIndustryManufacturingHeavyIndustryProcessPlanningHeavyIndustryStructureFabricationMachiningValidationManufacturedItemDefinitionManufacturedItemDefinitionwithFastenersMaterialDepositionFabricationMillingMachiningMillTurnMachiningMultiaxisMachiningPlanningStructurePlantLayoutDesignPrismaticTurningMachiningProcessFlowSimulationProcessPlanningProcessPlanningwithFastenersRobotArcSimulationRobotOptimizationRobotProgrammingRobotSimulationRobotSpotProgrammingRobotSpotSimulationRobotSurfaceSimulationRobotVirtualCommissioningServiceProcessStructureSimulationExperienceTimeMotionStudyToolAnalysisWireEDMMachiningWorkInstructionsWorkPlanPublicationImportant: Make sure that the app defined is compatible with the given procedure to open the retrieved data when running this UDO procedure. Note: If an incorrect value or no value is defined, the UDO command opens the result in the last used authoring app.
-
The procedure you have created takes effect immediately; there is no need to restart
the server. The changes you make will be implemented the next time you use the
PPR User Defined Open
or
PPR User Defined Explore
command.
Tip:
If you want to modify the procedure of an already existing
program and redeploy it, you need to update the program with the following command:
mod prog My_Custo_Procedure.1.0.0 file
'Server_Home/server/Apps/VPMMultiDiscipline/Release/java/src/My_Custo_Procedure.1.0.0.udoproc.js';.
In this case, there is no need to stop your interactive session before deploying again the
procedure and restart it afterward. |