Hi Brian, you can just use the filename directly instead of calling .getCompactPath().
Current code is like this:
code:
var filename = moi.geometryDatabase.startupTemplate;
if ( filename != '' )
g_TemplateShortName = moi.filesystem.getCompactPath( filename, 29 );
You'd want to switch it to this instead:
code:
var filename = moi.geometryDatabase.startupTemplate;
if ( filename != '' )
g_TemplateShortName = filename;
Hope that does what you wanted!
- Michael
|