IsDeformed
This function allows you to evaluate if an object is deformed.
Signature
IsDeformed()
Arguments
| Input/Output | Required? | Type | Comment |
|---|---|---|---|
| Input | | VPMReference | - |
| Output | | Boolean | - |
ReturnType
Boolean
The function returns TRUE if the input is deformed, FALSE if not.
Evaluating if an Object is Deformed
Let title (String)
Let description (String)
Let isDeformed (Boolean)
Let listModifiedObjects (List)
Let TargetObject (VPMReference)
title = ThisObject.GetAttributeString("PLMEntity.V_Name")
description = ThisObject.GetAttributeString("PLMEntity.V_description")
isDeformed = ThisObject.IsDeformed()
if isDeformed
{
description = title + "_deformed"
}
ThisObject.SetAttributeString(("PLMEntity.V_description"), description)
listModifiedObjects.Append("B" + ThisObject.GetAttributeString("physicalid"))
ReportModifiedObjects(listModifiedObjects)