Forum Replies Created
-
AuthorPosts
-
shaun coomber
ParticipantI assume not then 🙂
shaun coomber
ParticipantThe 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
shaun coomber
ParticipantRight, 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, 2ROTY -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, shellSurfaceADDZ 1
ROTY -90
REVOLVE{2} NSP/4, 0, 360, 15, shellSurface, GET(NSP)
DEL 2Attachments:
shaun coomber
ParticipantHi 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 axisGS 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:
shaun coomber
ParticipantIt’s OK, I’ve figured it out
shaun coomber
ParticipantYes, 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.
shaun coomber
ParticipantYes, that’s exactly what we do using “ac_drawingScale”:
https://store.applecoredesigns.co.uk/addons-objects/gdl-objects/uki-drawing-titleshaun coomber
ParticipantHi
Is there any change to this? It would be useful to request “with symbol” for the columns, for example…
shaun coomber
ParticipantFor example, is it possible to use n = APPLICATION_QUERY (“LIBRARY_MANAGER”, “”, files_list) for txt files, or only IES and image files?
shaun coomber
ParticipantHi 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]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 = 1That is brilliant, it works perfectly! Thank you
shaun coomber
ParticipantHere 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, “”, 8And 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, “”, kNEXT 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, “”, kNEXT k
With the following trick in the parameter script:
IF SelectField > 10 THEN
SelectField = SelectField – 10
PARAMETERS SelectField = SelectField
ENDIFshaun coomber
ParticipantAnd here are the method 6 images…
Attachments:
shaun coomber
ParticipantI’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…
Attachments:
shaun coomber
ParticipantPerfect, thank you
-
AuthorPosts