Customization > Extensibility Through Profiles, Stereotypes, Tag Definitions and Scripts > Extensibility through stereotype scripts and script items > Working with profiles > Making a profile available in the new model and add profiles dialogs
  
Making a profile available in the new model and add profiles dialogs
After creating a profile Package, you can make that profile available for selection in the New Model and Add Profiles dialogs.
Note that the following task makes a profile available in the New Model and Add Profiles dialogs only on the computer on which the task is performed.
To make a profile available in the new model and add profiles dialogs
1. In the Modeler Profiles folder, create a folder for your profile.
If you have installed Modeler to its default location, the path of the Profiles folder is as follows.
For 64-bit versions of Windows:
C:\Program Files (x86)\PTC Integrity Modeler\Modeler\System\Profiles
For 32-bit versions of Windows:
C:\Program Files\PTC Integrity Modeler\Modeler\System\Profiles
2. From Modeler, open the model in which the profile Package resides.
3. Export the profile Package to the folder you created in Step 1:
a. Right-click the profile Package, point to Package Import/Export, and then click Export.
b. Select the folder you created for the profile, and then click OK.
4. Copy a profile xml file from another profile folder to your profile folder.
5. In the profile folder you created, create a 16x16 pixel bitmap file for the profile icon that is used in the New Model and Add Profiles dialogs.
6. Through Windows Explorer, change the name of the xml file in your profile folder to something appropriate for your profile.
7. In a text editor, such as Notepad, open the xml file in your profile folder.
8. Change the text as required for your profile:
Description—specify the purpose of the profile.
Group—specify the name of the group in which you want the profile to appear on the New Model and Add Profiles dialogs. You can specify the name of a new group.
Hide—specify TRUE to display the profile in the New Model and Add Profiles dialogs. Specify FALSE to not display the profile in the dialogs.
Id—specify the Id of the profile Package. You can copy the Package id from the Property Pages - on the Package's Property Pages, click the Text tab, and then select Id from the drop-down list box.
Image—specify the name of the bitmap file to use as the profile icon in the New Model and Add Profiles dialogs. The bitmap size should be 16x16 pixels.
Name—specify the profile name that is displayed in the New Model and Add Profiles dialogs.
Pkf_File—specify the name of the top-level pkf file for the profile.
PackageName—specify the name of the profile Package, as it appears in Modeler.
Key—specify a name for referencing the profile in the <CONTAINED_PROFILES>, <EXCLUDED_PROFILES>, or <REQUIRED_PROFILES> sections of other profiles. If a Key value is not specified, the PackageName value is used for identifying the profile.
RequiredFeature—used by PTC for provided profiles only.
AliasedProfile—for a profile that applies aliases to a supported PTC profile, specify the name of the base profile.
<CONTAINED_PROFILES> section—specify any profiles that are installed with your profile.
For example, if your profile does not contain any other profiles, the <CONTAINED_PROFILES> section would be as follows:
<CONTAINED_PROFILES>
</CONTAINED_PROFILES>
If your profile contains another profile named Requirements (as is the case for the SysML Profile), the <CONTAINED_PROFILES> section would be as follows:
<CONTAINED_PROFILES>
<CONTAINED_PROFILE>Requirements</CONTAINED_PROFILE>
</CONTAINED_PROFILES>
Reference other profiles through their Key value if specified, else their PackageName value.
<REQUIRED_PROFILES> section—specify any profiles that must be installed with your profile.
For example, if the UML Profile must be added with your profile, the <REQUIRED_PROFILES> section would be as follows:
<REQUIRED_PROFILES>
<REQUIRED_PROFILE>UML Profile</REQUIRED_PROFILE>
</REQUIRED_PROFILES>
Reference other profiles through their Key value if specified, else their PackageName value.
<EXCLUDED_PROFILES> section—specify any profiles that cannot be installed with your profile.
For example, if your profile cannot be installed with the C++ Generator profile, the <EXCLUDED_PROFILES> section would be as follows:
<EXCLUDED_PROFILES>
<EXCLUDED_PROFILEC++ Generator</EXCLUDED_PROFILE
</EXCLUDED_PROFILES>
Reference other profiles through their Key value if specified, else their PackageName value.
9. Save your changes, and close the text editor.
10. From Modeler, on the Tools menu, click Add Profile.
11. Confirm that your profile is displayed in the New Model or Add Profiles dialogs, and confirm that the profile is added to a model correctly.