MoveMeshSrf()

Move a surface mesh set to a new model entity.

Usage

MoveMeshSrf( mesh, model, new=False, meshList = None, modelList = None )

Parameters

mesh (string)
The surface mesh set.
model (string)
The name of the model entity.
new (boolean)
Flag specifies whether to create a new mesh set or use the old one.
meshList (none)
The mesh surfaces list.
modelList (none)
The model surfaces list.

Return Value

None

Errors

  • The mesh and model must not be None.
  • If new = 'False' then the mesh must already exist.

Description

This routine moves a surface mesh set to a new model entity. If new is False, it only works on a mesh set that is already in the surface model entities and only moves the mesh from one model to another one. If new is True, then you have a new mesh, hence it does not move but creates a new set for a surface model. For example,
meshSrf = ROOT + RS + "Mesh" + RS + "Surfaces"
modelSrf = ROOT + RS + "Model" + RS + "Surfaces"
meshChild = GetChildren( meshSrf )
modelChild = GetChildren( modelSrf )
MoveMeshSrf( mesh = meshChild, model = "Fluid",
             new = True, meshList = meshChild, modelList = modelChild )