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

problem with background fill for newly created .gsm object

Anonymous
Not applicable
I have created an .gsm object using a Truss maker. Saved it as .gsm, and then imported into a .pln drawing. The problem is the background fill: when i enter to the objects dialog settings, and edit it`s background fill, it seems like it is not working. I tried to change the outline color also, and it is working, but the background fill not. Why is that?
6 REPLIES 6
David Maudlin
Virtuoso
nedostizni:

I created an object using TrussMaker, and also found that the fill parameters do not work. In looking at the GDL code on the 2D Script, I see that the code generated from the add-on uses the PROJECT2 3,270,2 command, which does not have parameters for the fill (actually, there is no fill with this command), so no fill is being generated, so the fill parameters in the part will not work. It is a bug, either the fill parameters should not be created as part of the object, or the PROJECT2{2} command should be used to generate the fill.

Short answer: the part has no fill.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
Here is the source code for my .gsm object. Wich part should i change, so that i have that cover background fill?


2D script:
PEN gs_cont_pen

PROJECT2 3,270,2

IF showSide THEN GOSUB 10
MUL2 a/5.750000,b/0.750000
HOTSPOT2 0.375000,0.375000
HOTSPOT2 0.375000,-0.375000
HOTSPOT2 -5.375000,0.375000
HOTSPOT2 -5.375000,-0.375000
HOTSPOT2 -2.500000,0.000000
LINE_TYPE axis
LINE2 -5.375000,0,0.375000,0
DEL TOP
IF showLine THEN GOSUB 20
END

Edited by Moderator.
Here was hundreds of lines of GDL code which is not OK,
useless for most people.
Users need to attach the GDL object i question instead.
So I deleted most of the code, since the question has been answered anyway.
Laszlo Nagy
David Maudlin
Virtuoso
nedostizni:

In the 2D Script, you would change the PROJECT2 3,270,2 command to the PROJECT2{2} 3,270,2 command, then use some of the parameters from the Master window in the variables of the command, plus a Set Fill command, to pass the settings of the library part variables to the 2D Script. See page 128 of the AC 12 GDL Reference Guide for an explicit explanation.

If you are learning GDL, this is not a bad place to start if you don't want to learn GDL, then you are left with the object as is.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Laszlo Nagy
Community Admin
Community Admin
Nedostizni,
Please attach your GDL object next time to the post.
No need for hundreds of lines of GDL code that looks like spam.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Anonymous
Not applicable
Hi Folks,
David:
David wrote:
In the 2D Script, you would change the PROJECT2 3,270,2 command to the PROJECT2 3,270,2{2} ...
Just to clarify... I noticed a typo error: the correct alternative command is PROJECT2{2} 3,270,2
David Maudlin
Virtuoso
Braza wrote:
Hi Folks,
David:
David wrote:
In the 2D Script, you would change the PROJECT2 3,270,2 command to the PROJECT2 3,270,2{2} ...
Just to clarify... I noticed a typo error: the correct alternative command is PROJECT2{2} 3,270,2
Oops! Thanks Braza, corrected.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14