Request Override Surfaces

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

This topic contains 2 replies, has 2 voices, and was last updated by  Daniel Virtic 1 year, 9 months ago.

  • Author
    Posts
  • #2187

    Daniel Virtic
    Participant

    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
    Keymaster

    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
    GRAPHISOFT SE

  • #2205

    Daniel Virtic
    Participant

    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.

You must be logged in to reply to this topic.