Joachim Sühlo

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 71 total)
  • Author
    Posts
  • in reply to: Proper project2{4} cut #18877
    Joachim Sühlo
    Participant

    I would also be very interested in the answer

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: Initialisé une variable #18779
    Joachim Sühlo
    Participant

    Maybe the penFG and penPG are not initialzed or not declared as parameters.
    Or fillPOly1, fillPOLY2, fillpoly3

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: APPLICATION_​QUERY slows down moveable hotspots #18684
    Joachim Sühlo
    Participant

    Yes:
    IF p_num > 0 THEN VALUES “str_bildwahl” stCustomPicFiles_with_prefix

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: APPLICATION_​QUERY slows down moveable hotspots #18673
    Joachim Sühlo
    Participant

    The script part I use is:

    ! ———————————————————————- !
    ! ————— C u s t o m p i c t u r e f i l e r e q u e s t
    ! ———————————————————————- !

    IF GLOB_FEEDBACK_MODE = 0 THEN

    dim stCustomPicFiles[]
    bCustomPicFileExist = APPLICATION_QUERY (“LIBRARY_MANAGER”, “USER_IMAGE_FILES”, stCustomPicFiles)

    p_num = VARDIM1(stCustomPicFiles)

    DIM stCustomPicFiles_with_prefix[]
    si = 1
    int_num_prefix = STRLEN(str_prefix)

    IF (str_prefix # ” ” AND str_prefix # “”) THEN
    FOR i = 1 TO p_num
    IF STRSUB(stCustomPicFiles[i], 1, int_num_prefix) = str_prefix THEN
    stCustomPicFiles_with_prefix[si] = stCustomPicFiles[i]
    si = si + 1
    ENDIF
    NEXT i
    ELSE
    stCustomPicFiles_with_prefix = stCustomPicFiles
    ENDIF

    p_num = VARDIM1(stCustomPicFiles_with_prefix)

    ENDIF

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: Use buttons to select variable from a parameter #18659
    Joachim Sühlo
    Participant

    And yes, there are special boolen buttons as well, which look a bit different than the example before:
    UI_PICT_PUSHCHECKBUTTON “myBool”, “myText”, “myPict”, 1, 0, 110, 100, 30

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: Use buttons to select variable from a parameter #18657
    Joachim Sühlo
    Participant

    This is a boolean exampe with 1 button:

    UI_INFIELD{3} “b_MVO_endgroesse”, 0, 0, 25 ,25,
    6, Tree_MVO_3, 2, 1, 25, 25, 25, 25,
    1, “”, 0,
    2, “”, 1

    But I am not shure if this looks the same as a UI_Button.
    The grafic file Tree_MVO_3 is embedded, if you use an external it must be “Tree_MVO_3” or similar.
    This file has 2 grafics beside each other, one for the Value zero, the other for the value 1.

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: Use buttons to select variable from a parameter #18648
    Joachim Sühlo
    Participant

    Do you mean something like UI_Radiobutton?

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: WALLHOLE2 command #18539
    Joachim Sühlo
    Participant

    I worked it out by calling an empty hole macro. Thanks.

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: Skylight Roof Hole Circular #18531
    Joachim Sühlo
    Participant

    A circular hole works for me with (in AC 23):
    wallniche 2, 1, 2+16,
    0,0,1, 1,
    0, B/2, 979 + 16,
    A/2,360,4079 + 16

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: Write Story Number into Parameter (2) #18511
    Joachim Sühlo
    Participant

    Thank You, Péter, this works well!

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: Request Zone_​Relations #18503
    Joachim Sühlo
    Participant

    This works for me in Master Script:

    name = “”
    n = REQUEST (“Zone_relations”, “”, category_name, code, name, number)

    IF name = “Essen” THEN is = “11” ELSE is = “”
    PARAMETERS is = is

    TEXT2 0, 0, name + is

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: zone stamp: default property settings #18357
    Joachim Sühlo
    Participant

    Does this also applies to projects always created from the same Template file?
    I checked this both with a pln, saving under a neww name and a tpl saving under a new name:
    both works, the GUIDs stay the same.

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: zone stamp: default property settings #18356
    Joachim Sühlo
    Participant

    The property GUIDs are project-dependent, a default value of the library part wouldn’t work in another plan.

    Does this also applies to projects always created from the same Template file?

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: zone stamp: default property settings #18355
    Joachim Sühlo
    Participant

    the 2nd example had some Requests before. This code is from the gdl.graphisoft.com website.
    In the example zone stamp both master and parameter script are empty.

    dim _parentProperties[]
    n = REQUEST (“Properties_Of_Parent”, “”, _parentProperties)

    _displayName = “”
    n = REQUEST (“Property_Name”, sIDRow1_50, _typeName, _groupName, _propertyName)
    if _typeName # “” then _displayName = _typeName + ” : ”
    if _groupName # “” then _displayName = _displayName + _groupName + ” : ”
    _displayName = _displayName + _propertyName ! no need to check, always has a string value

    ui_custom_popup_infield “sIDRow1_50”,
    50, 244, 222,20, ! X Position, Y Position, Width, Height
    1, ! Store Hidden ID
    3, ! Tree Depth
    1, ! Grouping Method
    _displayName, ! Created value description
    _parentProperties

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

    in reply to: How to pass all parameters with some exception to macro? #18156
    Joachim Sühlo
    Participant

    If you want to get a list of all parameters for the macro call, place the object to be called in the floor plan and save it as (dummy) object.
    When you open this object, there should be the complete CALL statement with all parameters.

    GDL Object Developer
    b-prisma
    MAC OSx 10.14

Viewing 15 posts - 1 through 15 (of 71 total)