As a test, highlight the following code, and in MoI do: TAB , paste , return
(This adds the code to the command bar, and then runs it.)
This will very quickly add the 5 styles to the style menu.
This was a test. I'll have to think more about what order to put the styles in...( and what styles are desired.)
code:
function AddStyle( color, name )
{
var style = moi.geometryDatabase.addStyle();
style.color = color;
style.name = name;
}
AddStyle( 0xAFC4DD /* RRGGBB */, 'Light Steel Blue' );
AddStyle( 0xB4A683 /* RRGGBB */, 'Grullo' );
AddStyle( 0xA0A0A0 /* RRGGBB */, 'QuickSilver' );
AddStyle( 0xFFCACA /* RRGGBB */, 'Light Red' );
AddStyle( 0x404040 /* RRGGBB */, 'Black Olive' );
And if the new styles are to be reloaded, save the blank MoI as a .3dm file with an appropriate name to be the new template file (under Options, General).
- Brian
|