hexagon logo

PCL; How to get result data title?

Hello!
 
How to get the data title string?
1
Is there a function "get_res_data_title"? The ideal solution would be to have each section of the title in a separate string variable.
 
Parents
  • When you plot a result in Patran the following commands are issued (example for fringe plot):
     
    res_data_load_dbresult( 0, "Nodal", "Scalar", "Derived Results", "Demo", "Nodal Scalar", "Demo Result1", "(NON-LAYERED)", "", "AsIs", "DeriveAverage", "All", "ShapeFunc", "", 0. )
     
    res_data_title( 0, "Nodal", "Scalar", 1, ["$POFF@@@$PT: @@@$LCN, @@@$SCN, @@@$PRN, @@@$SRN, @@@$DRVL, @@@$LN"] )
     
    res_display_fringe_create( "", "FreeFaces", 0, [""], 13, ["Range:Fri_default_Fringe2", "RangeOverwrite:ON", "FringeStyle:Discrete/Smooth", "Shade:None", "ElemEdge:FreeEdge,Blue,Solid,1", "Shrink:0", "TitleDisplay:ON", "MinMaxDisplay:ON", "ValueDisplay:OFF", "Filter:None", "ScaleFactor:1.", "LabelStyle:Exponential, 12, White, 3", "ImperfFlag:OFF"], TRUE )
     
    res_display_fringe_post( "", 0, "Nodal", TRUE, TRUE )
     
    The first line loads the selected result into a register (which always seems to be 0...).
    The second line creates the title. Those are variables, and they correspond to what's defined in the Title Editor (under Display Attributes) - usually just the defaults. i.e.:
     
    Plot Type: Loadcase Name, Subcase Name, Primary Result Name, Secondary Result Name, Component (Derivation), Layer Name
     
    Screen Shot 11-14-22 at 03.45 PM
Reply
  • When you plot a result in Patran the following commands are issued (example for fringe plot):
     
    res_data_load_dbresult( 0, "Nodal", "Scalar", "Derived Results", "Demo", "Nodal Scalar", "Demo Result1", "(NON-LAYERED)", "", "AsIs", "DeriveAverage", "All", "ShapeFunc", "", 0. )
     
    res_data_title( 0, "Nodal", "Scalar", 1, ["$POFF@@@$PT: @@@$LCN, @@@$SCN, @@@$PRN, @@@$SRN, @@@$DRVL, @@@$LN"] )
     
    res_display_fringe_create( "", "FreeFaces", 0, [""], 13, ["Range:Fri_default_Fringe2", "RangeOverwrite:ON", "FringeStyle:Discrete/Smooth", "Shade:None", "ElemEdge:FreeEdge,Blue,Solid,1", "Shrink:0", "TitleDisplay:ON", "MinMaxDisplay:ON", "ValueDisplay:OFF", "Filter:None", "ScaleFactor:1.", "LabelStyle:Exponential, 12, White, 3", "ImperfFlag:OFF"], TRUE )
     
    res_display_fringe_post( "", 0, "Nodal", TRUE, TRUE )
     
    The first line loads the selected result into a register (which always seems to be 0...).
    The second line creates the title. Those are variables, and they correspond to what's defined in the Title Editor (under Display Attributes) - usually just the defaults. i.e.:
     
    Plot Type: Loadcase Name, Subcase Name, Primary Result Name, Secondary Result Name, Component (Derivation), Layer Name
     
    Screen Shot 11-14-22 at 03.45 PM
Children
No Data