Hi Ed, so if I understand properly you'd do something like this to set the edge display to a specific color and then back again:
var prev_color_mode = moi.view.edgeColorMode;
var prev_fixed_color = moi.view.edgeFixedColor;
moi.view.edgeColorMode = "FixedColor";
var r = 255;
var g = 0;
var b = 0;
moi.view.edgeFixedColor = (r << 16) | (g << 8) | b;
moi.ui.alert( 'edges are red' );
moi.view.edgeColorMode = prev_color_mode;
moi.view.edgeFixedColor = prev_fixed_color;
I'm not exactly following what you want for the style part, but yes it is possible to look for a style using:
var style = moi.geometryDatabase.findStyle( 'stylename', true /* Create if not found */ );
Let me know if you need more details.
- Michael
|