GDL
About building parametric objects with GDL.

Edit 2d-symbol of created object

Anonymous
Not applicable
Hi!

I'm trying to create my own library object based on a morph cube. It's just a very simple object that should be a displayed as a cube in 3D and elevation but in plan I want it to show as a lamp symbol.

How do I edit the symbol visible in plan?
25 REPLIES 25

You are using the parameters incorrectly.

You need to be checking for the value of the parameter.

For a boolean it is 1 or 0 (on or off).

For a text parameter you need to be using the value typed into that text parameter - in tour case "SB"

 

BarryKelly_0-1717650827164.png

 

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

That's great, thank you for that.

 

Cheers,

ArchiCAD 19 to 27
Windows 11
Lingwisyer
Guru

For the boolean, you do not actually have to put the value, you can just write "IF [parameter] then". Using this same notation, you can utilise it within sums, usually to decide whether or not to add a value.

AC22-28 AUS 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

Very cool, everyone! I'm also trying to learn about object creation. Could someone help me? I tried to set a fixed representation — one for the floor plan and another for the elevation/section — but I can't get anything to show up in the elevation or section views at all. Is there something else I need to do? It seemed simple in the posts.

 

Marcelov_0-1746367924179.png

 


Sem título.jpg
Karl Ottenstein
Moderator Emeritus

Hi everyone - As this thread has gotten deeply into GDL coding, just a reminder that there is a separate area of this Community for coding GDL objects, which covers almost all of the replies to this thread:

https://community.graphisoft.com/t5/GDL/bd-p/forum-gdl

This "Libraries & Objects" forum is primarily about using library parts and managing libraries, and does include 'save as object' type objects.  The official description on his forum's page is "About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc."

 

As soon as issues jump into creating or modifying GDL, the GDL forum is the right place to continue. 😀

PS I think the GDL forum is overlooked / not found, over and over, because it is "hidden" in the "Developer Hub" - yet nobody discussing GDL here would likely consider themselves "developers" and so likely never even looks at that menu.  In the "old" days, the GDL forum was part of the main Community... something that the Community team might want to reconsider.

AC 28 USA and earlier   •   macOS Sequoia 15.4, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Laszlo Nagy
Community Admin
Community Admin

I have moved the topic to the GDL forum.

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