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

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

GLOB_CUTPLANES_INFO [4]

Anonymous
Not applicable
Hello,
Could anyone direct me to information on the use
of the global variable GLOB_CUTPLANES_INFO [4].
I have found a statement declaring it's existence
in the AC 10 GDL manual but not how to use it.
I have found no reference to it in AC help online.
Directing me to a library part in AC 10 or AC 12
that uses this global variable in it's scripts
would be fine.
Thank you,
Peter Devlin
8 REPLIES 8
Anonymous
Not applicable
Hello,

I do not know if you find this useful, but here is an example to
use the GLOB_CUTPLANES_INFO[1]. The object's 2D shows the
solid innard fill only if the cutplane actually cuts thru it.

The other GLOB_CUTPLANES_INFO values refer to the values given
AC Set Floor Plan Cutplane dialog as mentioned in the manual.

Here is the master or 2D code;


define line_type "It's above"	1, 2, 0.0002/A_*100, 0.0002/A_*100
define line_type "It's below"	1, 4, 0.0006/A_*100, 0.0002/A_*100, 0, 0.0002/A_*100
define solid_fill "Innards"
set fill "Innards"

!--we are cutting above the object
if GLOB_CUTPLANES_INFO[1] > zzyzx then
	line_type "It's below"
	frame_fill= 1+0+4!--show just the edge
endif

!--we are cutting the object
if GLOB_CUTPLANES_INFO[1] >=0 & GLOB_CUTPLANES_INFO[1] <=zzyzx then
	line_type 1!--solid
	frame_fill= 1+2+4!--show both edge and innards
endif

!--we are cutting below the object
if GLOB_CUTPLANES_INFO[1] < 0 then
	line_type "It's above"
	frame_fill= 1+0+4!--show just the edge
endif

poly2_ 4, frame_fill,
	0,	0,	1,
	a,	0,	1,
	a,	b,	1,
	0,	b,	1

Hope this helps.


Regards, Juha
Anonymous
Not applicable
Hello Juha,
Thank you for posting back.
Yes, your sample code indeed helps.
Presumably, one can access each of
the four array values separately. I assume
one can assign one of the array values
to a variable like this.
bb=GLOB_CUTPLANES_INFO[1]

Is this correct ?
Thanks,
Peter Devlin
Ben Cohen
Advocate
Hi Peter

The best example of an object using the cutplanes would have to be any of the roofmaker parts. There is an option with the roofmaker library parts to display according to cutplane. It is done very well and of course uses 'GLOB_CUTPLANES_INFO'.
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
Hello Ben,
Thank you for your post.
I will check it out and get back to you.
It is a little late for me now, so it will be somewhat later.
Thank you,
Peter Devlin
Ben Cohen
Advocate
Hi Peter

Always happy to help a helper
Ben Cohen
Mac and PC
Archicad (Latest Version) aus
www.4DLibrary.com.au
Anonymous
Not applicable
Hello Ben,
I checked in the scripts of one of the RoofMaker
objects (rafter) in both AC 10 and AC 12 and
do not see GLOB_CUTPLANES_INFO invoked.
I can only conclude that this global is used in
the RoofMaker parts in AC 13 and later
or I am blind.
Thanks, Ben,
Peter Devlin
ztaskai
Graphisoft Alumni
Graphisoft Alumni
Hi,

Another good example is the "FloorPlanCutPlane" object of the Example Library in the Basic Library. You can find it in the Developers section of the GS Support page. BTW the skylight object use this, too. Dunno from which version on...

Regs,
Zsolt Táskai
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
Anonymous
Not applicable
Hello Zsolt,
Thanks for the tip.
I think I recall seeing the AC 10 skylight object
displayed as being cut at the floor plan cut plane.
I am going to check it out.
Thanks,
Peter Devlin