Cancel
Showing results for 
Search instead for 
Did you mean: 

API, Check or uncheck % of Model(actual)

Valued Contributor
Valued Contributor

 

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.

 

actual.png

Maarten Elings | Mechanical Engineer
2 REPLIES

Re: API, Check or uncheck % of Model(actual)

Siemens Phenom Siemens Phenom
Siemens Phenom

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. 

 

Mark.

 

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

Re: API, Check or uncheck % of Model(actual)

Valued Contributor
Valued Contributor
Thanks for the quick reply!
no wonder i overlooked it.
Maarten Elings | Mechanical Engineer