Hello, thank you for the code. However I have anothe issue, if right after I run horizontal zebra, I want to run vertical zebra, when the command window appears, then both options are selected. How can I avoid this issue and see in the window just one option selected. Below the lines of code I added to the file sent before.
// vertical direction
CRhinoZebraAnalysisSettings settings = RhinoApp().AppSettings().ZebraAnalysisSettings();
if (settings.m_stripe_thickness != 6)
{
settings.m_stripe_thickness = 6;
settings.m_stripe_direction = 1;
RhinoApp().AppSettings().SetZebraAnalysisSettings(settings);
context.m_doc.Redraw();
}
//horizontal direction
CRhinoZebraAnalysisSettings settings = RhinoApp().AppSettings().ZebraAnalysisSettings();
if (settings.m_stripe_thickness != 6)
{
settings.m_stripe_thickness = 6;
settings.m_stripe_direction = 0;
RhinoApp().AppSettings().SetZebraAnalysisSettings(settings);
context.m_doc.Redraw();
}
Thank you a lot if you could help me