Does anyone know how to actually check (or uncheck) the View Option\Deformed style '% of Model (Actual)'?
I know how to change the absolute and relative scale values, but in the API I just can't find the property to check or uncheck this checkbox.
Solved! Go to Solution.
That checkbox is connected to the .draw Property of the View Object, this code gets the Active View, loads it, checks to see if the option is checked, and processes accordingly.
The HTML Clipboard
Sub Main Dim App As femap.model Set App = feFemap() Dim viewID As Long Dim feView As femap.View Set feView = App.feView App.feAppGetActiveView( viewID ) If feView.Get( viewID ) = FE_OK Then If feView.Draw( FVI_DEFORMED_STYLE ) Then feView.Draw(FVI_DEFORMED_STYLE) = False Else feView.Draw(FVI_DEFORMED_STYLE ) = True End If feView.Put( viewID ) App.feViewRegenerate( viewID ) End If End Sub