ScenomeApplication.MakeRelativePath

This page contains reference documentation for the MakeRelativePath function. This function derives a relative filepath from the source path to the destination path.

Prototype

string MakeRelativePath( string DestinationPath, string SourcePath )

Parameters

Function parameters are as follows:

Examples

Examples are as follows:

NodeLink link = (NodeLink)Model.EditNode( node );
string temp = Model.Filename;
temp = Application.MakeRelativePath( link.PathToFile, temp );
if( temp != "" )
{
   link.PathToFile = temp;
}

Working Sample Code

For sample code: