Cancel
Showing results for 
Search instead for 
Did you mean: 

Wireframe mode via API

Legend
Legend

Hello,

 

 

I would like to set the mode from Solid to Wireframe via API. I haven't find in manual the function that does that (maybe I missed it): 

wireframe.png

 

I'm trying to show all peak spots in my model. To be able to see small spots I need to use Wireframe mode:

Peak.png

 

Is this possible via API at all? How it can be done?

 

Yarko

 

2 REPLIES

Re: Wireframe mode via API

Siemens Phenom Siemens Phenom
Siemens Phenom

There is no way to just call Wireframe, however you can accomplish the same thing using the View Object. 

The following code shows how to do it.

 

The HTML Clipboard

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

    Dim vuID As Long
    Dim v As femap.View
    Set v = App.feView

    App.feAppGetActiveView( vuID )
    v.Get(vuID)

    v.Mode = FVM_DRAW
    v.Draw(FVI_FILL_ELEM) = False
    v.Draw(FVI_SHADING) = False

    v.Put(vuID)
    v.Regenerate()
End Sub

Re: Wireframe mode via API

Legend
Legend

Hi grudy,

 

 

Thanks, works perfect!

 

I had in mind to use feFileProgramRun function but defenetely your solution is what I was looking for.

 

Yarko