License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

"Radio" button parameters?

TomWaltz
Participant
I'm trying to figure out a way to do a really elaborate schedule for a 2 million + square foot project we have.

What I'm trying to do is create the ability to group 4 or 5 parameters in an object together. If a user places a value in one of them, the others go blank. Essentially the same function as a Radio Button.

I've been poking around the AC9 library for a function or kludge for this, without much luck.

Has anyone else done this? Or have an idea as to how it could be done?

Thanks!
Tom Waltz
5 REPLIES 5
Karl Ottenstein
Moderator
TomWaltz wrote:
Or have an idea as to how it could be done?
Just guessing, but would GLOB_MODPAR_NAME in combination with setting the other params to blank and then LOCKing or HIDEing them do the trick?

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Frank Beister
Moderator
Try this (from brain to keyboard) in master:

! parameters btn1, btn2, btn3 as checkbox

if GLOB_MODPAR_NAME="btn1" and (GLOB_CONTEXT=1 or GLOB_CONTEXT=5) then
  btn1=1 : btn2=0 : btn3=0
  parameters btn1=btn1, btn2=btn2, btn3=btn3
  endif

if GLOB_MODPAR_NAME="btn2" and (GLOB_CONTEXT=1 or GLOB_CONTEXT=5) then
  btn1=0 : btn2=1 : btn3=0
  parameters btn1=btn1, btn2=btn2, btn3=btn3
  endif

if GLOB_MODPAR_NAME="btn3" and (GLOB_CONTEXT=1 or GLOB_CONTEXT=5) then
  btn1=0 : btn2=0 : btn3=1
  parameters btn1=btn1, btn2=btn2, btn3=btn3
  endif


bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Karl Ottenstein
Moderator
F. wrote:
Try this (from brain to keyboard) in master:
Your brain is working better than mine as usual, Frank. 😉

Not sure what I was thinking with my original comment about LOCK or HIDE for the other params! Obviously, no other radio option could then be selected. Duh!

Karl "brain working better after dinner"
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
TomWaltz
Participant
Thanks, Frank. As soon as I'm done in XML he!! I'll be giving that a try.

FYI, I'm finding that it is much easier to create layer-to-layer translations with the Archicad translator by creating an "outline" in Archicad, then using an XML editor like oXygen to copy/paste in layer names from a layer list.

In fact, with two lists of layers, a spreadsheet, and a CSV conversion, I've almost gotten to the point where I don't type in a single layer name myself. (more on this later, when I have the whole thing figured out a little better.)
Tom Waltz
TomWaltz
Participant
Not sure what I was thinking with my original comment about LOCK or HIDE for the other params! Obviously, no other radio option could then be selected. Duh!
I almost went along with you on that one Karl!
Tom Waltz