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

GDL and SUBGROUP Materials

owen
Newcomer
hi,

Is there any way to control the material assignment of the Targets cut edges when using the SUBGROUP command in GDL?

It defaults to applying the material of the Operator. I need to have the equivalent of 'New Surfaces of Target will: Use Their Own Attributes' available in the SEO dialog within AC ... doesn't seem to be an option but thought i would ask the question before posting a wish.

cheers,

os
cheers,

Owen Sharp

Design Technology Manager
fjmt | francis-jones morehen thorp

iMac 27" i7 2.93Ghz | 32GB RAM | OS 10.10 | Since AC5
5 REPLIES 5
I did not need such thing, but I would try saving such objects with material inheritng as GDL...and than investigate the code...

Best Regards,
Piotr
Frank Beister
Moderator
In my research for selfGDL I haven't found a way to controlmaterial heritage of the cutted surface. IMHO: No.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Material definition must be inside each group.
The same for SECT_FILL or SECT_ATTRS and transformations.
Better control, for complex operations,
if you place this stuff AFTER each group definition.
group "operator 1"
	!!! ----- part 1 -----
	material mat1    ! red
	roty 90
	extrude ...
	del 1

	body -1

	!!! ----- part 2 -----
	material mat2    ! green
	roty 90
	mulx -1
	ruled{2} ...
	del 2

	body -1

	!!! ----- part 3 -----
	material mat3    ! blue 
	roty 90
	mulx -1
	ruled{2} ...
	del 2
endgroup

group "target 1"
	material matTarget    ! yellow
	prism_ ...
endgroup

placegroup subgroup ("target 1", "operator 1")

killgroup "operator 1"
killgroup "target 1"

image1.jpg
Frank Beister
Moderator
But you can't control, if the cutted surface has the material of the operator or of the target group.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
owen
Newcomer
Thanks guys ... looks like it can't be controlled simply though.

I took a look at the GDL of an object saved from the floorplan and the autoscript actually repeats the operator element for each target, reassigning the operator with the target material each time to get the same affect as the 'Use Targets Own Attributes' option.

I've actually switched from an SEO to using a CUTPOLY which does the job in this instance as all i needed was a simple extrusion SEO.

cheers,

owen
cheers,

Owen Sharp

Design Technology Manager
fjmt | francis-jones morehen thorp

iMac 27" i7 2.93Ghz | 32GB RAM | OS 10.10 | Since AC5