Request Override Surfaces

Home Forums Problems and solutions in GDL Object design Request Override Surfaces

Viewing 2 reply threads
  • Author
    • #2187
      Daniel Virtic

      Hello everyone, Is there a way to request the name of Overridden surface of an ArchiCad element, on each faces and edge.

    • #2204
      Csilla Mai

      Hi Daniel,

      The surface indices of the ARCHICAD elements are available through the Global Variables. To get the name of the material you can use the “Name_of_material” request. For example displaying the material names of a slab element in a label object in 2D:

      _matTop 	= ""
      _matBottom 	= ""
      _matEdge 	= ""
      r = request ("Name_of_material", SLAB_MAT_TOP, _matTop)
      r = request ("Name_of_material", SLAB_MAT_BOTT, _matBottom)
      r = request ("Name_of_material", SLAB_MAT_EDGE, _matEdge)
      text2 0, -1, _matTop
      text2 0, 0, _matBottom
      text2 0, 1, _matEdge

      Is this solution the one that you need? Could you please explain that what would you like to use the material names for?

      Csilla Mai
      Library Developer, Library Team

    • #2205
      Daniel Virtic

      Thank you Csilla.
      It’s working. I need to get the override surface of elements, in order to have them in the schedule via label tool. I create a custom label, where I need to round up some values, such as wall height, etc according to my needs.

Viewing 2 reply threads
  • The forum ‘Object design’ is closed to new topics and replies.