2023-04-25 07:50 PM - edited 2023-04-26 03:21 AM
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
It says there is no problem with GDL, but it doesn't seem to be created.
What's wrong?
Solved! Go to Solution.
2023-04-26 06:26 AM
you can use it for 2d scripts
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
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.
2023-04-26 04:29 AM - edited 2023-04-26 04:30 AM
Hi,
you cannot use a fill defined in the script
https://gdl.graphisoft.com/reference-guide/directives
Inline fill and line_type attributes (defined in master script or 3d script) are not accepted.
2023-04-26 04:40 AM
Then, where is define Fill used?
2023-04-26 04:41 AM - edited 2023-04-26 04:42 AM
for floor plan fills
(2D script for 2d Objects)
2023-04-26 04:49 AM
DEFINE SOLID_FILL "DD", FILLTYPES_MASK 7
text2 0,0,ind(FILL, "DD")
I can't test it in 2D script?
2023-04-26 06:26 AM
you can use it for 2d scripts
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
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.
2023-04-26 06:38 AM
thank you
I thought -1 was a failure... ^^
Have a happy time.. ^^
2023-04-26 06:48 AM - edited 2023-04-26 06:49 AM
also
most people set up a MASTER_GDL script to create these fills
https://gdl.graphisoft.com/reference-guide/inline-attribute-definition
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.
2023-04-26 12:41 PM - edited 2023-04-26 12:42 PM
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
2023-04-26 01:15 PM
thank you so much. ^^
text2 0,1,GLOB_FILL_INDEX_SOLID
text2 0,0,GLOB_FILL_INDEX_BACKGROUND