The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Topics specific to the scripting and development of Library Parts and Libraries using Param-O or the Geometric Description Language – GDL. (Example: How do you use “REQUEST” GDL commands?)

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, Gordana Radonic, nbalogh, gkmethy, mnguyen, rmasaki, Akos Somorjai, Peter Baksa, Csilla Mai

#328360
Hello,

I use patches through labels so that my 2D drawings follow my 2d and 3D objects (in elevation too). My wish is to find a way to make an object followed by another object or any point : a bit like a label but containing a 3D script. Is it possible?

Link to my Label/Patch exemple : download/file.php?id=45197
#328362
An object can of course CALL another object, but that means you will have to edit the main object script so that it CALLs the second object with the correct parameters.
And it will not work for other elements.

The only other way I can think of to do this is by 'Grouping' them together.
But of course groups can be suspended so the items may get moved separately.

The label can follow an element as you have discovered.
But it is a built-in Archicad feature and not a programmable GDL option.


Barry.
#328366
Hmooslechner wrote: Wed Jun 16, 2021 8:17 am Its a wish!
You think it's a Wish or you know it is impossible with AC24 ?
I have to get the answer about my question before ;)

Unfortunately, calling control and using groups is not what I'm looking for. :|

I am thinking about a GDL MEP command because I already see MEP object follow another one.
To be continued...
#328376
Christophe Fortineau wrote: Wed Jun 16, 2021 9:17 am I am thinking about a GDL MEP command because I already see MEP object follow another one.
To be continued...

Now you are getting into the realms of an add-on.
MEP is an add-on (now built into Archicad, but still an add-on).
The objects would probably have to have their own special subtype (as MEP objects do) and their own special parameters so the information can be passed from one object to another.
It might be possible that way, but I don't think it will work with non-object elements.


Barry.
#328384
Thanks Barry,

How to link a 3d element to another ?
With railing tool ?
1 - I save as a 3d element like a railing post.
2 - Then I link a tiny railing with this new library part.
3 - Finaly I tryed to modify GDL inside this library part to be able to call other through railing tool interface...

Like this :
(30.88 KiB) Downloaded 6 times
I put rotation and scale command to be able to change called element into railing tool interface.

It is necessary to purge some railing parts, post, bottom rail, etc. and second defect it is necessary to define a segment on which to place our diverted railing so that it remains associated with its support. This works very well !
It would be great to be able to create a single point railing with one baluster :wink:
#328611
Hmooslechner wrote: Fri Jun 18, 2021 4:55 am And in the railingtool, GDL-Objects loose their builtin ability for editabele hotspots.
Hello Hmooslechner,

I added a MUL command to allow scaling of my called object :wink:

Here is a demo :
(1.53 MiB) Downloaded 13 times