Altova MapForce 2024 Enterprise Edition

Generating code from a mapping project

Home Prev Top Next

You can generate C# code from a mapping project (.mfp) that consists of multiple mapping design (.mfd) files. Note that all mapping design files in the project must qualify for C# generation, that is, all their components must be supported in C#, as described in Supported features in generated code.

To generate code from a mapping project (.mfp):

1.If you haven't done so already, open the mapping project in MapForce.

2.Right-click the project in the Project window, and then click Properties.

cg-generate-cs-for-project

3.Review and change the project settings if required (in particular, ensure that the target language and the output directory are set correctly), and then click OK.

4.On the Project menu, click Generate code for the Entire Project.

 

The progress and result of the code generation process (error or success message) is displayed in the Messages window.

 

By default, the name of the generated application is the same as the project name. If the project name contains spaces, these are converted to underscores in the generated code. By default, code is generated in the same directory as the MapForce project, in the output sub-directory.

 

To change the output directory and the name of the project, click the Project in the Project window, and then select Project | Properties from the menu. If your MapForce project contains folders, you can change the code generation settings for each individual folder (right click on the folder, and then select Properties). Otherwise, all project folders inherit the settings from the MapForce project.

© 2017-2023 Altova GmbH