MultiModel Operations
pxGetModels
Gets all models list.
List<String> pxGetModels()
return
Returns model names in an array.
xGetNoOfModels
Gets the number of models loaded in the scene.
short xGetNoOfModels()
return
Returns the number of models loaded in the scene.
xGetModelIndex
Gets the index of the model for a model name.
short xGetModelIndex (String sModel)
return
Returns index for the model name.
sModel
Model name.
Note 1: ModelIndex and CAEModelIndex are different numbers.
Note 2: If a CAD model is loaded first and the CAE model is merged, then
the model index for CAD is 0 and the model index for CAE is 1.
Note 3: If a CAE model is loaded first and CAD model is merged, then the
model index for CAE is 0 and the model index for CAD is 1.
Note 4: If a CAE model is loaded first and again another CAE model is
merged, then models indices for both CAE are 0 and 1.
xGetNoOfCAEModels
Gets the number of CAE models in the loaded scene.
short xGetNoOfCAEModels()
return
Returns number of loaded CAE models in the scene.
xShowModelLabels
Indicates models with labels.
void xShowModelLabels()
return
None.
xIsCAEModel
Gets the state for CAE result’s availability in the loaded model.
bool xIsCAEModel (String sModel)
return
Returns True, if the loaded model has a CAE result.
sModel
Reserved for future use. Can be ignored now by passing an empty String.
pxGetCAEModels
Gets all CAE model names that are currently loaded.
List<String> pxGetCAEModels()
return
Returns all CAE model names.
xSetCurCAEModel
Sets current CAE model using CAE index.
bool xSetCurCAEModel(ushort iCAEModelIndex)
return
Returns True, if successful.
iCAEModelIndex
This indexed CAE model will be set as current CAE model. The index is in merged order.
xGetCurCAEModelName
Gets current CAE model name when multiple CAE models are loaded.
String xGetCurCAEModelName()
return
Returns CAE model name that is currently applied.
xSetCAECombinedPalette
Sets combine palette mode when multi models are loaded.
void xSetCAECombinedPalette(bool bCombinedPalette)
return
None.
bCombinedPalette
Set True to apply combine palette mode.
xSetCAEMultiPalette
Sets multi palette mode when multi models are loaded.
void xSetCAEMultiPalette(bool bMultiPalette)
return
None.
bMultiPalette
Set True to apply multi palette mode.
xSetCAEModelDisplayName
Sets model’s short name in the probe labels
In GUI
I
bool xSetCAEModelDisplayName(const String sModelName, const String sDisplayName)
return
Returns True if successful.
sModel
Name of the model.
sDisplayName
User-Defined name that will be displayed in probe labels as a model name.
xGetCAEModelDisplayName
Gets model’s display name.
String xGetCAEModelDisplayName(String sModel)
return
Returns model displayname.
sModel
Name of the model.
xSetCurCAEModelByName
Sets current CAE model by using model name.
bool xSetCurCAEModelByName (String sModel)
return
Returns True, if successful.
sModel
This model name will be set as current CAE model.
xCompareMesh
Find the difference between the two model’s geometry.
bool xCompareMesh(String sModel1, String sModel2, float fMaxDistance, short iCompareMode, bool bAddViewPoint, bool bSetPartMax)
return
Returns True, if successful.
sModel1
Source model where the color plot will be applied.
sModel2
Target Model which is compared with Model 1.
fMaxDistance
Two models points are compared within this value. Geometry deviation out of this value is ignored.
Allows user to set a constraint to maximum deviation. The default value is computed based on the source model bounding radius.
iCompareMode
Sets compare mode. Valid range 0 to 2.
0 – Same Parts
1 - Visible Parts
2 - All Parts
bAddViewPoint
Sets flag to add a viewpoint to this compared state.
bSetPartMax
Sets maximum deviation of the part.
xGetFileName
Gets CAx file name of model loaded.
String xGetFileName(String sModel)
return
Returns the full path of the CAx filename that is loaded.
sModel
The model name for that CAx file name needed.
Note: This function is valid only when CAX files are merged.
xGetCurCAEModelIndex
Gets current CAE model’s index in the CAE models list.
int xGetCurCAEModelIndex()
return
Returns current model’s index in the models’ array.
xHasMultiModel
Checks for more than one model in the scene.
bool xHasMultiModel()
return
Returns True, if more than one models are available in the scene.
pxGetModelName
Gets model name used for a loaded CAx file.
List<String> pxGetModelName(String sFileName)
return
Returns all the model names associated with the file it was merged or loaded.
sFileName
The full path of the CAx file name that is loaded.
xIsInMultiPalette
Checks if Multipalette mode is applied or not.
bool xIsInMultiPalette()
return
Returns True, if multi palette CAE mode is applied.
xIsInCombinedPalette
Checks for combined CAE palette mode is applied or not.
bool xIsInCombinedPalette()
return
Returns True, if combined palette CAE mode is applied.
xSetCAEPaletteMode
Sets Pallete mode for merged models.
void xSetCAEPaletteMode(int iCAEPaletteMode)
return
None.
iCAEPaletteMode
Sets required Palette mode for multiple model. Valid Range 0 to 3.
1 - Active *Model
2 - Multi Palette
3 - Combined Palette
4 - Multiple: Combined Palette
xGetCAEPaletteMode
Gets currently set palette mode for merged models
int xGetCAEPaletteMode()
Returns Palette mode is set currently.
1 - Active *Model
2 - Multi Palette
3 - Combined Palette
4 - Multiple: Combined Palette
xSetCompareMeshFeatureEdgeFlag
Sets compare feature edge option in compare mesh algorithm.
bool xSetCompareMeshFeatureEdgeFlag(bool bCompareFeatureEdge)
return
Returns True if successfully set.
bCompareFeatureEdge
Compare feature edge option.
xGetCompareMeshFeatureEdgeFlag
Sets compare feature edge option in compare mesh algorithm.
bool xGetCompareMeshFeatureEdgeFlag()
return
Returns True of False state of the compare feature edge option.
xSyncRotation
Syncs rotation between all merged models. This function does not make any sense if there is only one model.
bool xSyncRotation(bool bSync)
return
Returns True if it succeeds.
bSync
Set True to sync, Fals to stop sync.
xIsRotationSync
Check and gets whether rotation is sync between multiple models.
bool xIsRotationSync()
return
Returns True if succeeds.Returns False otherwise