Home / Material Property Settings / CSolidFluid / Property / State
State Property
Syntax
State As SLG_STATE_T| Gets the value | Yes | |
| Sets the value | Yes |
Parameters
No parametersNotes
Sets or gets whether solid or fluid.Specifies the type defined by SLG STATE_T.
Specifies FLUID_C to set fluid.
Example
Dim Femtet As New CFemtetDim Btr As CBodyAttribute
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
'Substitute Femtet.Material for Mat.
Set Mat = Femtet.Material
Mat.Add "MaterialA"
Mat.SolidFluid(0).State = FLUID_C


