The following steps explain how to create a new extension file in which to store your custom schema objects for the authoring schema and how to create a custom configuration file for managing the extension file. In addition, the procedure also provides details about creating a custom copy of a delivered file for editing with your customizations.
-
Find the SCHEMA_MTRSPONonIntegration.xml file delivered at Smart Community. For more information, see Find sample data on Smart Community.
-
Copy the SCHEMA_MTRSPONonIntegration.xml file and place it in your customization folder with the other files you have created as part of this process. .
Do not rename the file, but make sure that it is editable and not read-only.
-
To create a new configuration file to manage your customizations, find the MTRSchema.cfg configuration file delivered at Smart Community. For more information, see Find sample data on Smart Community. .
-
Create a copy of the MTRSchema.cfg file and give it a unique name, such as AcmeSchema.cfg. Save the file to your customization folder.
-
To make sure that the new configuration file is editable and not read-only, right-click it, and click Properties.
-
Clear the Read Only check box, and click OK.
-
Right-click the new configuration file, and open it with a text editor, such as Notepad.
-
Update the path for the SCHEMA_MTRSPONonIntegration.xml file to point to the copy you created at the beginning of this procedure in your customization folder.
You can use a relative path if both files are located in the same folder. Otherwise, use an absolute path to the file.
-
Check the other paths listed in the file to make sure they are correct. By default, it assumes all files that have an absolute path are delivered under the C:\Program Files (x86) directory. If you installed the files in a different location, these paths must be updated.
-
For files with relative paths, update the paths to the correct absolute paths.
Do not to change the "AS" prefix or the "!N" suffix for lines when editing them.
-
Save your changes and close the text editor.
-
Right-click the configuration file again, and this time open the file in the SmartPlant Schema Editor.
-
Click File > Open > Another Schema File.
-
In the Another Schema File dialog box, browse to your customization folder that contains the integration customization file you created. In this example, the file was named SCHEMA_AcmeIntegration.xml.
-
Click File > New > Another Schema File.
-
In the Another Schema File dialog box, browse to your customization folder.
-
Create a new file with a file name that indicates that the file will contain custom non-integration schema objects, such as SCHEMA_AcmeNonIntegration.xml.
Place this new XML file in your customization folder with the other files you have created as part of this process.
-
In the Set Container Dependencies dialog box, select the following files:
-
SCHEMA_MTRSPONonIntegration.xml
-
SCHEMA_EFSchema.xml
-
SCHEMA_SPONonIntegrationForMTR.xml
-
The new XML file you created in the procedure Define a new custom property definition in the publish schema that contains the integration customizations. In this example, the file was named SCHEMA_AcmeIntegration.xml.
-
-
Click OK.
-
Click File > File Configuration > Save Configuration.
The new file is automatically set to be the active file in the .cfg file.