Posted on

Model Management in AX 2012 and Working with Models in AOT for Ax 2012
Procedure: Manage Models
To show the options for AxUtil.exe, follow these steps:
1.     Open Start > All Programs > Accessories > Command Prompt.
2.     Enter the following commands to open the appropriate directory.
a.     Type “cd” and then press Enter.
b.     Type “cdProgram FilesMicrosoft Dynamics AX60ServerMicrosoftDynamicsAXBin” and then press Enter.
NOTE: The default path for axutil.exe is <drive>:Program FilesMicrosoft Dynamics AX60Server<InstanceName>Bin folder.
3.     Type “AxUtil.exe -?” and then press Enter to list all of the commands available in the AxUtil.exe.
Procedure: Create a Model
To create a new “CONTOSOAX” model in the user, follow these steps:
1.     Open Start > All Programs > Accessories > Command Prompt.
2.     Enter the following commands to open the appropriate directory.
a.     Type “cd” and then press Enter.
b.     Type “cdProgram FilesMicrosoft Dynamics AX60ServerMicrosoftDynamicsAXBin” and then press Enter.
3.     Type “AxUtil.exe list” and then press Enter to list all current models.
4.     Type “AxUtil.exe create /model:CONTOSOAX /layer:Cus” and then press Enter to add the “CONTOSOAX” model.
5.     Type “AxUtil.exe list” and then press Enter to list all current models. Notice that the “CONTOSOAX” model is now listed.
Procedure: Edit a Model Version Number
You can use the/manifest parameter in a command to edit or set various fields in the model. For example, you might want to update the version number of a model after you have imported changes. To update a model version number, follow these steps:
1.     Open Start > All Programs > Accessories > Command Prompt.
2.     Enter the following commands to open the appropriate directory.
a.     Type “cd” and then press Enter.
b.     Type “cdProgram FilesMicrosoft Dynamics AX60ServerMicrosoftDynamicsAXBin” and then press Enter.
3.     Type “AxUtil.exe edit /model:CONTOSOAX /manifest:Version=”2.0.0.0″ and then press Enter to update the version number of the “CONTOSOAX” model.
4.     Type “AxUtil.exe list” and then press Enter to list all current models. Notice that the “CONTOSOAX” model version number is now 2.0.0.0.
Procedure: Export a Model
To export the “CONTOSOAX” model in the user, follow these steps:
1.     Open Start > All Programs > Accessories > Command Prompt.
2.     Enter the following commands to open the appropriate directory.
a.     Type “cd” and then press Enter.
b.     Type “cdProgram FilesMicrosoft Dynamics AX60ServerMicrosoftDynamicsAXBin” and then press Enter.
3.     Type “AxUtil.exe export /file:c:CONTOSOAXModel.axmodel /model:CONTOSOAX” and then press Enter to export the “CONTOSOAX” model.


           

Procedure: Delete a Model
To delete the “CONTOSOAX” model, follow these steps:
1.     Open Start > All Programs > Accessories > Command Prompt.
2.     Enter the following commands to open the appropriate directory.
a.     Type “cd” and then press Enter.
b.     Type “cdProgram FilesMicrosoft Dynamics AX60ServerMicrosoftDynamicsAXBin” and then press Enter.
3.     Type “AxUtil.exe delete /model:CONTOSOAX” and then press Enter to delete the “CONTOSOAX” model.
4.     Type “Y” to confirm the deletion.
5.     Type “AxUtil.exe list” and then press Enter to list all current models. Notice that the “CONTOSOAX” model is no longer listed.
Procedure: Manage Label Files
To create a “CONAX” label file, follow these steps:
1.     Open a new development workspace, click the windows icon in the upper-right corner, then New Development Workspace, or press Ctrl+Shift+W.
2.     Open AOT > Label Files.
3.     Right-click Label Files > Create in Label file Wizard.
4.     Select Create new label file ID, then click Next.
5.     In Label file ID, type “CONAX”, then click Next.
6.     Click Finish.
7.     Expand Label Files, and note that a “CONAX” label file has been created in the current layer and model.


One Reply to “Model Management in AX 2012,Working with Models in AOT”

Leave a Reply

Your email address will not be published. Required fields are marked *