Gergely Fehér

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 249 total)
  • Author
    Posts
  • in reply to: GLOB_​SCALE in Parameters Script #4131
    Gergely Fehér
    Keymaster

    Hi Phil,

    GLOB_SCALE and GLOB_VIEW_TYPE can not be used in parameter script. Parameters of any object must not depend on the view, as they can appear on many different views with different scales, and enabling dependencies on those 2 globals would cause inconsistent behaviour and parameter settings on placed instances.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Show on Stories parameter #4091
    Gergely Fehér
    Keymaster

    I think you can not reach that from GDL. Why do you need that? If an object is not needed on a story, AC simply won’t show it…

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Zone Area with corner windows #3952
    Gergely Fehér
    Keymaster

    Zone always adds a rectangle to the zone, with the width equals with your “A” parameter, and the depth is calculated from the sill depth and frame thickness. You can not change it from GDL, so it won’t be correct in many situations.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Temporary Migration for a hotlinked object #3951
    Gergely Fehér
    Keymaster

    Hi Denny,

    It’s not a single problem, it is adding a new function to the standard library. This should be done with the proper workflow as you mentioned first, there is no other solution, teher is no migration between duplicates…

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Graphic Overrides for Doors #3945
    Gergely Fehér
    Keymaster

    You can not reach the graphic override’s pen from a GDL object.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: ASSOCLP_​PARVALUE_​WITH_​DESCRIPTION #3940
    Gergely Fehér
    Keymaster

    Sorry, I changed to ii and jj, I hope it helps. (The forum engine stoles the single i char in square brackets, as it thinks is is an italic definition for text formatting.)

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: ASSOCLP_​PARVALUE_​WITH_​DESCRIPTION #3935
    Gergely Fehér
    Keymaster

    I tried wtih the following code in a labels’ 2d script:

    dim p_values_and_descriptions[][]
    n = REQUEST ("ASSOCLP_PARVALUE_WITH_DESCRIPTION", "myParam", name_or_index, type, flags, dim1, dim2, p_values_and_descriptions)
    
    for ii = 1 to vardim1(p_values_and_descriptions)
    	for jj = 1 to vardim2(p_values_and_descriptions)
    		text2 jj, ii, p_values_and_descriptions[ii][jj]
    	next jj
    next ii

    This code writes both the integer value and the description to the floorplan view.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: GDL test rotating #3890
    Gergely Fehér
    Keymaster

    Here is a sample about text rotation: https://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: BMat ID parameter #3859
    Gergely Fehér
    Keymaster

    n = REQUEST{2} ("Building_Material_info", name_or_index, param_name, value_or_values)

    Returns information in the given variable(s) on a parameter of the specified building material. Expression returns 0 and contains dummy return values (emtpy string or 0) if used in parameter script, causing additional warning.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Split command #3857
    Gergely Fehér
    Keymaster

    Hi,

    It seems to be a bug, I added it to our bug database.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Label that displays another object's parameter #3856
    Gergely Fehér
    Keymaster

    Here you can find some examples about STR: https://gdl.graphisoft.com/gdl-basics/advanced-text-handling

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Label that displays another object's parameter #3854
    Gergely Fehér
    Keymaster

    It seems your calculated area is a number, which you can’t add to a string. You can create a string from a number with the STR function.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Name_​of_​material #3843
    Gergely Fehér
    Keymaster

    Thanks for the responses, you’re right, it’s a bit more than a useless warning. For the first check, it seems we can correct it for the next main version.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Name_​of_​material #3840
    Gergely Fehér
    Keymaster

    I checked the request with a simple script in ac20&21 – it works the same way, gives a warning instead of just returning zero… For me it seems to be a bug, I add it to our bug database, to eliminate the warnings from attribute checking requests (it seems other similar requests are affected too…). If this problem is more than a “useless warning” in your objects, please send me some details in mail, to be able to raise the issue’s priority.

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

    in reply to: Name_​of_​material #3832
    Gergely Fehér
    Keymaster

    Can you attach a test libpart, and tell me which AC version you are using?

    Gergely Fehér
    Team Leader, Library Team
    GRAPHISOFT SE

Viewing 15 posts - 16 through 30 (of 249 total)