Scan-and-Solve for Rhino

Simulate Early, Simulate Often... In Rhino

Hi,

Is there any file or regedit that can be done that can be done to change the default view settings?

i.e. I want to change it so that SnS defaults to advanced>von mises with a default scale of 0-235 and the legend to be white to dark red blocked.

thanks,

Hamish

Views: 291

Attachments:

Reply to This

Replies to This Discussion

The "Retain settings" checkbox will save the legend limits and color scale for your chosen solution component on a given solid.  It is not currently possible to set the default view mode or solution component, but we'll add it to the wish list.

~Michael

In the meantime, through SnSScript, you CAN turn the visualization on/off, set the displayed solution component, the legend limits, and the color scale.  Try the following in RhinoScript:

Option Explicit
Call Main()
Sub Main()
Dim objSnSPlugIn , strObject
On Error Resume Next

Set objSnSPlugIn = Rhino.GetPluginObject("SnSScript")

strObject = Rhino.GetObject("Select a solid")

objSnSPlugIn.SolutionDisplayEnable strObject, "VONM"
objSnSPlugIn.SetLegendColorScale strObject, 6
objSnSPlugIn.SetLegendLimits strObject, 0, 235
End Sub

 

To turn off the display:

Option Explicit
Call Main()
Sub Main()
Dim objSnSPlugIn
On Error Resume Next

Set objSnSPlugIn = Rhino.GetPluginObject("SnSScript")

objSnSPlugIn.SolutionDisplayReset
End Sub

This seems to work well enough for now, maybe even abetter way to go, I better read up a bit more on scripts though, cheers.

It would be great if it was even just a settings.ini file that could be edited to suit, I suspect this is easier than creating a new dialogue box.

I do use the retain settings but due to the workflow and style of work we are usually analyzing many different models to compare, hence having to change the settings each time.

RSS

FOLLOW SCAN&SOLVE

© 2024   Created by Michael Freytag.   Powered by

Badges  |  Report an Issue  |  Terms of Service