problem with background fill for newly created .gsm object
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-28 12:26 PM
2009-11-28
12:26 PM
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-28 03:10 PM
2009-11-28
03:10 PM
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
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
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-29 07:24 PM
2009-11-29
07:24 PM
Here is the source code for my .gsm object. Wich part should i change, so that i have that cover background fill?
2D script:
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-30 02:00 PM
2009-11-30
02:00 PM
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
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
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-30 04:10 PM
2009-11-30
04:10 PM
Nedostizni,
Please attach your GDL object next time to the post.
No need for hundreds of lines of GDL code that looks like spam.
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-Ac28
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-11-30 05:02 PM
2009-11-30
05:02 PM
Hi Folks,
David:
David:
David wrote:Just to clarify... I noticed a typo error: the correct alternative command is PROJECT2{2} 3,270,2
In the 2D Script, you would change the PROJECT2 3,270,2 command to the PROJECT2 3,270,2{2} ...

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2009-12-01 03:38 PM
2009-12-01
03:38 PM
Braza wrote:Oops! Thanks Braza, corrected.
Hi Folks,
David:David wrote:Just to clarify... I noticed a typo error: the correct alternative command is PROJECT2{2} 3,270,2
In the 2D Script, you would change the PROJECT2 3,270,2 command to the PROJECT2 3,270,2{2} ...
David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14