Showing results for 
Search instead for 
Do you mean 
Reply

setting the preference for Entities Show in FEMAP using API

I want to make the automated image update.

 

So I want to highlight few elements and take the image. So the question is how to make the other elements as transparent and highlight the selected elements before taking the image?

 

I want to do window > show entities (tansparent highlight) in FEMAP using API

 

Can anybody help me on this?

 

7 REPLIES

Re: setting the preference for Entities Show in FEMAP using API

Hi,

Help > API > 3.12.7 feViewShow

AP

 

Re: setting the preference for Entities Show in FEMAP using API

Use the app.feViewShow method.  For example:

 

The HTML Clipboard

Sub Main
    Dim App As femap.model
    Set App = feFemap()

    Dim rc As femap.zReturnCode

    Dim eSet As femap.Set
    Set eSet = App.feSet
    rc = eSet.Select ( FT_ELEM, True, "Select Elements to Highlight" )
    If rc <> FE_OK Then
        End
    End If

    App.Info_ViewShowTransparent = True
    App.feViewShow ( FT_ELEM, eSet.ID )

End Sub

Best Regards,
Chip Fricke
Principal Applications Engineer - Femap Product Development

Re: setting the preference for Entities Show in FEMAP using API

I tried it. But its not working. Just copied you code to FEMAP API window and tested it.

 

I am using FEMAP11.1.0.

Re: setting the preference for Entities Show in FEMAP using API

Hi

 

I'm ok with the option to highlight the Element set. But not able to set th epreferences for highlighting.

 

Like Transparent highlight and Show Label ID

Re: setting the preference for Entities Show in FEMAP using API

Help > API > 3.3.2 > look for Info_ViewShowLabel

 

as for the others

Help > API > 3.3.4 > look for Info_ViewShowblablabla

 

Chip's code works fine for me, with the same version of FEMAP as yours.

 

AP

Re: setting the preference for Entities Show in FEMAP using API

It works for Info_ViewShowLabel nut not for the Info_ViewShowTranparent.

 

I Checked the API reference pdf and the option is available only in 11.3.1 not in 11.1.0.

 

Is there an alternate way to do it?

 

PFA image for the exact requirement of mine.

 

 

Re: setting the preference for Entities Show in FEMAP using API

Your best bet in 11.1.0 would be to set Transparent Highlight in Preferences > User Interface.  Every new model will have Transparent Highlight on as the default.

 

TransHighlight.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

For your current session just turn Transparent Highlight on from Window > Show Entities and you should not have to ever set it again.