GDL
About building parametric objects with GDL.
SOLVED!

I'm trying to make some background fills. What should I do?

LeeJaeYoung
Virtuoso

DEFINE TRANSLUCENT_FILL "DD" FILLTYPES_MASK 7,0,0,0,0,0,0,0,0,0

or

DEFINE SOLID_FILL "DD", FILLTYPES_MASK 7

 

SECT_FILL "DD",19,19,1

LeeJaeYoung_0-1682472016426.png

 

 

It says there is no problem with GDL, but it doesn't seem to be created.
What's wrong?

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution

you can use it for 2d scripts

AllanP_0-1682482469838.png

and then once placed, it gets added to the fill list (in italics to indicate its made as part of a library part)

and it gives an attribute id of -1

AllanP_1-1682482750042.png

but

 

if you put the code in a different library part,

that library part creates the fill  when the library is loaded,

and it can be used in a different library part.

AllanP_2-1682483201459.png

 

 

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?)

View solution in original post

9 REPLIES 9
AllanP
Expert

Hi,

you cannot use a fill defined in the script

https://gdl.graphisoft.com/reference-guide/directives

 

AllanP_0-1682476147330.png

Inline fill and line_type attributes (defined in master script or 3d script) are not accepted.

 

 

 

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?)

Then, where is define Fill used?

AC27 on window 11

for floor plan fills

(2D script for 2d Objects)

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?)

DEFINE SOLID_FILL "DD", FILLTYPES_MASK 7
text2 0,0,ind(FILL, "DD")

 

LeeJaeYoung_0-1682477356587.png

I can't test it in 2D script?

AC27 on window 11
Solution

you can use it for 2d scripts

AllanP_0-1682482469838.png

and then once placed, it gets added to the fill list (in italics to indicate its made as part of a library part)

and it gives an attribute id of -1

AllanP_1-1682482750042.png

but

 

if you put the code in a different library part,

that library part creates the fill  when the library is loaded,

and it can be used in a different library part.

AllanP_2-1682483201459.png

 

 

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?)

thank you
I thought -1 was a failure... ^^
Have a happy time.. ^^

AC27 on window 11

also

most people set up a MASTER_GDL script to create these fills

https://gdl.graphisoft.com/reference-guide/inline-attribute-definition

AllanP_0-1682484176757.png

 

but this method creates havoc when managing Attribute ID's.

so be very careful when using this method..

using library parts to create a fill places it in the lowest available ID in the attribute list.

making a fill using the fill menu places it after the highest ID in the attribute list.

 

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?)
kuvbur
Enthusiast

Since AC 22 you can use global parameter GLOB_FILL_INDEX_SOLID or GLOB_FILL_INDEX_BACKGROUND without Define

 

just SECT_FILL GLOB_FILL_INDEX_SOLID,19,19,1

Structural engineer, developer of free addon for sync GDL param and properties

thank you so much. ^^

text2 0,1,GLOB_FILL_INDEX_SOLID

text2 0,0,GLOB_FILL_INDEX_BACKGROUND
LeeJaeYoung_2-1682507325637.png

LeeJaeYoung_0-1682507254220.png

LeeJaeYoung_1-1682507285008.png

 

AC27 on window 11

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!