BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.

Wallblock Edges

Lingwisyer
Guru

Hi all,

 

Anyone have some insight into how to get WALLBLOCK2{2} working? Trying to reference the Plaster Turn macro does not give much insight...

 

Not enough edges in generatrix.
WALLBLOCK2{2} 5, 2, 2,8 * (bLocalFill | bFitToSkinFill) + 32 * bFitToSkinFill + 128 * (bLocalFill & not(bFitToSkinFill)),
	ActSkinFillPen, ActSkinFillBkgPen,
	0,	0,
	-sin(dirAngle),-cos(dirAngle), -gs_fw_side_left*cos(dirAngle),gs_fw_side_left*sin(dirAngle),
	0,
	A/2,						0,			1,
	A/2 - gs_fw_side_left_i,	0,			1,
	A/2 - gs_fw_side_left_i,	-WIDO_SILL,	1,
	A/2,						-WIDO_SILL,	1,
	A/2,						0,			-1

 

 

 

Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
1 REPLY 1
AllanP
Advocate

I get the same error

 

Not enough edges in generatrix.
WALLBLOCK2{2} 5, 2, 2,8 * (bLocalFill | bFitToSkinFill) + 32 * bFitToSkinFill + 128 * (bLocalFill & not(bFitToSkinFill)),
	ActSkinFillPen, ActSkinFillBkgPen,
	0,	0,
	-sin(dirAngle),-cos(dirAngle), -gs_fw_side_left*cos(dirAngle),gs_fw_side_left*sin(dirAngle),
	0,
	A/2,						0,			1,
	A/2 - gs_fw_side_left_i,	0,			1,
	A/2 - gs_fw_side_left_i,	-WIDO_SILL,	1,
	A/2,						-WIDO_SILL,	1,
	A/2,						0,			-1

 

when i change the code to have the points not all overlapping then it works,(by adding 1 to opposite corners)

 

WALLBLOCK2{2} 5, 2, 2,8 * (bLocalFill | bFitToSkinFill) + 32 * bFitToSkinFill + 128 * (bLocalFill & not(bFitToSkinFill)),
	ActSkinFillPen, ActSkinFillBkgPen,
	0,	0,
	-sin(dirAngle),-cos(dirAngle), -gs_fw_side_left*cos(dirAngle),gs_fw_side_left*sin(dirAngle),
	0,
	A/2,						0,			1,
	A/2 - gs_fw_side_left_i-1,	0,			1,
	A/2 - gs_fw_side_left_i-1,	1-WIDO_SILL,	1,
	A/2,						1-WIDO_SILL,	1,
	A/2,						0,			-1

 

i think you just need to ensure that  all the coordinate points form a valid polygon.

if  WIDO_SILL =  0 or gs_fw_side_left_i  =  0 then it will not work.

 

also,

the  frame fill, fill pens etc should be set to what you want.

the default values of 0 will give you no visible fill, so set fills/edges/etc.

AllanP_0-1677804664403.png

 

i hope that helps.

 

 

I have been using ArchiCAD continually since ArchiCAD 4.5, 4.5.5, 5, 5.1, 6, 6.5, 7, 8, 8.1, 9, 10, 11, 12, 13, 15, 18, 21, 22, 25, now testing 27
Member of Architalk since 2003, but missed the migration to Graphisoft.
(where have all my original posts gone?)
Learn and get certified!