Boolean Interaction via GDL???!!!
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-21 09:45 AM
ā2005-01-21
09:45 AM


Is it possible for two objects to interact themself via GDL???
I mean:
I wrote an object, say a box1, that has a cylinder that comes out from a side; I place another obj., say another box (box2) but without that cylinder. The cylinder of box1 intersect box2:... is it possible for box1 to tell (without using AC boolean dialog placed in EDIT>BOOLEAN OPS.) box2 to have a hole in its wit the shape and dimensions of the cylinder???
Like the image attached...
Thank you.
PWD
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-21 09:27 PM
ā2005-01-21
09:27 PM
PWD wrote:I think Graphisoft will do it for you personally if you ready to pay the sum
Hi all... here is a new 100.000.000 euros question![]()
![]()

Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-24 09:04 AM
ā2005-01-24
09:04 AM
So, I think that I have to start to put some money to my piggybank...
Only GS could do it for me?
Thanks
PWD
Only GS could do it for me?
Thanks
PWD

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-24 06:29 PM
ā2005-01-24
06:29 PM
PWD wrote:Maybe you should ask also here:
So, I think that I have to start to put some money to my piggybank...
Only GS could do it for me?
Djordje
ArchiCAD since 4.55 ... 1995
HP Omen
ArchiCAD since 4.55 ... 1995
HP Omen
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-24 06:59 PM
ā2005-01-24
06:59 PM
Maybe you should ask also here:Why?
http://archicad-talk.graphisoft.com/viewtopic.php?t=5315


In that thread they wrote about animation...
I need only to use an object to make a hole into another, without animation and without using AC boolean interface.
An example:
obj_with_hole=EXT_SUBTRACT (box2, box1)
Unfortunately EXT_SUBTRACT does not exist...

Is it possible to emulate it with the code?
Thank you
PWD

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-24 07:01 PM
ā2005-01-24
07:01 PM
PWD wrote:Ooops!Maybe you should ask also here:Why?
http://archicad-talk.graphisoft.com/viewtopic.php?t=5315 ![]()
![]()
In that thread they wrote about animation...
Djordje
ArchiCAD since 4.55 ... 1995
HP Omen
ArchiCAD since 4.55 ... 1995
HP Omen

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-24 07:07 PM
ā2005-01-24
07:07 PM
PWD wrote:If you want an arbitrary object to be able to automatically cut a whole in another arbitrary object, then, yes, only GS can do that for you because there is no concept of "collision" or "context awareness" in GDL.
Only GS could do it for me?
However, if YOU are writing both Box1 and Box2, then you can use very round-about tricks such as those used by our respected colleague Laurent Godel (GDLGuru) from whom we have not heard in a few years. I'm thinking of his "driller" library
If the objects are well defined and known to each other, then you can use an external file to store their locations and attributes (cylinder size, orientation, etc.) [each object updates that file] and each object can read that file and determine the interferences and perform (internally) the needed boolean operations by replicating the mass of the interfering object.
This is a LOT of work, and I wouldn't recommend it unless the behavior was absolutely essential to what you're trying to do. And, I'm not sure it will work, since I'm not sure that when you do a 'rebuild' after moving some objects, that their scripts are called again if AC thinks nothing has changed about their size. Would have to experiment, or else someone else here may know.
Karl
AC 28 USA and earlier ⢠macOS Sequoia 15.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2005-01-24 07:27 PM
ā2005-01-24
07:27 PM
Djordje,
Karl,
I think I'll write only one object that contain some groups as Djordje described...
Thank you all.
PWD
Ooops!in that thread they wrote about an obj. that contains groups nested into other groups but all into the same object... I'm writing of some objects...
http://archicad-talk.graphisoft.com/viewtopic.php?t=5370
Karl,
This is a LOT of work, and I wouldn't recommend it unless the behavior was absolutely essential to what you're trying to do.Right...
I think I'll write only one object that contain some groups as Djordje described...
Thank you all.
PWD