Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

GDL: Call [User Defined]

Lingwisyer
Guru
Hi all,

Is there a way to Call a user defined object? Turn it into Parameter?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
7 REPLIES 7
Barry Kelly
Moderator
I'm not clear on what you are trying to do here.
Normally when you call an object, you are passing parameter values to it.
It is possible to call an object in the parameter script, then if you have the same parameters in your calling object they can use all of the VALUEs from the called object.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru
Browse loaded objects, retrieve name of selected object and save it as a parameter value.

Curiosity. Was there not an object someone had made that could be used to scale and rotate another object along a chose axis? Wonder how that worked.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
call as parameter is done in all "custom components" like custom door leaf or so.

we can use call 2 way: call "object_name".... or call object_name, so the first can be placed a text string parameter as argument of the call.

Piotr
Barry Kelly
Moderator
Lingwisyer wrote:
Curiosity. Was there not an object someone had made that could be used to scale and rotate another object along a chose axis? Wonder how that worked.
You mean the "Rotator" object that can be found in BIMcomponents?
It doesn't scale and you can't browse for the object name, you have to type it in (and if it is in the loaded library it will find it).

Custom components (i.e. door leaf, handle, etc) can be listed as a parameter and they are automatically found in the loaded library based on the subtype.
Maybe look a door object that calls a custom leaf.
I can't remember without investigating how they get the list of available custom components.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Barry Kelly
Moderator
Barry wrote:
You mean the "Rotator" object that can be found in BIMcomponents?

It is password protected unfortunately.
So you can't see the script.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru
Barry wrote:
It doesn't scale and you can't browse for the object name, you have to type it in (and if it is in the loaded library it will find it).

Oh. Been a long time since I looked at it and I could not find it... seems like I remembered it's functionality wrong...

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Jochen Suehlo
Moderator
There once was an object made by Karl Ottenstein named Skewer, which used that functionality.
You can download it here:
http://www.opengdl.org/Default.aspx?tabid=2060&language=de-DE
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de