WALL_​​SKINS_​​PARAMS and Building_​​Material_​​info

Home Forums Problems and solutions in GDL Doors and windows WALL_​SKINS_​PARAMS and Building_​Material_​info

This topic contains 5 replies, has 2 voices, and was last updated by  Gergely Fehér 1 year, 3 months ago.

  • Author
    Posts
  • #2443

    Joachim Sühlo
    Participant

    I try to read the surface material from a composite wall for a window, but it seems that the Request “Building_Material_info” does not work quite well.
    The Material is shown in 3D Window of GDL-Editor correctly as well as in the Lib-Part-Preview, but not in the 3D Window (AC 18 and 19). See attached Scrennshot.

    My script is as following:

    
    DIM wand_fill[], wand_fill_pen[], wand_back_pen[], wand_cont_pen[], wand_thck[], wand_cont_pen_unten[], wand_mat[], mat_index[]
    
    FOR ii=1 TO ski_no
    	wand_fill[ii] 			= WALL_SKINS_PARAMS[ii][1]
    	wand_fill_pen[ii]		= WALL_SKINS_PARAMS[ii][4]
    	wand_back_pen[ii]		= WALL_SKINS_PARAMS[ii][5]
    	wand_cont_pen[ii]		= WALL_SKINS_PARAMS[ii][9]
    	wand_cont_pen_unten[ii]	        = WALL_SKINS_PARAMS[ii][7]
    	wand_thck[ii]			= WALL_SKINS_PARAMS[ii][2]
    	wand_mat[ii]			= WALL_SKINS_BMAT_NAMES[ii][1]
    	x = REQUEST{2} ("Building_Material_info", wand_mat[ii], "gs_bmat_surface", mat_index[ii])
    
    NEXT ii
    
    MATERIAL IND(MATERIAL, mat_index[1])
    
    

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #2445

    Gergely Fehér
    Keymaster

    How do you get the ski_no value?

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

  • #2446

    Joachim Sühlo
    Participant

    ski_no = WALL_SKINS_NUMBER
    And the REQUEST was not correctly copied (Array-Index) was missing:
    x = REQUEST{2} ("Building_Material_info", wand_mat[ii], "gs_bmat_surface", mat_index[ii])
    This seems to be prohibited by the forum software (square brackets where left out)

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #2449

    Gergely Fehér
    Keymaster

    I corrected the codes: please use ohter variables than i for the loops in this forum. “i” in square brackets is for italic in BBCode, that’s why it is eliminated from codes.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

  • #2478

    Joachim Sühlo
    Participant

    Gergely, did you find out anything about this issue?

    GDL Object Developer
    b-prisma
    MAC OSx 10.11

  • #2481

    Gergely Fehér
    Keymaster

    WALL_SKINS_BMAT_NAMES did not work in 3D views in AC18&19. It will be corrected for AC20.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

You must be logged in to reply to this topic.