Object.inp




Hi all,

There is a example how to customize a an object.inp file
  • In this case you can check:
  • How to add labels
  • How to add pictures
  • How to give coordinate to the fields
  • How to create a drop down menu

Enjoy

objects_Drawings-Design-Principles.inp


/***************************************************************************/
/* SHAY MURTAGH User defined attributes for objects */
/***************************************************************************/
/***************************************************************************/
/* Shay Murtagh Tables                                             */
/***************************************************************************/
 part(2,"Part")
{
tab_page("SM_Design-Principles")
{
attribute("label", ".", label, "%s", no, none, "0.0", "0.0",20,700,150)
  picture("SML-logo-150x36.bmp", 0, 0, 50, 700)
  {
unique_attribute("SM-DP", "Table ON/OFF", option, "%s", no, none, "0.0", "0.0") 
{
value("0-OFF", 0)
value("1-ON", 0)
}

attribute("label", ":)", label, "%s", no, none, "0.0", "0.0") 

unique_attribute("SM-DP-01", "Indicative Design Working Life", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-DP-02", "Element Type", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-DP-03", "Exposure Classes", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-DP-04", "Fire Rate", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-DP-05", "Concrete Class", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-DP-06", "Reinforcement Cover", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-DP-07", "Reinforcement Grade", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-DP-08", "Steel Grade", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}

attribute("label", "General Actions (additional details in Design Report)", label, "%s", no, none, "0.0", "0.0") 

unique_attribute("SM-Actions-01", "Finishes, Ceiling & Services", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-02", "Other", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-03", "Category A", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-04", "Category B", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-05", "Category C", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-06", "Category D", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-07", "Category H", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-08", "Movable partitions", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-09", "Peak Velocity Pressure qp,i", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-10", "Wind Pressure = Cs*Cd*Cf* qp,i", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}
unique_attribute("SM-Actions-11", "Snow on the roof s", string, "%s", no, none, "0.0", "0.0") 
{
value("", 0)
}



unique_attribute("SM-DP-02A", "", string, "%s", no, none, "0.0", "0.0",600,112,150) 
{
value("", 0)
}
unique_attribute("SM-DP-02B", "", string, "%s", no, none, "0.0", "0.0",800,112,150) 
{
value("", 0)
}
unique_attribute("SM-DP-03A", "", string, "%s", no, none, "0.0", "0.0",600,140,150) 
{
value("", 0)
}
unique_attribute("SM-DP-03B", "", string, "%s", no, none, "0.0", "0.0",800,140,150) 
{
value("", 0)
}
unique_attribute("SM-DP-04A", "", string, "%s", no, none, "0.0", "0.0",600,168,150) 
{
value("", 0)
}
unique_attribute("SM-DP-04B", "", string, "%s", no, none, "0.0", "0.0",800,168,150) 
{
value("", 0)
}
unique_attribute("SM-DP-05A", "", string, "%s", no, none, "0.0", "0.0",600,196,150) 
{
value("", 0)
}
unique_attribute("SM-DP-05B", "", string, "%s", no, none, "0.0", "0.0",800,196,150) 
{
value("", 0)
}
unique_attribute("SM-DP-06A", "", string, "%s", no, none, "0.0", "0.0",600,224,150) 
{
value("", 0)
}
unique_attribute("SM-DP-06B", "", string, "%s", no, none, "0.0", "0.0",800,224,150) 
{
value("", 0)
}
unique_attribute("SM-DP-07A", "", string, "%s", no, none, "0.0", "0.0",600,252,150) 
{
value("", 0)
}
unique_attribute("SM-DP-07B", "", string, "%s", no, none, "0.0", "0.0",800,252,150) 
{
value("", 0)
}
unique_attribute("SM-DP-08A", "", string, "%s", no, none, "0.0", "0.0",600,280,150) 
{
value("", 0)
}
unique_attribute("SM-DP-08B", "", string, "%s", no, none, "0.0", "0.0",800,280,150) 
{
value("", 0)
}



unique_attribute("SM-Actions-01A", "", string, "%s", no, none, "0.0", "0.0",600,336,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-01B", "", string, "%s", no, none, "0.0", "0.0",800,336,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-02A", "", string, "%s", no, none, "0.0", "0.0",600,364,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-02B", "", string, "%s", no, none, "0.0", "0.0",800,364,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-03A", "", string, "%s", no, none, "0.0", "0.0",600,392,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-03B", "", string, "%s", no, none, "0.0", "0.0",800,392,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-04A", "", string, "%s", no, none, "0.0", "0.0",600,420,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-04B", "", string, "%s", no, none, "0.0", "0.0",800,420,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-05A", "", string, "%s", no, none, "0.0", "0.0",600,448,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-05B", "", string, "%s", no, none, "0.0", "0.0",800,448,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-06A", "", string, "%s", no, none, "0.0", "0.0",600,476,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-06B", "", string, "%s", no, none, "0.0", "0.0",800,476,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-07A", "", string, "%s", no, none, "0.0", "0.0",600,504,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-07B", "", string, "%s", no, none, "0.0", "0.0",800,504,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-08A", "", string, "%s", no, none, "0.0", "0.0",600,532,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-08B", "", string, "%s", no, none, "0.0", "0.0",800,532,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-09A", "", string, "%s", no, none, "0.0", "0.0",600,560,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-09B", "", string, "%s", no, none, "0.0", "0.0",800,560,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-10A", "", string, "%s", no, none, "0.0", "0.0",600,588,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-10B", "", string, "%s", no, none, "0.0", "0.0",800,588,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-11A", "", string, "%s", no, none, "0.0", "0.0",600,616,150) 
{
value("", 0)
}
unique_attribute("SM-Actions-11B", "", string, "%s", no, none, "0.0", "0.0",800,616,150) 
{
value("", 0)
}
   }
modify(1)
}

/***************************************************************************/
/* Drawing attributes - GA                                                 */
/***************************************************************************/
gadrawing(0,"j_GA_drawing")
{
   tab_page("SM_Design-Principles","Shay Murtagh Design Principles",103)
   modify(1)
}
/***************************************************************************/
/* Drawing attributes - multi                                              */
/***************************************************************************/
multidrawing(0,"j_Multi_drawing")
{
   tab_page("SM_Design-Principles","Shay Murtagh Design Principles",103)
   modify(1)
}
/***************************************************************************/
/* Drawing attributes - Cast Unit drawing                                  */
/***************************************************************************/
castunitdrawing(0,"j_Cast_Unit_drawing")
{
   tab_page("SM_Design-Principles","Shay Murtagh Design Principles",103)
   modify(1)
}

Comentários

Enviar um comentário

Mensagens populares