This page contains reference documentation for the MakeRelativePath function. This function derives a relative filepath from the source path to the destination path.
string MakeRelativePath( string DestinationPath, string SourcePath )
Function parameters are as follows:
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;
}
For sample code: