MapForce API

When you save a document, this property specifies whether the library path should be saved as absolute or relative. If set to true, the path of the library will be relative to the document. If set to false, the library path will be absolute.

 

Do not rely on this property to determine whether the path is absolute or relative, since the path may have changed (either from the user interface or via API) since the document was loaded from the .mfd file.

 

If you set this property (either via the API or user interface), the Manage Libraries window will immediately show the correct path’s state in the user interface. Internally, however, the Path of the ImportedLibrary object will not change until the document is saved.

 

Important

Libraries imported globally cannot be saved with a relative path. Only libraries imported at document level can.

 

Signature

SaveRelativePath as Boolean

 

Errors

Error code

Description

2500

The object is no longer valid.

2501

Invalid address for the return parameter was specified.

2502

Global imports cannot be saved with a relative path.

 

© 2019-2025 Altova GmbH