Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Wireframe mode via API

[ Edited ]

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
Solution
Solution
Accepted by topic author yarko
‎09-26-2016 09:14 AM

Re: Wireframe mode via API

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

Hi grudy,

 

 

Thanks, works perfect!

 

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

 

Yarko