Utility APIs
The functions specified in this section enable you to obtain the handle to the server objects to access them. The handle may be the Aliased URL or the model name of the http URL. These utilities enable the conversion of one type of handle to the other type.
Functions Introduced:
• ProServerModelNameToAliasedURL()
• ProServerAliasedURLToModelName()
• ProServerAliasedURLToURL()
The function
ProServerModelNameToAliasedURL() enables you to search for a server object by its name. Specify the complete file name of the object as the input, for example,
test_part.prt. The function returns the aliased URL for a model on the server. For more information regarding the aliased URL, refer to the section
Aliased URL. During the search operation, the workspace takes precedence over the shared space.
You can also use this function to search for files that are not in the Creo+ format. For example, my_text.txt, prodev.dat, intf_file.stp, and so on.
The function ProServerAliasedURLToModelName() returns the name of the object from the given aliased URL on the server.
The function ProServerAliasedURLToURL() converts an aliased URL to a standard URL to the objects on the server.
For example, wtws://my_alias/Wildfire/abcd.prt is converted to an appropriate URL on the server as <server.mycompany.com>/Windchill.