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 Procedures.
-
Deploy the procedure using MQL and do the following:
-
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 property ProcWinWeb value <Win/Web Option>;
-
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.For more information on properties, see the table below:
Property Description Server_HomeThe home folder of the server. The following path 'Server_Home/server/Apps/VPMMultiDiscipline/Release/java/src/My_Custo_Procedure.1.0.0.udoproc.js'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.ReleaseThe release level folder. Any_OOTB_Procedure.1.0.0.udoproc.jsThe name of the default procedure file you used to customize your own procedure. My_Custo_Procedure.1.0.0.udoproc.jsThe name of your customized procedure file including the version (with the last three numbers) of the program. Custo_Display_NameThe label of the completion procedure that appears in the box of the user interface. It contains more precisely an NLS key. Custo_Short_DescriptionThe short description of the completion procedure displayed in the user interface. It contains more precisely an NLS key. UserDefCompletionForOpenCmdThis string 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.ProcVisibilityThere are two possible values. ALL: The customer procedure is ready to be used in production and visible by any user.DEV: The procedure has 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.ProcActionThere are three possible values. - The
MCB_OPENstring ensures that the procedure is available only for the Open option from the PPR User Defined Actions
command. - The
MCB_EXPLOREstring ensures that the procedure is available only for the Explore option from the PPR User Defined Actions
command. - The
MCB_REVISIONstring ensures that the procedure is available only for the Lifecycle option from the PPR User Defined Actions
command.
Notes:- You can combine the different values, separating them by a comma ","
for example:
property ProcAction value “MCB_OPEN,MCB_REVISION” - If the
ProcActionis not specified, by default the procedure is available in each of these commands.
ProcNodeTypeThere 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 is only available when selecting an item when launching the 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.ProcOpenAppThere is one possible value: The
<AppTitle>.This string ensures that the procedure opens within the specified authoring app.
Important: Make sure that the app defined is compatible with the given procedure to open the retrieved data when running this procedure. The value can be:
AdditivePartPreparationAssemblyDefinitionAssemblyEvaluationAssemblyExperienceAssemblyPathOptimizationConstructionPlanningCuttingToolsBuilderDrillingRivetingEquipmentAllocationEquipmentDesignEquipmentSimulationEquipmentVirtualCommissioningErgonomicWorkplaceDesignErgonomicsatWorkErgonomicsEvaluationFabricatedStepDefinitionFactoryFlowSimulation
HeavyIndustryFluidicFabricationHeavyIndustryManufacturingHeavyIndustryProcessPlanningHeavyIndustryStructureFabricationMachiningValidationManufacturedItemDefinitionManufacturedItemDefinitionManufacturedItemDefinitionwithFastenersMaterialDepositionFabricationMillingMachiningMillTurnMachiningMultiaxisMachiningPlanningStructurePlantLayoutDesignPrismaticTurningMachiningProcessFlowSimulationProcessPlanning
ProcessPlanningwithFastenersRobotArcSimulationRobotOptimizationRobotOptimizationRobotProgrammingRobotSimulationRobotSpotProgrammingRobotSpotSimulationRobotSurfaceSimulationRobotVirtualCommissioningServiceProcessStructureSimulationExperienceTimeMotionStudyToolAnalysisWireEDMMachiningWorkInstructionsWorkPlanPublication
Note: If an incorrect value or no value is defined, the command opens the result in the last used authoring app.<Win/Web Option>There are three possible value: WEB: Lets you display and use procedures only in web apps.WIN: Lets you display and use procedures only in desktop apps.WIN_AND_WEB: Lets you display and use procedures on both web apps and desktop apps.
-
Result: 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 Actions
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. |