Creating custom colours (styles) on start-up
All  1-4  5-6

Previous
Next
 From:  Michael Gibson
8359.5 In reply to 8359.4 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
8359.6 In reply to 8359.5 
Thank you very much Michael.

I also changed line 251 from 18em to 36em

(The path I gave above was not quite correct :-)

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-4  5-6