Forum Replies Created
-
AuthorPosts
-
Bruce WalkerParticipant
I thought about using an array, but couldn’t figure out how to feed an array of undefined size into a TUBE or PRISM command.
In this part, the user can choose from a selection of profiles (let’s say Rectangle wide, Rectangle narrow, Pentagon, Hexagon). The profiles are also made up of two different surfaces (let’s say the top 3/4 is white, the bottom 1/4 is grey). They can also choose from a selection of paths (straight, horizontal bend 45°, vertical bend 45°, vertical bend 15°). If the user chooses the straight path, then they can define segment length and number. Horizontal and vertical bends are of fixed length.
In this situation, I use two PRISMs in a loop for the straight segments, and two TUBEs for each of the other options (the horizontal path needing to be defined differently to the vertical path).
At the moment I use the buffer for the path (as the angle can change, as can the number of steps / resolution), and have copied the profile to each of the commands. This means I double up on code, which will be difficult to add more profiles to, or edit what is there (which is almost guaranteed).
I think I know what you mean…but will have to play around with it to figure it out properly.
Cheers
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantTo answer my own question, the below code example seems to give me the functionality I’m after:
! Define profile
nProfile = 0PUT -1, 0, 0,
1, 0, 0,
1, 1, 0,
-1, 1, 0
nProfile = nProfile + 4! Define path
nPath = 0PUT 0, -1, 0, 0,
0, 0, 0, 0,
0, 5, 0, 0,
0, 5, 5, 0,
0, 0, 5, 0,
0, -1, 5, 0
nPath = 6TUBE nProfile, nPath, 3 + 16 + 32,
GET(nProfile * 3),
USE(nPath * 4)www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantThat’s it – that’s what I was missing. I had forgotten that one needed to define values for this to work in the interface script. Thanks Pavel, much appreciated.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantCode:
“Header fields”: ! (hf)
hf_menu_w = 280
hf_menu_h = 25
hf_button_h = 21
hf_button_w = 32
hf_gap = 1
hf_x = 0
hf_y = 0UI_STYLE 0, 1
UI_INFIELD{3} “gs_ui_current_page”, hf_x, hf_y, hf_menu_w, hf_menu_h,
2, “”, 2, 1,
0, 0, 0, 0,
1, “Site”, 1,
2, “Cabinets”, 2
UI_STYLE 0, 0hf_x = hf_menu_w + hf_gap * 2
hf_y = 2
UI_BUTTON UI_PREV, “<<“, hf_x, hf_y, hf_button_w, hf_button_h, gs_ui_current_page – 1
hf_x = hf_x + hf_button_w + hf_gap
UI_BUTTON UI_NEXT, “>>”, hf_x, hf_y, hf_button_w, hf_button_h, gs_ui_current_page + 1hf_y = hf_menu_h + 5
UI_SEPARATOR 0, hf_y, ui_max_x, hf_yRETURN
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantExcellent. Thanks Gergely.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantI think it’s safe to conclude, from the lack of response, that no such GDL examples exist yet (at least from Graphisoft – I know ArchiRadar have a nice object).
However, to get the ball rolling, can someone tell me what the NURBSCURVE2D and NURBSCURVE3D commands do? I thought they would create a visible 2D or 3D line…but that doesn’t appear to be the case. They aren’t primitives, as these NURBS commands exist elsewhere…so I can’t figure it out.
Thanks.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantSounds good. I saw the second MVO tab and removed it from the library – works fine now.
Regarding the GS door – further clarification: it would turn ON the minimal space no trouble, but to turn it back off I had to select a MVO Combination. I couldn’t just open the MVO and turn off the minimal space, as that would have no effect.
So it could be a combination of both GUID, and order of ‘scrolling’ through the LIBRARYGLOBAL calls.
Anyway – lesson is don’t have two LibraryGlobals13 loaded!
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantFigured it out: for some reason there are two LibraryGlobals13 loaded in the library: one for AC19, the other for AC17.
Still doesn’t answer the question why the GS door worked though.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantThis is happening to quite a lot of LIBRARYGLOBAL requests e.g. minimal space (on/off; pen; line type). I have copied the code directly out of the GS door macro to ensure I have it correct…but it still doesn’t work. I cannot figure out why.
Have tested in AC19 and AC20, next to a GS door. The GS door will work, but mine won’t.
Any help would be appreciated.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantThanks for you help guys. This is what I was after. That “Open object by subtype” is handy to know…
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantThanks Dominika. The “dump library parts…” was a new one for me.
However, what I was after was a list of the Model View Options objects (accessed via the LIBRARYGLOBALS command). In this particular instance, I’m trying to find the object name and parameter name for the “Miscellaneous Settings…” > “Show Opening Lines in 3D Projections” > “on Doors”
The only way I currently know to do this (for ArchiCAD MVO objects) is to find an object that references what you’re after, and open from there. Is there a more straightforward way?
Thanks
Attachments:
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantI thought as much. Thanks all the same.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantExcellent. Makes sense now. Thanks Dominika
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantThanks Dominika. I tried your suggestion of both png & making image twice as large. Neither made an improvement.
However, if, in your experience, this is the appearance that can be expected, then I am satisfied. I was just comparing my interface with GS’ interfaces, and mine seemed to be lacking, and I thought perhaps there was a trick I was missing.
Thanks all for your help.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8MbBruce WalkerParticipantThanks Joachim. I’m clearly getting something wrong with my images. I can’t figure out how to get them nice and sharp – as is the case in, for example, “Hood 19”
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
AuthorPosts