Miscellaneous Fittings Label - Intergraph Smart 3D - Help

Intergraph Smart 3D Catalog

PPMProductFamily
3D Design and Visualization
PPMProduct
Intergraph Smart 3D
PPMCategory
Help
Version_S3D
12.x(2018)

Name: Miscellaneous Fittings
Description: Material Description Label for Miscellaneous Fittings
Type: SQL
Is Recursive: No
Conditional Formatting: No
Design Time Prog ID: SP3DLabelFormatDesigner.RTFLabel
Run Time Prog ID: SP3DLabelsFormat.FormatLabel
Returned Properties:
SQL Query:
select Pcom.CommodityType_LongValue, dbo.REPORTConvertNPD('in',Pcom.PriSizeNPDUnits, Pcom.PrimarySize) AS 'NPD1',
'in' AS 'NPDUnitType1',
'Piping' AS 'Category',
NULL AS 'BoltDiameter',
dbo.REPORTConvertNPD('in',Pcom.SecSizeNPDUnits, Pcom.SecondarySize) AS 'NPD2',
'in' AS 'NPDUnitType2',
'[Ports]' AS PortsInfo,
Pcom.GeometricIndustryStandard_ShortValue as GeomIndStandard_ShortValue, Pcom2.Manufacturer_ShortValue, Pcom.MaterialsGrade_ShortValue,
Mfd.SurfacePreparation_ShortValue, Pcom.LiningMaterial_ShortValue, Mfd.MiscRequisitionClassification_ShortValue as MiscReqClassfn_ShortValue from dbo.JDPipeComponent_CL Pcom
join dbo.JUAManufacturerData_CL Mfd ON (Pcom.Oid = Mfd.Oid)
join dbo.JDPipeComponent2_CL Pcom2 ON (Pcom.Oid = Pcom2.Oid)
join xmadefrom rmf ON (pcom.oid = rmf.oiddestination)
where rmf.oidorigin = ?

select ClPco.LONGSTRINGVALUE as CommodityType_LongValue, RPTConvertNPD('in',Pcom.PriSizeNPDUnits, Pcom.PrimarySize) AS NPD1,
'in' AS NPDUnitType1,
'Piping' AS Category,
NULL AS BoltDiameter,
RPTConvertNPD('in',Pcom.SecSizeNPDUnits, Pcom.SecondarySize) AS NPD2,
'in' AS NPDUnitType2,
'[Ports]' AS PortsInfo,
ClGIS.SHORTSTRINGVALUE as GeomIndStandard_ShortValue, ClMfd.SHORTSTRINGVALUE As Manufacturer_ShortValue, ClMGr.SHORTSTRINGVALUE as MaterialsGrade_ShortValue,
ClSPre.SHORTSTRINGVALUE as SurfacePreparation_ShortValue, ClLM.SHORTSTRINGVALUE as LiningMaterial_ShortValue,
ClMRC.SHORTSTRINGVALUE as MiscReqClassfn_ShortValue from CL_PIPINGCOMMODITYTYPE ClPco
join JDPIPECOMPONENT Pcom on (ClPco.VALUEID = Pcom.COMMODITYTYPE)
join JUAManufacturerData Mfd ON (Pcom.Oid = Mfd.Oid)
join JDPipeComponent2 Pcom2 ON (Pcom.Oid = Pcom2.Oid)
join CL_GEOMETRICINDUSTRYSTANDARD ClGIS on (ClGIS.VALUEID= pcom.GeometricIndustryStandard)
join CL_MANUFACTURER ClMfd on (ClMfd.VALUEID = Pcom2.Manufacturer)
join CL_MATERIALSGRADE ClMGr on (ClMGr.VALUEID = Pcom.MaterialsGrade)
Left OUTER join CL_SURFACEPREPARATION ClSPre ON (Mfd.SurfacePreparation = ClSPre.VALUEID)
join CL_LININGMATERIAL ClLM on (ClLM.VALUEID = Pcom.LiningMaterial)
Left OUTER join CL_MISCREQUISITIONCLASSIFICATI ClMRC on (Mfd.MiscRequisitionClassification = ClMRC.VALUEID)
join xmadefrom rmf ON (pcom.oid = rmf.oiddestination)
where rmf.oidorigin = ?