Piping_Insulation_Occurrence.GetCoveredObject()Piping_Insulation_Occurrence.GetLineIDName()Piping_Insulation_Occurrence.GetLineIDObject()Piping_Insulation_Occurrence.GetSpecName()Function used to return the name of the spec set on the line ID of the occurrence /instance in a string. If it is an insulation, the name of the insulation spec is returned. Note:
The items must be loaded in a RFLP session.
SignaturePiping_Insulation_Occurrence.GetSpecName() : String ReturnTypeString Piping_Insulation_Occurrence.GetSpecificationObject()Piping_Insulation_Occurrence.GetSpoolName()Piping_Part_Occurrence.CheckLockAngle()Function used to check the angle between the selected element port and the input reference element port. It checks that the behavior of the orientation between the ports is compliant. - SignaturePiping_Part_Occurrence.CheckLockAngle(ReferenceElement : ProductOccurrence, Check : Boolean, Angle : Angle) : Integer Arguments
ReturnTypeInteger Examplelet prd(Piping_Part_Occurrence) let Angle(ANGLE) let oCheck(Boolean) let ProdName(String) let ProdName2(String) let error(Integer) let Ref(ProductOccurrence) Validation = false set prd = ThisObject set Ref = Parameters.GetAttributeObject("Valve2") set ProdName = prd.Name set ProdName2 = Ref.Name if (( ProdName == "Valve1" ) AND (ProdName2 == "Valve2" )) { error = prd.CheckLockAngle(Ref, oCheck, Angle) if( (0 == error) AND (true == oCheck) AND (Angle == 90deg) ) { Validation = true } } Piping_Part_Occurrence.ComputeGlobalOrientation()Function used to find the angle between the part occurrence on which the method is called and global z-direction if the argument "IReferenceAxis" is NULL. - SignaturePiping_Part_Occurrence.ComputeGlobalOrientation(AngleAxisZ : Angle, AngleXYPlane : Angle, ReferenceAxis : AxisSystem [, RefAxisOccurrence : ProductOccurrence]) : Integer Arguments
ReturnTypeInteger Examplelet prd(Piping_Part_Occurrence) let Angle1(ANGLE) let Angle2(ANGLE) let RefAxis(axisSystem) let ListAxis(List) let error(Integer) let Ref(ProductOccurrence) let ProdName(String) let ProdName2(String) Validation = false set prd = ThisObject set Ref = Parameters.GetAttributeObject("Butterfly_Valve") set ProdName = prd.Name set ProdName2 = Ref.Name if (( ProdName == "Valve1" ) AND (ProdName2 == "Butterfly_Valve" )) { ListAxis = Ref.Query("AxisSystem", "") if(1 <= ListAxis.Size()) { RefAxis = ListAxis.GetItem(1) } error = prd.ComputeGlobalOrientation(Angle1, Angle2) if((270deg == Angle1) AND (90deg == Angle2) AND (error == 0)) { Validation = true } } Piping_Part_Occurrence.ComputeOrientation()Function used to find the orientation angle between the selected part and the reference part. The reference part can be the input reference element or the one computed from a certain algorithm. - SignaturePiping_Part_Occurrence.ComputeOrientation(InputReferenceElement : ProductOccurrence, Angle : Angle, ComputedReferenceElement : ProductOccurrence) : Integer Arguments
ReturnTypeInteger Examplelet prd(Piping_Part_Occurrence) let oAngle(ANGLE) let oCmputedRef(ProductOccurrence) let error(Integer) let Ref(ProductOccurrence) Validation = false set prd = ThisObject set Ref = Parameters.GetAttributeObject("Butterfly_Valve_end") let ProdName(String) let ProdName2(String) set ProdName = prd.Name set ProdName2 = Ref.Name if (( ProdName == "MainValve" ) AND (ProdName2 == "Butterfly_Valve_end" )) { let CompRefName(String) error = prd.ComputeOrientation(Ref, oAngle, oCmputedRef) if( NULL <> oCmputedRef) { set CompRefName = oCmputedRef.Name } if((0 == error) AND (90deg == oAngle) AND (CompRefName == "DS_FLG_Tee_ASTL_4in_40_70_BW_2049.1")) { Validation = true } } Piping_Part_Occurrence.GetAttributeOnConnectedPorts()Function used to read the port attributes (lengths) on the connected piping parts (piping part, pipe, equipment with at least one piping port). SignaturePiping_Part_Occurrence.GetAttributeOnConnectedPorts(Linked Object : Piping_Part_Occurrence, Attribute : String, This Object Value : String, Linked Object Value : String) : Integer Arguments
ReturnTypeIntegerReturn code:
Examplelet nb (Integer) let i (Integer) let rc (Integer) let occ (ProductOccurrence) let ConnectedObjects(List) let Data1 (String) let Data2 (String) …/… # Get Connected Piping Part Occurrences ConnectedObjects = ThisObject.GetRelatedObjects() nb = ConnectedObjects.Size() if (0 < nb) { i = 1 # Loop on Piping Part Occurrences for i while i <= nb { set occ = ConnectedObjects.GetItem(i) # Read Port Attribute on connected Piping Parts rc = myOccurrence.GetAttributeOnConnectedPorts(occ, "V_EndStyle", Data1, Data2) } …/… Piping_Part_Occurrence.GetLineIDName()Function used to read the line ID name. Note:
The items must be loaded in a RFLP session.
SignaturePiping_Part_Occurrence.GetLineIDName() : String ReturnTypeString Examplelet LineIDName(String) LineIDName = iOcc.GetLineIDName() if (NULL == LineIDName) { ThisCheck.AddTupleFailedWithComment("Piping Part without Line ID link.", inst) } else { ThisCheck.AddTupleSucceeded(inst) } Piping_Part_Occurrence.GetLineIDObject()Piping_Part_Occurrence.GetRelatedObjects()Piping_Part_Occurrence.GetSpecName()Piping_Part_Occurrence.GetSpecificationObject()Piping_Part_Occurrence.GetSpoolName()Piping_Part_Occurrence.GetSpoolObject()Piping_Pipe_Occurrence.GetAttributeOnConnectedPorts()Function used to read the port attributes (lengths) on the connected piping parts (piping part, pipe, equipment with at least one piping port). SignaturePiping_Pipe_Occurrence.GetAttributeOnConnectedPorts(Linked Object : Piping_Pipe_Occurrence, Attribute : String, This Object Value : String, Linked Object Value : String) : Integer Arguments
ReturnTypeInteger Piping_Pipe_Occurrence.GetAttributeOnConnectedPorts()Function used to read the piping attributes (lengths) on the connected piping parts. SignaturePiping_Pipe_Occurrence.GetAttributeOnConnectedPorts(Linked Object : Piping_Pipe_Occurrence, Attribute : String, This Object Value : LENGTH, Linked Object Value : LENGTH) : Integer Arguments
ReturnTypeInteger Piping_Pipe_Occurrence.GetLineIDName()Piping_Pipe_Occurrence.GetLineIDObject()Piping_Pipe_Occurrence.GetRelatedObjects()Piping_Pipe_Occurrence.GetSpecName()Piping_Pipe_Occurrence.GetSpecificationObject()Piping_Pipe_Occurrence.GetSpoolObject()Piping_Port.SetPortAttributeString()Function used to modify port attributes. SignaturePiping_Pipe.SetPortAttributeString() : Piping_Port ReturnTypePiping_Port Piping_Port.SetPortAttributeReal()Function used to modify port attributes. SignaturePiping_Port.SetPortAttributeReal() : Piping_Port ReturnTypePiping_Port Piping_Spool_Occurrence.GetSpoolMode()
Function used to return the type of the spool in an enum. The
enum type is PipingSpool_Mode.
You can initialize it to
SignaturePiping_Spool_Occurrence.GetSpoolMode() : PipingSpool_Mode ReturnTypePipingSpool_Mode ExampleLet RefSpool(Piping_Spool) Let SpoolMember (List) Let SizeMember(Integer) Let Message(String) Let FinalMessage(String) Let SpoolMode(PipingSpool_Mode) RefSpool = iOccSpool.Reference SpoolMode = iOccSpool.GetSpoolMode() SpoolMember = RefSpool.Children SizeMember=SpoolMember.Size() if ("CATPipSpool_ManufacturingMode" == SpoolMode) { Message = "Manufacturing Mode" } if ("PipSpool_PreliminaryMode" == SpoolMode) { Message = "Preliminary Mode" } if (("CATPipSpool_UnknownMode" == SpoolMode) OR ("CATPipSpool_Invalid" == SpoolMode) OR ("CATPipSpool_MixMode" == SpoolMode)) { Message = "Spool with Error" } if (1 <= SizeMember) { FinalMessage = Message + " : Member Size: " + SizeMember ThisCheck->AddTupleSucceededWithComment(FinalMessage, iOccSpool) } else { FinalMessage = "Invalid Spool" ThisCheck->AddTupleFailedWithComment(FinalMessage, iOccSpool) } Piping_Spool_Occurrence.GetMembers() |