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?
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
I tried it. But its not working. Just copied you code to FEMAP API window and tested it.
I am using FEMAP11.1.0.
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
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.
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.
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.
For your current session just turn Transparent Highlight on from Window > Show Entities and you should not have to ever set it again.