Personal tools
You are here: Home Forum Use Can CADSurf advanced parameters be defined in TUI?

Can CADSurf advanced parameters be defined in TUI?

Up to Use

Can CADSurf advanced parameters be defined in TUI?

Posted by Christophe Trophime at November 08. 2019

Hi,

I would like to know if the CADSurf Advanced parameters are accessible through the python interface?

If yes, can you point me to an example?

 

Thanks

C.

Re: Can CADSurf advanced parameters be defined in TUI?

Posted by Saint Michael at November 11. 2019

Hi

A general approach is to do what you need in GUI and then dump the study (File > Dump Study )

St.Michael

Re: Can CADSurf advanced parameters be defined in TUI?

Posted by Christophe Trophime at November 11. 2019

Yep That's what I try to do but this times I don't see anything from "Advanced parameters" in the dump...

Re: Can CADSurf advanced parameters be defined in TUI?

Posted by Christophe Bourcier at November 20. 2019

Hi Christophe,

Python dump seems to work for me:

MG_CADSurf = Mesh_1.Triangle(algo=smeshBuilder.MG_CADSurf)
MG_CADSurf_Parameters_1 = MG_CADSurf.Parameters()
MG_CADSurf_Parameters_1.SetEnforceCadEdgesSize( 1 )
MG_CADSurf_Parameters_1.SetMaxNumberOfThreads( 8 )
MG_CADSurf_Parameters_1.AddOption( 'toto', 'no' ) #option as text --toto=no

Note that an advanced option is dumped only if it its value has changed from the default value.

If you tick an advanced option, keeping the default value, it is not dumped because it is unchanged.

Christophe

Powered by Ploneboard
Document Actions