We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.

Slave object followed another object

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 : https://archicad-talk.graphisoft.com/download/file.php?id=45197
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin
7 REPLIES 7
Hmooslechner
Moderator
Its a wish! Put it there in the right forum-Task!
AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
Barry Kelly
Moderator
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.
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
Hmooslechner wrote:
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...
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin
Barry Kelly
Moderator
Christophe wrote:
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.
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
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 : 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
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin
Hmooslechner
Moderator
And in the railingtool, GDL-Objects loose their builtin ability for editabele hotspots.
AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
Hmooslechner wrote:
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

Here is a demo :
Christophe - FRANCE
Archicad Designer and Teacher
Archicad 15 to 27 FRA FULL

OS 11.6 Big Sur - MacBook Pro 2017 - 16Go RAM
"Quality is never an accident ; it's always the result of an intelligent effort" John Ruskin