HVAC_DuctXPort.CheckCompatibility()
Signature
HVAC_DuctXPort.CheckCompatibility(Port Owner Occurrence : ProductOccurrence, Second Port : VPMPort, Second Port Owner Occurrence : ProductOccurrence, Use Only Compatibility Rule Table : Boolean, List of Additional Specifications : List, Parameters whose check failed : List) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Port Owner Occurrence |
In |
|
ProductOccurrence |
- |
Second Port |
In |
|
VPMPort |
- |
Second Port Owner
Occurrence |
In |
|
ProductOccurrence |
- |
Use Only Compatibility Rule
Table |
In |
|
Boolean |
- |
List of Additional
Specifications |
In |
|
List |
- |
Parameters whose check
failed |
Out |
|
List |
- |
HVAC_DuctXPort.SetPortAttributeString()
Signature
HVAC_DuctXPort.SetPortAttributeString(AttrName : String, AttrValue : String)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
AttrName |
In |
|
String |
- |
AttrValue |
In |
|
String |
- |
HVAC_Duct_Occurrence.ComputeFlexDuctExtremityAngle()
Method used to find the angle between the two connected extremities
parts in a flexible duct or part.
To compute this angle, you must
define which extremity is the origin of the computation. The moving algorithm is
applied from this reference axis until the second extremity and the angle is
computed from the z axis of the HVAC part and the moving frame orientation.
Signature
HVAC_Duct_Occurrence.ComputeFlexDuctExtremityAngle(ReferencePart : HVAC_Part_Occurrence, ANGLE : ANGLE) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
ReferencePart |
In |
|
HVAC_Part_Occurrence |
This
HVAC part must be one of the two extremities of an HVAC part
connected to a flexible duct or part. |
ANGLE |
Out |
|
ANGLE |
The
angle is considered in a clockwise direction along the line of
the alignment of the ReferencePart and can be
between -179.99 and 180 degrees. |
ReturnType
Integer
This Integer can return the following values:
- 0: The method succeeds.
- 1: HVAC_Part_Occurrence is rigid.
- 2: The input part (
ReferencePart) is not connected to
the route.
- 3: The other end of the flexible duct is not connected to the part.
Example
let flexAngle(ANGLE)
let rc(Integer)
let FlexibleDuctOcc(HVAC_Duct_Occurrence)
let HvaPartOcc(HVAC_Part_Occurrence)
if(FlexibleDuctOcc <> NULL AND HvaPartOcc <> NULL)
{
rc = FlexibleDuctOcc->ComputeFlexDuctExtremityAngle(HvaPartOcc, flexAngle)
}
if(rc == 0)
{
Trace(1, "The angle between two part connected is: ", flexAngle)
}
else if(rc == 1)
{
Trace(1, "The Object is called on rigid duct", "BR failed")
}
else if(rc == 2)
{
Trace(1, "the reference part is not connected to the route", "BR failed")
}
else if(rc == 3)
{
Trace(1, "The other end of flexible duct is not connected to part", "BR failed")
}
else if(rc == 4)
{
Trace(1, "Failed due to other reason", "BR failed")
}
HVAC_Duct_Occurrence.GetAttributeOnConnectedPorts()
Method used to read the port attributes (lengths) on the connected HVAC
parts.
Signature
HVAC_Duct_Occurrence.GetAttributeOnConnectedPorts(Linked Object : HVAC_Duct_Occurrence, Attribute : String, This Object Value : String, Linked Object Value : String) : Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Linked Object
|
In |
|
HVAC_Duct_Occurrence |
- |
Attribute
|
In |
|
String
|
The list of attributes comes from the
HVAC_PartPort object. |
This Object Value
|
Out |
|
String
|
- |
Linked Object Value
|
Out |
|
String
|
- |
ReturnType
Integer Return
code:
- 0: Attribute values successfully read.
- 1: Attribute not found on ThisObject.
- 2: Attribute not found on iOccurrence.
- 3: Invalid attribute.
HVAC_Duct_Occurrence.GetLineAC()
Function
allows you to find the architecture component of a part or a duct.
Signature
HVAC_Duct_Occurrence.GetLineAC() : LogicalOccurrence
ReturnType
LogicalOccurrence
Example
let facet3DOcc(ProductOccurrence)
let facet3DInst(VPMInstance)
let strSynchronizePhysical3D(String)
let listSpoolMember(list)
let HVAC_Spool_Occurrence1 (HVAC_Spool_Occurrence)
let LineItemOcc(LogicalOccurrence)
let SpoolMember_part(HVAC_Part_Occurrence)
let SpoolMember_pipe(HVAC_Pipe_Occurrence)
set facet3DOcc = ThisObject.Facet3D
if (facet3DOcc <> NULL )
{
set facet3DInst = facet3DOcc.Instance
}
set HVAC_Spool_Occurrence1 = facet3DOcc
if (HVAC_Spool_Occurrence1 <> NULL )
{
set listSpoolMember = HVAC_Spool_Occurrence1->GetSpoolMembers()
}
if( 0 < listSpoolMember->Size())
{
set SpoolMember_part = listSpoolMember[1]
set SpoolMember_pipe= listSpoolMember[1]
}
if(SpoolMember_part <> NULL)
{
set LineItemOcc = SpoolMember_pipe.GetLineAC()
}
else if(SpoolMember_pipe <> NULL)
{
set LineItemOcc = SpoolMember_pipe.GetLineAC()
}
if ( LineItemOcc <> NULL and facet3DInst <> NULL )
{
strSynchronizePhysical3D = LineItemOcc.GetAttributeString("V_description")
facet3DInst.SetAttributeString("V_description", strSynchronizePhysical3D)
Notify("Attribites in Physical 3D Description updated #", strSynchronizePhysical3D )
}
HVAC_Duct_Occurrence.GetAttributeOnConnectedPorts()
Method used to read the port attributes (lengths) on the connected HVAC
ducts.
Signature
HVAC_Duct_Occurrence.GetAttributeOnConnectedPorts(Linked Object : HVAC_Duct_Occurrence, Attribute : String, This Object Value : LENGTH, Linked Object Value : LENGTH) : Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Linked Object
|
In |
|
HVAC_Duct_Occurrence |
- |
Attribute
|
In |
|
String
|
The list of attributes comes from the
HVAC_PartPort object. |
This Object Value
|
Out |
|
LENGTH |
- |
Linked Object Value
|
Out |
|
LENGTH |
- |
HVAC_Duct_Occurrence.GetLineIDName()
Method used to read the line ID name.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Duct_Occurrence.GetLineIDName() : String
HVAC_Duct_Occurrence.GetLineIDObject()
Method used to return the line ID object.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Duct_Occurrence.GetLineIDObject() : HVAC_Line
HVAC_Duct_Occurrence.GetRelatedObjects()
Method used to get connected HVAC parts, which can be any of the following:
HVAC part, equipment with at least one HVAC port.
Example
let results (List)
let nb (Integer)
let inst (VPMInstance)
results = iOcc.GetRelatedObjects()
nb = results.Size()
inst = iOcc.Instance
if (NULL <> inst)
{
if (0 == nb) { ThisCheck.AddTupleFailedWithComment("Isolated Part.", inst) }
else { ThisCheck.AddTupleSucceeded(inst) }
}
HVAC_Duct_Occurrence.GetSpecName()
Method used to return the name of the spec set on the line ID of the
occurrence /instance in a string.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Duct_Occurrence.GetSpecName() : String
HVAC_Duct_Occurrence.GetSpecificationObject()
Function used to return the object of the specification.
Signature
HVAC_Duct_Occurrence.GetSpecificationObject() : EnsSpecification
ReturnType
EnsSpecification
HVAC_Duct_Occurrence.GetSpoolName()
Method used to return the spool name.
Signature
HVAC_Duct_Occurrence.GetSpoolName() : String
HVAC_Duct_Occurrence.GetSpoolObject()
Method used to return the spool object.
Signature
HVAC_Duct_Occurrence.GetSpoolObject() : HVAC_Spool_Occurrence
ReturnType
HVAC_Spool_Occurrence
HVAC_Duct_Occurrence.GetTwistStatus()
Method used to detect if the duct contains bend points that cannot be
manufactured.
-
Signature
HVAC_Duct_Occurrence.GetTwistStatus() : Boolean
HVAC_Flexible_Duct.Add3DPoint()
Lets
you add a list of 3D points in the current duct reference after given input node
index.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iListPoint |
In |
|
List |
List of the GSM point coordinates |
iIndex |
In |
|
Integer |
Points are are added after this input Index.
If you want to add a point before the first index, the value
must be "0". |
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let pBody(BodyFeature)
let pPoint(Point)
let NewPoint(Point)
let pGSMPoint(GSMPoint)
let pGSMPointCoord(GSMPointCoord)
let ListPoints(list)
let pPointType(PointType)
let NodeIndex(Integer)
let retCode(Integer)
let Validation(Boolean)
Validation = false
if(NULL <> FlexibleDuctRef)
{
//Add3DPoint
// create point
pBody = FlexibleDuctRef ->Find ("BodyFeature","",TRUE)
if (NULL <> pBody)
{
Trace (1, " Body retrieves : ",pBody.Name)
SetWorkingContext(pBody)
// Point_Test1
NewPoint = new("Point", "Point_Test1", pBody)
pPointType = "Coordinates"
set pGSMPoint = NewPoint
if (NULL <> pGSMPoint)
{
pGSMPoint.PointType = pPointType
set pGSMPointCoord = pGSMPoint
pGSMPointCoord.X = 100mm
pGSMPointCoord.Y = 200mm
pGSMPointCoord.Z = 300mm
pGSMPointCoord.Update()
}
Trace (1, " Body retrieves : ",NewPoint.Name)
ListPoints.Append(pGSMPoint)
//Point_Test2
NewPoint = new("Point", "Point_Test2", pBody)
pPointType = "Coordinates"
set pGSMPoint = NewPoint
if (NULL <> pGSMPoint)
{
pGSMPoint.PointType = pPointType
set pGSMPointCoord = pGSMPoint
pGSMPointCoord.X = 100mm
pGSMPointCoord.Y = 300mm
pGSMPointCoord.Z = 300mm
pGSMPointCoord.Update()
}
Trace(1, " Body retrieves : ",NewPoint.Name)
ListPoints.Append(pGSMPoint)
set NodeIndex = 0
set retCode = FlexibleDuctRef.Add3DPoint (ListPoints, NodeIndex)
if(0 == retCode)
{
Validation = true
Trace (1, "======Add3DPoint done successfullyh=======")
}
else
{
Validation = false
Trace (1, "======Add3DPoint FAILED=======")
}
}
}
HVAC_Flexible_Duct.GetBuildAlgorithm()
Lets
you find a build algorithm on flexible reference.
Signature
HVAC_Flexible_Duct.GetBuildAlgorithm(oBuildAlgorithm : CATEbm_BranchTypeEnum) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oBuildAlgorithm |
Out |
|
CATEbm_BranchTypeEnum |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let oBuildAlgo(CATEbm_BranchTypeEnum)
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef -> GetBuildAlgorithm(oBuildAlgo)
Message ("Get Build Algorithm: ", oBuildAlgo)
}
HVAC_Flexible_Duct.GetBuildMode()
Lets
you find a build mode on flexible reference.
Signature
HVAC_Flexible_Duct.GetBuildMode(oBuildMode : CATEbm_FlexBuildModeEnum) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oBuildMode |
Out |
|
CATEbm_FlexBuildModeEnum |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let oBuildMode(CATEbm_FlexBuildModeEnum)
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef->GetBuildMode(oBuildMode)
Message ("Get Build Mode: ", oBuildMode)
}
HVAC_Flexible_Duct.GetColor()
Lets you retrieve the color of the flexible duct from the geometric
feature.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oRed |
Out |
|
Integer |
Value between 0 and 255 |
oGreen |
Out |
|
Integer |
Value between 0 and 255 |
oBlue |
Out |
|
Integer |
Value between 0 and 255 |
Example
let Red(Integer)
let Green(Integer)
let Blue(Integer)
Red = 120
Green =180
Blue = 255
let R(Integer)
let G(Integer)
let B(Integer)
Message("SetColor Called")
prd.SetColor(Red, Green, Blue)
Message("GetColor Called")
prd.GetColor(R, G, B)
if( ( Red == R) and (Green == G) and ( Blue == B) )
{
Message("color set and get are equal ")
Message("color set ", Red ,Green , Blue)
Message("colorGet" ,R ,G , B)
}
else
{
Message("set color is different from get color ")
}
HVAC_Flexible_Duct.GetGlobalSlack()
Lets
you find the global slack on flexible reference.
Signature
HVAC_Flexible_Duct.GetGlobalSlack(oGlobalSlack : Real) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oGlobalSlack |
Out |
|
Real |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iGlobalSlack(Real)
let oGlobalSlack(Real)
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef -> GetGlobalSlack(oGlobalSlack)
Message ("Get Global Slack: ", oGlobalSlack)
}
HVAC_Flexible_Duct.GetLength()
Lets
you find the length on flexible reference.
Signature
HVAC_Flexible_Duct.GetLength(oLength : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oLength |
Out |
|
LENGTH |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iLength(Length)
let oLength(Length)
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef -> GetLength(oLength)
Message ("Get Length: ", oLength)
}
HVAC_Flexible_Duct.GetLocalSliceMode()
Lets
you find a local slice mode on flexible reference.
Signature
HVAC_Flexible_Duct.GetLocalSliceMode(iIndex : Integer, oLocalSliceMode : CATEbm_SlackAndLengthModeEnum) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
-
|
oLocalSliceMode |
Out |
|
CATEbm_SlackAndLengthModeEnum |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iLocalSliceMode(CATEbm_SlackAndLengthModeEnum)
let oLocalSliceMode(CATEbm_SlackAndLengthModeEnum)
let Index(Integer)
set Index = 2
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef -> GetLocalSliceMode(Index, oLocalSliceMode)
Message ("Get Length: ", oLocalSliceMode)
}
HVAC_Flexible_Duct.GetLocalSliceValue()
Lets
you find a local slice value on flexible reference.
Signature
HVAC_Flexible_Duct.GetLocalSliceValue(iIndex : Integer, oLocalSliceValue : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
-
|
oLocalSliceValue |
Out |
|
LENGTH |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iLocalSliceValue(Length)
let oLocalSliceValue(Length)
let Index(Integer)
set Index = 2
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef -> GetLocalSliceValue(Index, oLocalSliceValue)
Message ("Get Length: ", oLocalSliceValue)
}
HVAC_Flexible_Duct.GetMinimumBendRadius()
Lets
you find a minimum bend radius on a flexible reference.
Signature
HVAC_Flexible_Duct.GetMinimumBendRadius(oMinimumBendRadius : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oMinimumBendRadius |
Out |
|
LENGTH |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iMinBendRadius(Length)
let oMinBendRadius(Length)
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef -> GetMinimumBendRadius(oMinBendRadius)
Message ("Get Length: ", oMinBendRadius)
}
HVAC_Flexible_Duct.GetNodeType()
Lets
you find node types in current duct reference after given input node
index.
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let NodeType(HVACNodeType)
let NodeIndex(Integer)
let NodeIndexToRemove(Integer)
let ListNodeIndexToRemove(List)
let oReferenceBendRadius(Length)
NodeIndex = 2
if(NULL <> FlexibleDuctRef)
{
FlexibleDuctRef -> GetNodeType(NodeIndex, NodeType)
Message ("Node 2 Type:", NodeType)
}
HVAC_Flexible_Duct.GetOpacity()
Signature
HVAC_Flexible_Duct.GetOpacity(oOpacity : Integer)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOpacity |
Out |
|
Integer |
- |
HVAC_Flexible_Duct.RemoveNode()
Lets
you remove nodes present in the list of node index points.
Signature
HVAC_Flexible_Duct.RemoveNode(iListIndex : List) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iListIndex |
In |
|
List |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let NodeType(HVACNodeType)
let NodeIndex(Integer)
let NodeIndexToRemove(Integer)
let ListNodeIndexToRemove(List)
let oReferenceBendRadius(Length)
NodeIndex = 2
if(NULL <> FlexibleDuctRef)
{
NodeIndexToRemove = 2
ListNodeIndexToRemove.Append(NodeIndexToRemove)
NodeIndexToRemove = 3
ListNodeIndexToRemove.Append(NodeIndexToRemove)
FlexibleDuctRef -> RemoveNode(ListNodeIndexToRemove)
Message ("Removed Nodes:", ListNodeIndexToRemove)
}
HVAC_Flexible_Duct.SetBuildAlgorithm()
Lets
you set a build algorithm on flexible reference.
Signature
HVAC_Flexible_Duct.SetBuildAlgorithm(iBuildAlgorithm : CATEbm_BranchTypeEnum) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iBuildAlgorithm |
In |
|
CATEbm_BranchTypeEnum |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iBuildAlgo(CATEbm_BranchTypeEnum)
if(NULL <> FlexibleDuctRef)
{
iBuildAlgo = "CATEbm_FlexCurveFLX"
FlexibleDuctRef -> SetBuildAlgorithm(iBuildAlgo)
Message ("Set Build Algorithm: ", iBuildAlgo)
}
HVAC_Flexible_Duct.SetBuildMode()
Lets
you set a build mode on flexible reference.
Signature
HVAC_Flexible_Duct.SetBuildMode(iBuildMode : CATEbm_FlexBuildModeEnum) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iBuildMode |
In |
|
CATEbm_FlexBuildModeEnum |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iBuildMode(CATEbm_FlexBuildModeEnum)
if(NULL <> FlexibleDuctRef)
{
iBuildMode = "CATEbm_BMLength"
FlexibleDuctRef->SetBuildMode(iBuildMode)
Message ("Set Build Mode: ", iBuildMode)
}
HVAC_Flexible_Duct.SetColor()
Lets you set the color on the flexible duct from the geometric
feature.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iRed |
In |
|
Integer |
Value between 0 and 255 |
iGreen |
In |
|
Integer |
Value between 0 and 255 |
iBlue |
In |
|
Integer |
Value between 0 and 255 |
Example
let Red(Integer)
let Green(Integer)
let Blue(Integer)
Red = 120
Green =180
Blue = 255
let R(Integer)
let G(Integer)
let B(Integer)
Message("SetColor Called")
prd.SetColor(Red, Green, Blue)
Message("GetColor Called")
prd.GetColor(R, G, B)
if( ( Red == R) and (Green == G) and ( Blue == B) )
{
Message("color set and get are equal ")
Message("color set ", Red ,Green , Blue)
Message("colorGet" ,R ,G , B)
}
else
{
Message("set color is different from get color ")
}
HVAC_Flexible_Duct.SetGlobalSlack()
Lets
you set a global slack on flexible reference.
Signature
HVAC_Flexible_Duct.SetGlobalSlack(iGlobalSlack : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iGlobalSlack |
In |
|
Real |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iGlobalSlack(Real)
let oGlobalSlack(Real)
if(NULL <> FlexibleDuctRef)
{
set iGlobalSlack = 10
FlexibleDuctRef -> SetGlobalSlack(iGlobalSlack)
Message ("Set Global Slack: ", iGlobalSlack)
}
HVAC_Flexible_Duct.SetLength()
Lets
you set a length on flexible reference.
Signature
HVAC_Flexible_Duct.SetLength(iLength : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iLength |
In |
|
LENGTH |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iLength(Length)
let oLength(Length)
if(NULL <> FlexibleDuctRef)
{
set iLength = 2000mm
FlexibleDuctRef -> SetLength(iLength)
Message ("Set Length: ", iLength)
}
HVAC_Flexible_Duct.SetLocalSliceMode()
Lets
you set a local slice mode on flexible reference.
Signature
HVAC_Flexible_Duct.SetLocalSliceMode(iIndex : Integer, iLocalSliceMode : CATEbm_SlackAndLengthModeEnum) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
-
|
iLocalSliceMode |
In |
|
CATEbm_SlackAndLengthModeEnum |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iLocalSliceMode(CATEbm_SlackAndLengthModeEnum)
let oLocalSliceMode(CATEbm_SlackAndLengthModeEnum)
let Index(Integer)
set Index = 2
if(NULL <> FlexibleDuctRef)
{
iLocalSliceMode = "IgnoreSlack"
FlexibleDuctRef -> SetLocalSliceMode(Index, iLocalSliceMode)
Message ("Set Length: ", iLocalSliceMode)
}
HVAC_Flexible_Duct.SetLocalSliceValue()
Lets
you set a local slice mode on flexible reference.
Signature
HVAC_Flexible_Duct.SetLocalSliceValue(iIndex : Integer, iLocalSliceValue : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
-
|
iLocalSliceValue |
In |
|
LENGTH |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iLocalSliceValue(Length)
let oLocalSliceValue(Length)
let Index(Integer)
set Index = 2
if(NULL <> FlexibleDuctRef)
{
iLocalSliceValue = 100mm
FlexibleDuctRef -> SetLocalSliceValue(Index, iLocalSliceValue)
Message ("Set Length: ", iLocalSliceValue)
}
HVAC_Flexible_Duct.SetMinimumBendRadius()
Lets
you set a minimum bend radius on a flexible reference.
Signature
HVAC_Flexible_Duct.SetMinimumBendRadius(iMinimumBendRadius : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iMinimumBendRadius |
In |
|
LENGTH |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
Example
let FlexibleDuctRef(HVAC_Flexible_Duct) //variable containing the flexible duct input
let iMinBendRadius(Length)
let oMinBendRadius(Length)
if(NULL <> FlexibleDuctRef)
{
set iMinBendRadius = 20mm
FlexibleDuctRef -> SetMinimumBendRadius(iMinBendRadius)
Message ("Set Length: ", iMinBendRadius)
}
HVAC_Flexible_Duct.SetOpacity()
Signature
HVAC_Flexible_Duct.SetOpacity(iOpacity : Integer)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOpacity |
In |
|
Integer |
- |
HVAC_Flexible_Duct.SetRouteAttributeReal()
Lets
you modify a route attribute that cannot be accessed directly when its type is real.
Signature
HVAC_Flexible_Duct.SetRouteAttributeReal(AttrName : String, AttrValue : Real)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
AttrName |
In |
|
String |
This
applies to V_ReferenceBendRadius. |
AttrValue |
In |
|
Real |
-
|
Example
let ReferenceBendRadius(LENGTH)
ReferenceBendRadius = 200.0mm
DuctRef.SetRouteAttributeReal("V_ReferenceBendRadius", ReferenceBendRadius)
HVAC_Flexible_Duct_Inst.SetNewReference()
Updates
existing flexible duct properties from raw material. It creates a link between duct
and raw material. It copies material name from raw material to duct.
Signature
HVAC_Flexible_Duct_Inst.SetNewReference(VPMReference : VPMReference) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
VPMReference |
In |
|
VPMReference |
-
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
HVAC_Insulation.GetColor()
Lets you retrieve the color of the insulation from the geometric
feature.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oRed |
Out |
|
Integer |
Value between 0 and 255 |
oGreen |
Out |
|
Integer |
Value between 0 and 255 |
oBlue |
Out |
|
Integer |
Value between 0 and 255 |
Example
let Red(Integer)
let Green(Integer)
let Blue(Integer)
Red = 120
Green =180
Blue = 255
let R(Integer)
let G(Integer)
let B(Integer)
Message("SetColor Called")
prd.SetColor(Red, Green, Blue)
Message("GetColor Called")
prd.GetColor(R, G, B)
if( ( Red == R) and (Green == G) and ( Blue == B) )
{
Message("color set and get are equal ")
Message("color set ", Red ,Green , Blue)
Message("colorGet" ,R ,G , B)
}
else
{
Message("set color is different from get color ")
}
HVAC_Insulation.GetOpacity()
Signature
HVAC_Insulation.GetOpacity(oOpacity : Integer)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOpacity |
Out |
|
Integer |
- |
HVAC_Insulation.SetColor()
Lets you set the color of the insulation on the geometric
feature.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iRed |
In |
|
Integer |
Value between 0 and 255 |
iGreen |
In |
|
Integer |
Value between 0 and 255 |
iBlue |
In |
|
Integer |
Value between 0 and 255 |
Example
let Red(Integer)
let Green(Integer)
let Blue(Integer)
Red = 120
Green =180
Blue = 255
let R(Integer)
let G(Integer)
let B(Integer)
Message("SetColor Called")
prd.SetColor(Red, Green, Blue)
Message("GetColor Called")
prd.GetColor(R, G, B)
if( ( Red == R) and (Green == G) and ( Blue == B) )
{
Message("color set and get are equal ")
Message("color set ", Red ,Green , Blue)
Message("colorGet" ,R ,G , B)
}
else
{
Message("set color is different from get color ")
}
HVAC_Insulation.SetOpacity()
Signature
HVAC_Insulation.SetOpacity(iOpacity : Integer)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOpacity |
In |
|
Integer |
- |
HVAC_Insulation_Occurrence.GetCoveredObject()
Method used to return the covered object.
Signature
HVAC_Insulation_Occurrence.GetCoveredObject() : ProductOccurrence
ReturnType
ProductOccurrence
HVAC_Insulation_Occurrence.GetLineIDName()
Method used to read the line ID name.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Insulation_Occurrence.GetLineIDName() : String
HVAC_Insulation_Occurrence.GetLineIDObject()
Method used to return the line ID object.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Insulation_Occurrence.GetLineIDObject() : HVAC_Line
HVAC_Insulation_Occurrence.GetSpecName()
Method used to return the name of the spec set on the line ID of the
occurrence /instance in a string.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Insulation_Occurrence.GetSpecName() : String
HVAC_Insulation_Occurrence.GetSpecificationObject()
Function used to return the object of the specification.
Signature
HVAC_Insulation_Occurrence.GetSpecificationObject() : EnsSpecification
ReturnType
EnsSpecification
HVAC_Insulation_Occurrence.GetSpoolName()
Method used to return the spool name.
Signature
HVAC_Insulation_Occurrence.GetSpoolName() : String
HVAC_Insulation_Occurrence.GetSpoolObject()
Method used to return the spool object.
Signature
HVAC_Insulation_Occurrence.GetSpoolObject() : HVAC_Spool_Occurrence
ReturnType
HVAC_Spool_Occurrence
HVAC_Part.CreateHvacPort()
Lets you create HVAC ports.
Signature
HVAC_Part.CreateHvacPort(X_OriginPt : Real, Y_OriginPt : Real, Z_OriginPt : Real, X_AlignDir : Real, Y_AlignDir : Real, Z_AlignDir : Real, X_OrientDir : Real, Y_OrientDir : Real, Z_OrientDir : Real, PortType : HvacPort_Types, PortName : String, X_OffsetPoint : Real [, Y_OffsetPoint : Real, Z_OffsetPoint : Real]) : HVAC_PartPort
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
X_OriginPt |
In |
|
Real |
Defines the center point of the port: X
coordinate |
Y_OriginPt |
In |
|
Real |
Defines the center point of the port: Y
coordinate |
Z_OriginPt |
In |
|
Real |
Defines the center point of the port: Z
coordinate |
X_AlignDir |
In |
|
Real |
Defines the alignment direction: X
coordinate |
Y_AlignDir |
In |
|
Real |
Defines the alignment direction: Y coordinate
|
Z_AlignDir |
In |
|
Real |
Defines the alignment direction: Z coordinate
|
X_OrientDir |
In |
|
Real |
Defines the orientation direction: X
coordinate |
Y_OrientDir |
In |
|
Real |
Defines the orientation direction: Y
coordinate |
Z_OrientDir |
In |
|
Real |
Defines the orientation direction: Z
coordinate |
PortType |
In |
|
HvacPort_Types |
Defines the type of the port from the
predefined list in HVACPort_Types |
PortName |
In |
|
String |
Defines the name of the port |
X_OffsetPoint |
In |
No |
Real |
If the port type is two points part or hole
port, you must define the offset from the center of the port
|
Y_OffsetPoint |
In |
No |
Real |
- |
Z_OffsetPoint |
In |
No |
Real |
- |
Example
/*To create a two point hole port on hvac part*/
prd is Hvac_Part
let X_OPt(Real)
let Y_OPt(Real)
let Z_OPt(Real)
X_OPt=0
Y_OPt=0
Z_OPt=0
let X_alignDir(Real)
let Y_alignDir(Real)
let Z_alignDir(Real)
X_alignDir=0
Y_alignDir=0
Z_alignDir=2
let X_orientDir(Real)
let Y_orientDir(Real)
let Z_orientDir(Real)
X_orientDir=0
Y_orientDir=2
Z_orientDir=0
let X_offsetpt(Real)
let Y_offsetpt(Real)
let Z_offsetpt(Real)
X_offsetpt=2
Y_offsetpt=0
Z_offsetpt=0
let porttype(HvacPort_Types)
porttype= "CATHva2HolePort"
let portName(String)
portName = "test1"
let port(Hvac_Port)
Message("CreateHvacPortCalled")
port = prd. CreateHvacPort(X_OPt, Y_OPt, Z_OPt, X_alignDir, Y_alignDir, Z_alignDir, X_orientDir, Y_orientDir, Z_orientDir, porttype,
portName, X_offsetpt,Y_offsetpt,Z_offsetpt)
HVAC_Part_Occurrence.GetAttributeOnConnectedPorts()
Method used to read the attributes (lengths) on the connected HVAC parts.
Signature
HVAC_Part_Occurrence.GetAttributeOnConnectedPorts(Linked Object : HVAC_Part_Occurrence, Attribute : String, This Object Value : String, Linked Object Value : String) : Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Linked Object
|
In |
Yes |
HVAC_Part_Occurrence |
|
Attribute
|
In |
Yes |
String
|
The list of attributes comes from the
HVAC_PartPort object. |
This Object Value
|
Out |
Yes |
String
|
|
Linked Object Value
|
Out |
Yes |
String
|
|
HVAC_Part_Occurrence.GetAttributeOnConnectedPorts()
Method used to read the attributes (lengths) on the connected HVAC parts.
Signature
HVAC_Part_Occurrence.GetAttributeOnConnectedPorts(Linked Object : HVAC_Part_Occurrence, Attribute : String, This Object Value : LENGTH, Linked Object Value : LENGTH) : Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Linked Object
|
In |
Yes |
HVAC_Part_Occurrence |
|
Attribute
|
In |
Yes |
String
|
The list of attributes comes from the
HVAC_PartPort object. |
This Object Value
|
Out |
Yes |
LENGTH |
|
Linked Object Value
|
Out |
Yes |
LENGTH |
|
HVAC_Part_Occurrence.GetLineIDName()
Method used to read the line ID name.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Part_Occurrence.GetLineIDName() : String
HVAC_Part_Occurrence.GetLineIDObject()
Method used to return the line ID object.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Part_Occurrence.GetLineIDObject() : HVAC_Line
HVAC_Part_Occurrence.GetRelatedObjects()
Method used to return the connected objects.
HVAC_Part_Occurrence.GetSpecName()
Method used to return the name of the spec set on the line ID of the
occurrence /instance in a string.
Note:
The items must be loaded in an RFLP session.
Signature
HVAC_Part_Occurrence.GetSpecName() : String
HVAC_Part_Occurrence.GetSpecificationObject()
Function used to return the object of the specification.
Signature
HVAC_Part_Occurrence.GetSpecificationObject() : EnsSpecification
ReturnType
EnsSpecification
HVAC_Part_Occurrence.GetSpoolName()
Method used to return the spool name.
Signature
HVAC_Part_Occurrence.GetSpoolName() : String
HVAC_Part_Occurrence.GetSpoolObject()
Method used to return the spool object.
Signature
HVAC_Part_Occurrence.GetSpoolObject() : HVAC_Spool_Occurrence
ReturnType
HVAC_Spool_Occurrence
HVAC_Port.CheckCompatibility()
Signature
HVAC_Port.CheckCompatibility(Port Owner Occurrence : ProductOccurrence, Second Port : VPMPort, Second Port Owner Occurrence : ProductOccurrence, Use Only Compatibility Rule Table : Boolean, List of Additional Specifications : List, Parameters whose check failed : List) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
Port Owner Occurrence |
In |
|
ProductOccurrence |
- |
Second Port |
In |
|
VPMPort |
- |
Second Port Owner
Occurrence |
In |
|
ProductOccurrence |
- |
Use Only Compatibility Rule
Table |
In |
|
Boolean |
- |
List of Additional
Specifications |
In |
|
List |
- |
Parameters whose check
failed |
Out |
|
List |
- |
HVAC_Port.GetOffsetPort()
This
function allows you to find the publication of an offset port if the port is a
two-point part port or a two-point hole port.
Signature
HVAC_Port.GetOffsetPort(OffsetPort : PLMPort) : Boolean
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
OffsetPort |
Out |
|
PLMPort |
-
|
ReturnType
Boolean
This Boolean can return two values:
- True: the function succeeds.
- False: the function fails.
Example
let PLM_port(PLMPort)
let hva_port(HVAC_Port)
let list_child_Part(List)
let index(Integer)
let port_types(HVACPort_Types)
let bStatus(Boolean)
let oPLMPort(PLMPort)
let HVAPart(HVAC_Part_Occurrence)
if (HVAPart <> NULL)
{
list_child_Part = HVAPart.Children
for index=1 while index <= list_child_Part->Size()
{
set PLM_port = list_child_Part[index]
if(PLM_port <> NULL)
{
Trace(1, "Got the PLM Port", "")
set hva_port = PLM_port
if(hva_port <> NULL)
{
Trace(1, "Got the HVAC part Port", "")
bStatus = hva_port->GetPortType(port_types)
if(bStatus == true)
{
Trace(1, "Getting port type successfully", "")
Trace(1, "Type is: ", port_types)
}
bStatus = hva_port->GetOffsetPort(oPLMPort)
if(oPLMPort <> NULL AND bStatus == true)
{
Trace(1, "PLM Port received from method", "")
}
}
}
}
}
HVAC_Port.GetPortType()
This
function allows you to find the type of the selected port.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
PortType |
Out |
|
HvacPort_Types |
-
|
ReturnType
Boolean
This Boolean can return two values:
- True: the function succeeds.
- False: the function fails.
Example
let PLM_port(PLMPort)
let hva_port(HVAC_Port)
let list_child_Part(List)
let index(Integer)
let port_types(HVACPort_Types)
let bStatus(Boolean)
let oPLMPort(PLMPort)
let HVAPart(HVAC_Part_Occurrence)
if (HVAPart <> NULL)
{
list_child_Part = HVAPart.Children
for index=1 while index <= list_child_Part->Size()
{
set PLM_port = list_child_Part[index]
if(PLM_port <> NULL)
{
Trace(1, "Got the PLM Port", "")
set hva_port = PLM_port
if(hva_port <> NULL)
{
Trace(1, "Got the HVAC part Port", "")
bStatus = hva_port->GetPortType(port_types)
if(bStatus == true)
{
Trace(1, "Getting port type successfully", "")
Trace(1, "Type is: ", port_types)
}
bStatus = hva_port->GetOffsetPort(oPLMPort)
if(oPLMPort <> NULL AND bStatus == true)
{
Trace(1, "PLM Port received from method", "")
}
}
}
}
}
HVAC_Port.SetPortAttributeReal()
Lets you modify the port attribute when its type is real.
Signature
HVAC_Port.SetPortAttributeReal(AttrName : String, AttrValue : Real)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
AttrName |
In |
|
String |
Name of the attribute you want to modify
|
AttrValue |
In |
|
Real |
New value you want to set on this attribute
|
HVAC_Port.SetPortAttributeString()
Lets you modify the port attribute when its type is string.
Signature
HVAC_Port.SetPortAttributeString(AttrName : String, AttrValue : String)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
AttrName |
In |
|
String |
Name of the attribute you want to modify
|
AttrValue |
In |
|
String |
New value you want to set on this attribute
|
HVAC_Rigid_Duct.Add3DPoint()
Lets you add a list of points.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iListPoint |
In |
|
List |
List of the GSM point coordinates |
iIndex |
In |
|
Integer |
Points are are added after this input Index.
If you want to add a point before the first index, the value
must be "0". |
HVAC_Rigid_Duct.GetColor()
Lets you retrieve the color of the rigid duct from the geometric
feature.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oRed |
Out |
|
Integer |
Value between 0 and 255 |
oGreen |
Out |
|
Integer |
Value between 0 and 255 |
oBlue |
Out |
|
Integer |
Value between 0 and 255 |
Example
let Red(Integer)
let Green(Integer)
let Blue(Integer)
Red = 120
Green =180
Blue = 255
let R(Integer)
let G(Integer)
let B(Integer)
Message("SetColor Called")
prd.SetColor(Red, Green, Blue)
Message("GetColor Called")
prd.GetColor(R, G, B)
if( ( Red == R) and (Green == G) and ( Blue == B) )
{
Message("color set and get are equal ")
Message("color set ", Red ,Green , Blue)
Message("colorGet" ,R ,G , B)
}
else
{
Message("set color is different from get color ")
}
HVAC_Rigid_Duct.GetDefaultBendRadius()
Signature
HVAC_Rigid_Duct.GetDefaultBendRadius(oDefaultBendRadius : LENGTH)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oDefaultBendRadius |
Out |
|
LENGTH |
The default bend radius value existing on the
current route. |
HVAC_Rigid_Duct.GetMinimunStraightLength()
Signature
HVAC_Rigid_Duct.GetMinimunStraightLength(oMinimumStraightLength : LENGTH)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oMinimumStraightLength |
Out |
|
LENGTH |
Minimum straight length value on the route.
|
HVAC_Rigid_Duct.GetNodeBendRadius()
Signature
HVAC_Rigid_Duct.GetNodeBendRadius(iIndex : Integer, oRadius : LENGTH)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
Node index at which the user needs a bend
radius. |
oRadius |
Out |
|
LENGTH |
Node bend radius value at existing node index.
|
HVAC_Rigid_Duct.GetNodeType()
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
- |
oEnumNodeType |
Out |
|
HvacNodeType |
CATHvaDuctPortPoint,
CATHvaDuctDirectionalPoint, CATHvaDuctComputedPoint,
CATHvaDuct3DPoint, CATHvaParallelPoint |
HVAC_Rigid_Duct.GetOpacity()
Signature
HVAC_Rigid_Duct.GetOpacity(oOpacity : Integer)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oOpacity |
Out |
|
Integer |
- |
HVAC_Rigid_Duct.GetSectionOrientation()
Signature
HVAC_Rigid_Duct.GetSectionOrientation(oEnumOrientationType : HvacOrientation)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
oEnumOrientationType |
Out |
|
HvacOrientation |
CATHvaDuctVerticalUp, CATHvaDuctVerticalDown,
CATHvaDuctHorizontalLeft, CATHvaDuctHorizontalRight |
HVAC_Rigid_Duct.RemoveNode()
Lets you remove a list of nodes from the reference route.
Signature
HVAC_Rigid_Duct.RemoveNode(iListIndex : List) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iListIndex |
In |
|
List |
List of node index positions that need to be
removed from the reference route |
HVAC_Rigid_Duct.ResetNodeBendRadiustoDefault()
Signature
HVAC_Rigid_Duct.ResetNodeBendRadiustoDefault(iIndex : Integer)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
Node index at which the user resets the bend
radius to the default bend radius. |
HVAC_Rigid_Duct.SetColor()
Lets you set the color of the rigid duct from the geometric
feature.
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iRed |
In |
|
Integer |
Value between 0 and 255 |
iGreen |
In |
|
Integer |
Value between 0 and 255 |
iBlue |
In |
|
Integer |
Value between 0 and 255 |
Example
let Red(Integer)
let Green(Integer)
let Blue(Integer)
Red = 120
Green =180
Blue = 255
let R(Integer)
let G(Integer)
let B(Integer)
Message("SetColor Called")
prd.SetColor(Red, Green, Blue)
Message("GetColor Called")
prd.GetColor(R, G, B)
if( ( Red == R) and (Green == G) and ( Blue == B) )
{
Message("color set and get are equal ")
Message("color set ", Red ,Green , Blue)
Message("colorGet" ,R ,G , B)
}
else
{
Message("set color is different from get color ")
}
HVAC_Rigid_Duct.SetDefaultBendRadius()
Signature
HVAC_Rigid_Duct.SetDefaultBendRadius(iDefaultBendRadius : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iDefaultBendRadius |
In |
|
LENGTH |
Default bend radius value. |
HVAC_Rigid_Duct.SetMinimunStraightLength()
Signature
HVAC_Rigid_Duct.SetMinimunStraightLength(iMinimunStraightLength : LENGTH)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iMinimunStraightLength |
In |
|
LENGTH |
Minimum straight length value on the route.
|
HVAC_Rigid_Duct.SetNodeBendRadius()
Signature
HVAC_Rigid_Duct.SetNodeBendRadius(iIndex : Integer, iRadius : LENGTH) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iIndex |
In |
|
Integer |
Node index at which the user needs to set a
bend radius. |
iRadius |
In |
|
LENGTH |
Node bend radius value at existing node index.
|
HVAC_Rigid_Duct.SetOpacity()
Signature
HVAC_Rigid_Duct.SetOpacity(iOpacity : Integer)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iOpacity |
In |
|
Integer |
- |
HVAC_Rigid_Duct.SetSectionOrientation()
Signature
HVAC_Rigid_Duct.SetSectionOrientation(iEnumOrientation : HvacOrientation)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
iEnumOrientation |
In |
|
HvacOrientation |
CATHvaDuctVerticalUp, CATHvaDuctVerticalDown,
CATHvaDuctHorizontalLeft, CATHvaDuctHorizontalRight |
HVAC_Rigid_Duct.SetShape()
Signature
HVAC_Rigid_Duct.SetShape(V_Shape_Enum : V_Shape_Enum)
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
V_Shape_Enum |
In |
|
V_Shape_Enum |
Enum is already defined in metadata as Circle,
Ellipse, Rectangle, or Flat Oval. |
HVAC_Rigid_Duct_Inst.PropagateReferenceToGeometry()
Launches PLM Update to propagate attribute, apply and update geometry
as per the shape and launch geometric update. If any geometric error appears, then
this method will try to correct the issue and for some issues, it returns the
error.
Signature
HVAC_Rigid_Duct_Inst.PropagateReferenceToGeometry() : Integer
Important Note
Regarding the following functions:
- Add3Point()
- RemoveNode()
- GetNodeType()
- SetDefaultBendRadius()
- GetDefaultBendRadius()
- SetNodeBendRadius()
- GetNodeBendRadius()
- ResetNodeBendRadiustoDefault()
- SetMinimumStraightLength()
- GetMinimumStraightLength()
- PropagateReferenceToGeometry()
- SetNewReference()
If you call these functions, then only PLM attributes are updated, but it does
not update the geometry, then it may cause or not check build break in the
geometry. After having completed all the modified routes functionality by
calling these functions, its user responsibility to call the
PropagateReferenceToGeometry() function at the end to update the geometry. This
function correct bad values internally if it cause some build break or other bad
issues.
HVAC_Rigid_Duct_Inst.SetNewReference()
Updates existing rigid duct properties from raw material. It creates a
link between duct and raw material. It copies material name from raw material to
duct.
Signature
HVAC_Rigid_Duct_Inst.SetNewReference(VPMReference : VPMReference) : Integer
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
VPMReference |
In |
|
VPMReference |
VPMReference of the route filtered from the
Data Setup or provided by the user as input from which attributes need
to be copied. If the input VPMReference is not NULL, then:
- NewFrom
-> Reuse or,
- NewFrom
-> ReuseorNewReference or
- NewFrom
-> NewReference
If input VPMReference is NULL, then NewFrom
-> NewReference
|
ReturnType
Integer
The
result values are as follows:
- 0: the method succeeds
- 1: the method failed
PLMEnsRefEquipment.CreateHvacPort()
Lets you create HVAC ports.
Signature
PLMEnsRefEquipment.CreateHvacPort(X_OriginPt : Real, Y_OriginPt : Real, Z_OriginPt : Real, X_AlignDir : Real, Y_AlignDir : Real, Z_AlignDir : Real, X_OrientDir : Real, Y_OrientDir : Real, Z_OrientDir : Real, PortType : HvacPort_Types, PortName : String, X_OffsetPoint : Real [, Y_OffsetPoint : Real, Z_OffsetPoint : Real]) : HVAC_PartPort
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
X_OriginPt |
In |
|
Real |
Defines the center point of the port: X
coordinate |
Y_OriginPt |
In |
|
Real |
Defines the center point of the port: Y
coordinate |
Z_OriginPt |
In |
|
Real |
Defines the center point of the port: Z
coordinate |
X_AlignDir |
In |
|
Real |
Defines the alignment direction: X
coordinate |
Y_AlignDir |
In |
|
Real |
Defines the alignment direction: Y coordinate
|
Z_AlignDir |
In |
|
Real |
Defines the alignment direction: Z coordinate
|
X_OrientDir |
In |
|
Real |
Defines the orientation direction: X
coordinate |
Y_OrientDir |
In |
|
Real |
Defines the orientation direction: Y
coordinate |
Z_OrientDir |
In |
|
Real |
Defines the orientation direction: Z
coordinate |
PortType |
In |
|
HvacPort_Types |
Defines the type of the port from the
predefined list in HvacPort_Types |
PortName |
In |
|
String |
Defines the name of the port |
X_OffsetPoint |
In |
|
Real |
If the port type is two points part or hole
port, you must define the offset from the center of the port
|
Y_OffsetPoint |
In |
No |
Real |
- |
Z_OffsetPoint |
In |
No |
Real |
- |
Example
/*To create a two point hole port on hvac part*/
prd is Hvac_Part
let X_OPt(Real)
let Y_OPt(Real)
let Z_OPt(Real)
X_OPt=0
Y_OPt=0
Z_OPt=0
let X_alignDir(Real)
let Y_alignDir(Real)
let Z_alignDir(Real)
X_alignDir=0
Y_alignDir=0
Z_alignDir=2
let X_orientDir(Real)
let Y_orientDir(Real)
let Z_orientDir(Real)
X_orientDir=0
Y_orientDir=2
Z_orientDir=0
let X_offsetpt(Real)
let Y_offsetpt(Real)
let Z_offsetpt(Real)
X_offsetpt=2
Y_offsetpt=0
Z_offsetpt=0
let porttype(HvacPort_Types)
porttype= "CATHva2HolePort"
let portName(String)
portName = "test1"
let port(Hvac_Port)
Message("CreateHvacPortCalled")
port = prd. CreateHvacPort(X_OPt, Y_OPt, Z_OPt, X_alignDir, Y_alignDir, Z_alignDir, X_orientDir, Y_orientDir, Z_orientDir, porttype,
portName, X_offsetpt,Y_offsetpt,Z_offsetpt)
SharedEquipmentPart.CreateHvacPort()
Lets you create HVAC ports.
Signature
SharedEquipmentPart.CreateHvacPort(X_OriginPt : Real, Y_OriginPt : Real, Z_OriginPt : Real, X_AlignDir : Real, Y_AlignDir : Real, Z_AlignDir : Real, X_OrientDir : Real, Y_OrientDir : Real, Z_OrientDir : Real, PortType : HvacPort_Types, PortName : String, X_OffsetPoint : Real [, Y_OffsetPoint : Real, Z_OffsetPoint : Real]) : HVAC_PartPort
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
X_OriginPt |
In |
|
Real |
Defines the center point of the port: X
coordinate |
Y_OriginPt |
In |
|
Real |
Defines the center point of the port: Y
coordinate |
Z_OriginPt |
In |
|
Real |
Defines the center point of the port: Z
coordinate |
X_AlignDir |
In |
|
Real |
Defines the alignment direction: X
coordinate |
Y_AlignDir |
In |
|
Real |
Defines the alignment direction: Y coordinate
|
Z_AlignDir |
In |
|
Real |
Defines the alignment direction: Z coordinate
|
X_OrientDir |
In |
|
Real |
Defines the orientation direction: X
coordinate |
Y_OrientDir |
In |
|
Real |
Defines the orientation direction: Y
coordinate |
Z_OrientDir |
In |
|
Real |
Defines the orientation direction: Z
coordinate |
PortType |
In |
|
HvacPort_Types |
Defines the type of the port from the
predefined list in HvacPort_Types |
PortName |
In |
|
String |
Defines the name of the port |
X_OffsetPoint |
In |
|
Real |
If the port type is two points part or hole
port, you must define the offset from the center of the port
|
Y_OffsetPoint |
In |
No |
Real |
- |
Z_OffsetPoint |
In |
No |
Real |
- |
Example
/*To create a two point hole port on hvac part*/
prd is Hvac_Part
let X_OPt(Real)
let Y_OPt(Real)
let Z_OPt(Real)
X_OPt=0
Y_OPt=0
Z_OPt=0
let X_alignDir(Real)
let Y_alignDir(Real)
let Z_alignDir(Real)
X_alignDir=0
Y_alignDir=0
Z_alignDir=2
let X_orientDir(Real)
let Y_orientDir(Real)
let Z_orientDir(Real)
X_orientDir=0
Y_orientDir=2
Z_orientDir=0
let X_offsetpt(Real)
let Y_offsetpt(Real)
let Z_offsetpt(Real)
X_offsetpt=2
Y_offsetpt=0
Z_offsetpt=0
let porttype(HvacPort_Types)
porttype= "CATHva2HolePort"
let portName(String)
portName = "test1"
let port(Hvac_Port)
Message("CreateHvacPortCalled")
port = prd. CreateHvacPort(X_OPt, Y_OPt, Z_OPt, X_alignDir, Y_alignDir, Z_alignDir, X_orientDir, Y_orientDir, Z_orientDir, porttype,
portName, X_offsetpt,Y_offsetpt,Z_offsetpt)
CATHvaModeler\CATHvaModelerRsc.m\src\resources\msgcatalog\CATPackageHVAC_Physical.CATNls
product []
SharedEquipmentPart.CreateHvacReplicatePort()
Lets
you replicate HVAC ports.
HVAC_Spool_Occurrence.GetSpoolMembers()
Method used to return the spool members.
Signature
HVAC_Spool_Occurrence.GetSpoolMembers() : List
HVAC_Spool_Occurrence.GetSpoolMode()
Method used to return the spool mode.
Signature
HVAC_Spool_Occurrence.GetSpoolMode() : HVACSpool_Mode
ReturnType
HVACSpool_Mode
PLMEnsRefEquipment.CreateHvacReplicatePort()
Lets
you replicate HVAC ports.
VPMReference.CreateHvacPortOnReference()
Signature
VPMReference.CreateHvacPortOnReference(PortPtOrigin : GSMPoint, AlignDir : Direction, OrientDir : Direction, PortType : HVAC_PartPort, PortName : String, OffsetPt : GSMPoint]) : HVAC_PartPort
Arguments
| Name |
Input/Output |
Required? |
Type |
Comment |
PortPtOrigin |
In |
|
GSMPoint |
- |
AlignDir |
In |
|
Direction |
- |
OrientDir |
In |
|
Direction |
- |
PortType |
In |
|
HvacPort_Types |
- |
PortName |
In |
|
String |
- |
OffsetPt |
In |
|
GSMPoint |
- |
Example
let prd(VPMReference)
let pGSMPoint_1(GSMPoint)
let pGSMPoint_2(GSMPoint)
let pGSMPointCoord(GSMPointCoord)
let DirectionAlign(Direction)
let DirectionOrient(Direction)
let pPoint(Point)
let pPointOffset(Point)
let pPointType(PointType)
let pBody(BodyFeature)
pPointType = "Coordinates"
let NameProduct(String)
NameProduct = prd.Name
if("Physical Product00000002_95E5D97B-0000-1C0C-5E0DB5C000044475" == NameProduct)
{
pBody = prd->Find ("BodyFeature","",TRUE)
if (NULL <> pBody)
{
Trace(1, " Body retrieved : ",pBody.Name)
let porttype(HvacPort_Types)
porttype= "CATHvaPartPort"
/* Part Port, Direct */
/* =======================*/
let portName(String)
portName = "HVA_Port_10_Part_Direct"
SetWorkingContext(pBody)
let port(HVAC_Port)
pPoint = pBody->Find("Point","x.Name==\"Point_01\"",TRUE)
set pGSMPoint_1 = pPoint
pGSMPoint_2 = NULL
DirectionAlign = direction(1mm, 0mm, 0mm)
DirectionOrient = direction(0mm, 0mm, 1mm)
port = prd.CreateHvacPortOnReference(pGSMPoint_1, DirectionAlign, DirectionOrient, porttype, portName, pGSMPoint_2)
if (NULL == port )
{
Message("Creation FAIL")
}
pBody.Update()
}
}
|