We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

GDL object

Anonymous
Not applicable
I am new to GDL, so my question is probely stupid. My first object with parameters is a glaswall and it works almost like i want.
What i need help with is that the object dosent show in 2D and there are no hotspots in 3d.
I will attach the object i am talking about....
I am verry greatfull for any replays. thank you.
6 REPLIES 6
Erich
Booster
Omar,

The 3D and 2D views of all objects are separate. You have to script both of them. However, there are some cheats. In the 2D scripting window try writing the following code:
PROJECT2 3, 270, 2
This will tell ArchiCAD to look at the object from above and draw what it sees in 2D. Of course there are issues with this approach. If you use this frequently, or use parts that use this technique frequently, you will slow down the program. Also you may want a more symbolic view of the object in 2D than this provides. To handle these cases, you need to script the 2D yourself.

Also, I suggest that you add a signature (click the Profile link at the top of the screen) with information about your system and version of ArchiCAD. Sometimes correct answers depend on this information. In this instance, I know you are using a more recent version of ArchiCAD than I am since I could not open your part.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
WOW!!
That was a nice trick. Thank you Erich.
It was very helpful. Now i can see my objects in 2D. Is there a way i can use fill on the object, so that i can select it without trying to find the nobes in the corner of the object?
If you have any other useful tricks/codes i whould be more than greatfull..
Thank you.
David Maudlin
Rockstar
omar wrote:
Is there a way i can use fill on the object, so that i can select it without trying to find the nobes in the corner of the object?
The PROJECT2 will not do this, you will need to start to learn GDL scripting to accomplish this (and many other features). While saving objects from a .pln file (the 3D Script looks like this) can create simple (basically non-parametrtic) objects, the power lies in scripting.

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
Barry Kelly
Moderator
Have a look at PROJECT2{2}.
This allows you to set values for the fills.
PROJECT2{3} gives you even more control over how things look.

From the manual ...

The 2nd version PROJECT2{2}, together with a previous SET FILL command, allows the user to control the fill background, origin and direction of the
resulting drawing from the 2D script. The third version, PROJECT2{3}, adds the posibility to define which parts of the projected model are
required and to control separately the attributes of the cut and view part, including the line type. You can also generate the projection with actual
parameters set in the command.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Pertti Paasky
Expert
"The third version, PROJECT2{3}, adds the posibility to define which parts of the projected model are
required and to control separately the attributes of the cut and view part, including the line type. You can also generate the projection with actual
parameters set in the command. "

Is there an existing GDL object that shows parts?
Does it mean that you can split the 3d model to parts, which can be shown in 2d controlled by this command?
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Barry Kelly
Moderator
I don't have any working examples of this.
And apart from a cursory look at it I have never used it as I try and avoid PROJECT2 whenever possible.
It looks interesting though.

There is an explanation and example on the Self-GDL website (you will need to download the web control add-on from the Graphisoft web site).
But the link to the example file is not working at the moment.

http://www.selfgdl.com/2d_elemente/projection/c_PROJECT23/kompendium.php

Maybe if Frank Beister sees this he might be able to fix the link please?
I believe Frank is the driving force behind Self-GDL.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11