shaun coomber

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: Requesting Building Material Info #18814
    shaun coomber
    Participant

    I assume not then 🙂

    in reply to: Aligning REVOLVE and BPRISM geometry #18491
    shaun coomber
    Participant

    The REVOLVE{2} will always close the polygon (first to last point).
    So of you want the surface back to the rotation axis you need to add a point with a 0 (zero) y-position.

    i.e.

    <code class="hljs">PUT 0, 0.000, 2, shellSurface,
     0, 0.5*diskWidth, 2, shellSurface,
     0.5*diskHeight, 0.5*diskWidth + lipWidth, 2, shellSurface,
     diskHeight, 0.5*diskWidth, 2, shellSurface,
     diskHeight, 0.000, 2, shellSurface
    
    ADDZ 1
     ROTY -90
     REVOLVE{2} NSP/4, 0, 360, 4*1 + 8*1 + 16*1 + 32*1 + 64*0 + 128*0 + 256*0, shellSurface, GET(NSP)
     DEL 2 

    Barry.

    That worked perfectly, thank you Barry

    in reply to: Aligning REVOLVE and BPRISM geometry #18488
    shaun coomber
    Participant

    Right, my next problem is that REVOLVE{2} is missing the top and base surfaces, which were present with REVOLVE. Image attached, and example GDL below. Any ideas on this would be appreciated…

    ! Attributes

    BUILDING_MATERIAL shellMaterial
    n = REQUEST{2} (“Building_Material_info”, shellMaterial, “gs_bmat_surface”, shellSurface)

    ! Dimensions

    diskWidth = 0.500
    diskHeight = 0.200
    lipWidth = 0.100

    ! REVOLVE

    PUT 0, 0.5*diskWidth, 2,
    0.5*diskHeight, 0.5*diskWidth + lipWidth, 2,
    diskHeight, 0.5*diskWidth, 2

    ROTY -90
    REVOLVE NSP/3, 360, 15, GET(NSP)
    DEL 1

    ! REVOLVE{2}

    PUT 0, 0.5*diskWidth, 2, shellSurface,
    0.5*diskHeight, 0.5*diskWidth + lipWidth, 2, shellSurface,
    diskHeight, 0.5*diskWidth, 2, shellSurface

    ADDZ 1
    ROTY -90
    REVOLVE{2} NSP/4, 0, 360, 15, shellSurface, GET(NSP)
    DEL 2

    Attachments:
    in reply to: Aligning REVOLVE and BPRISM geometry #18486
    shaun coomber
    Participant

    Hi Barry

    There were a few issues where BPRISM deals with things differently to other commands. The main problem was that ARCHICAD facets BPRISMs completely differently. The attached image shows the original geometry (circle) with how ARCHICAD usually facets (inner hexagon) and an example facet for the bprism (triangle extending to the outside of the circle).

    To get around the problem I had to:
    – multiple the radius of the BPRISM by * cos(180/resolution)
    – multiple the thickness of the BPRISM by * cos(180/resolution)
    – rotate the BPRISM by 180+180/resolution along its axis

    GS HQ also suggested using REVOLVE{2} alongside BPRISM, instead of the basic version of REVOLVE. It seems to be undocumented but REVOLVE{2} behaves in the same way as BPRISM when facetted, instead of like the usual commands.

    However, I’m having a couple of other issues with REVOLVE{2} so you might hear more from me shortly!

    Attachments:
    in reply to: Aligning REVOLVE and BPRISM geometry #18484
    shaun coomber
    Participant

    It’s OK, I’ve figured it out

    in reply to: Use drawing scale on layouts to Set Scale bar #18477
    shaun coomber
    Participant

    Yes, we went through the same thought process – objects on the layout can’t see the scale of the drawings, and ARCHICAD only fills out autotext after placement so the GDL doesn’t see it. We ended up having separate positioning options for the scale bar within the title object, to position it relative to the drawing or to the layout itself. There still has to be a drawing on the layout, but the scale bar doesn’t have to be placed with the title, and the scale bar doesn’t necessarily move with the drawing.

    in reply to: Use drawing scale on layouts to Set Scale bar #18474
    shaun coomber
    Participant

    Yes, that’s exactly what we do using “ac_drawingScale”:
    https://store.applecoredesigns.co.uk/addons-objects/gdl-objects/uki-drawing-title

    in reply to: Beam and column display – model view options #18466
    shaun coomber
    Participant

    Hi

    Is there any change to this? It would be useful to request “with symbol” for the columns, for example…

    in reply to: Checking library for file names #4531
    shaun coomber
    Participant

    For example, is it possible to use n = APPLICATION_QUERY (“LIBRARY_MANAGER”, “”, files_list) for txt files, or only IES and image files?

    in reply to: Requesting platform, mac or windows #4189
    shaun coomber
    Participant

    Hi Dominika,

    Thank you, I will try that too.

    I’ve just found another difference between Mac and Windows interfaces… UI_INFIELD with method 8 can be set with different heights on Windows, but on Mac this setting is ignored and the drop-down list is also displayed with the same height.

    UI_INFIELD{3} “editField”, 75, ypos-3, 313, 22,
    8, “”, 0, 0, 0, 0, 0, 0,
    “”, editType[1], editType[1],
    “”, editType[2], editType[2],
    “”, editType[3], editType[3],
    “”, editType[4], editType[4]

    in reply to: Requesting platform, mac or windows #4173
    shaun coomber
    Participant

    ! Parameters for ArchiCAD version and Platform
    Dose = 0
    sts = REQUEST(“Name_of_program”, “”,TeX)
    IF STRSTR(TeX,”.EXE”) OR STRSTR(TeX,”.exe”) THEN Dose = 1

    That is brilliant, it works perfectly! Thank you

    in reply to: Requesting platform, mac or windows #4171
    shaun coomber
    Participant

    Here is the code for method 1:

    UI_INFIELD{3} SelectField, xpos, ypos+yspc, useWidth*4+20, useHeight*2,
    1, 25,
    8, 2,
    useWidth, useHeight, useWidth, useHeight,
    1, “”, 1,
    2, “”, 2,
    3, “”, 3,
    4, “”, 4,
    5, “”, 5,
    6, “”, 6,
    7, “”, 7,
    8, “”, 8

    And here is the code for method 6:

    FOR k = 1 TO 4

    UI_INFIELD{3} SelectField, xpos+useWidth*(k-1), ypos+yspc, useWidth, useHeight,
    6, 25,
    8, 2,
    useWidth, useHeight, useWidth, useHeight,
    k, “”, k+10,
    k, “”, k

    NEXT k

    FOR k = 5 TO 8

    UI_INFIELD{3} SelectField, xpos+useWidth*(k-5), ypos+yspc+useHeight, useWidth, useHeight,
    6, 25,
    8, 2,
    useWidth, useHeight, useWidth, useHeight,
    k, “”, k+10,
    k, “”, k

    NEXT k

    With the following trick in the parameter script:

    IF SelectField > 10 THEN
    SelectField = SelectField – 10
    PARAMETERS SelectField = SelectField
    ENDIF

    in reply to: Requesting platform, mac or windows #4168
    shaun coomber
    Participant

    And here are the method 6 images…

    in reply to: Requesting platform, mac or windows #4165
    shaun coomber
    Participant

    I’ve tried two different methods.

    With ui_infield method 1, the interface leaves more of a space between each option on Windows. Even if I increase the size of the field to accommodate the scroll bar etc. it doesn’t display well. On Mac, it looks fine.

    With ui_infield method 6, I have created a separate ui_infield command for each option. On windows it displays nicely, but on Mac it doesn’t show which is selected.

    Method 1 images are attached…

    in reply to: Layout size #4077
    shaun coomber
    Participant

    Perfect, thank you

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