Stock Instruments Label - Intergraph Smart 3D - Help - Hexagon

Intergraph Smart 3D Catalog

Language
English
Product
Intergraph Smart 3D
Subproduct
Catalog
Search by Category
Help
Smart 3D Version
13.1

Name: Stock Instruments Label
Description: Example of a Label for PipeComponent
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,
Mfd.SurfacePreparation_ShortValue,
Pcom.LiningMaterial_ShortValue,
Pcom.GeometricIndustryStandard_ShortValue as GeomIndStandard_ShortValue,
Pcom.MaterialsGrade_ShortValue,
Mfd.MiscRequisitionClassification_ShortValue as MiscReqClassfn_ShortValue from dbo.JDPipeComponent_CL Pcom
Left OUTER join dbo.JUAManufacturerData_CL Mfd ON (pcom.oid = Mfd.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,
ClSPre.SHORTSTRINGVALUE as SurfacePreparation_ShortValue,
ClLM.SHORTSTRINGVALUE as LiningMaterial_ShortValue,
ClGIS.SHORTSTRINGVALUE as GeomIndStandard_ShortValue,
ClMGr.SHORTSTRINGVALUE as MaterialsGrade_ShortValue,
ClMRC.SHORTSTRINGVALUE as MiscReqClassfn_ShortValue
from CL_PIPINGCOMMODITYTYPE ClPco
join JDPIPECOMPONENT Pcom on (ClPco.VALUEID = Pcom.COMMODITYTYPE)
Left OUTER join JUAManufacturerData Mfd ON (Pcom.Oid = Mfd.Oid)
Left OUTER join CL_SURFACEPREPARATION ClSPre ON (Mfd.SurfacePreparation = ClSPre.VALUEID)
join CL_LININGMATERIAL ClLM on (ClLM.VALUEID = Pcom.LiningMaterial)
join CL_GEOMETRICINDUSTRYSTANDARD ClGIS on (ClGIS.VALUEID= pcom.GeometricIndustryStandard)
join CL_MATERIALSGRADE ClMGr on (ClMGr.VALUEID = Pcom.MaterialsGrade)
Left OUTER join CL_MISCREQUISITIONCLASSIFICATI ClMRC on (Mfd.MiscRequisitionClassification = ClMRC.VALUEID)
join xmadefrom rmf ON (pcom.oid = rmf.oiddestination)
where rmf.oidorigin = ?