Archicad C++ API
About Archicad add-on development using the C++ API.

Passing information from API to Object

TomWaltz
Participant
OK, here's the million dollar question:

I'm working on an add-on that would allow a user to set what their drawing type is (ceiling, demo, mechanical, etc). I also want to make objects that can REQUEST that setting, and be able to perform IF-THEN operations on the information.

I've been poking around a lot, but cannot seem to find an example in the DevKit on how to do this, or any real REQUEST documentation that explains anything useful.

Has anyone else seen such a beast?
Tom Waltz
6 REPLIES 6
Karl Ottenstein
Moderator
To program new REQUESTs you need the GDL dev kit, Tom. Talked about elsewhere in this forum - you have to make a written request for it specifically:

http://archicad-talk.graphisoft.com/viewtopic.php?p=19695#19695

But, maybe you were asking something else.

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
TomWaltz
Participant
Karl wrote:
To program new REQUESTs you need the GDL dev kit, Tom. Talked about elsewhere in this forum - you have to make a written request for it specifically:

http://archicad-talk.graphisoft.com/viewtopic.php?p=19695#19695

But, maybe you were asking something else.

Karl
no, I think that was exactly what I wanted.

If I can get this one to work, you may see me getting into the add-on business myself. Ceiling and Demo plans have LONG been weaknesses in Archicad. Although, I have a feeling this is going to be a pretty long hobby-project for me, not something I can really justify huge amounts of company time one... kind of like a few other things I'm doing! 😉
Tom Waltz
Karl Ottenstein
Moderator
TomWaltz wrote:
... you may see me getting into the add-on business myself.
That'll be great! I see you're already selling GDL objects at OOL. 😉

Keep it coming. 😉

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
TomWaltz
Participant
Karl wrote:
TomWaltz wrote:
... you may see me getting into the add-on business myself.
That'll be great! I see you're already selling GDL objects at OOL. 😉

Keep it coming. 😉

Karl
yeah, I finally developed a few things that were not "K&A property" and could release on my own!
Tom Waltz
Anonymous
Not applicable
I do this by using a glob_user variable. I have a library part which I maintain a single instance, if the users want to change modes they change the settings of this library part which change the glob_user variable.

I think this would only work in a controlled enviroment as some 3rd party developers may also use these variables for some strange reason. For me my users only use my library parts and my addon - maybe I should get the gdl dev kit.
TomWaltz
Participant
adambutler wrote:
I do this by using a glob_user variable. I have a library part which I maintain a single instance, if the users want to change modes they change the settings of this library part which change the glob_user variable.

I think this would only work in a controlled enviroment as some 3rd party developers may also use these variables for some strange reason. For me my users only use my library parts and my addon - maybe I should get the gdl dev kit.
That's a good idea, but not quite what I was after. I'm looking to make this something that is viewset dependent, so users can place an object once, and have it alter itself from quickview to quickview. That way when they update in Plotmaker, they do not need to worry about what the current mode was set to, only what it was when they defined a view.

I've got a little start on it, and looks promising so far.
Tom Waltz