BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

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?
18 REPLIES 18

Hi, thank you for answering, but I didn't manage to make it work. 

 

But does this maybe works in Archicad 25? if yes, then I wouldn´t waste too much time more in the 23 version, since I plan to update it soon 🙂

It will be the same in any version.

 

As I mentioned before, there are 16 layers for your own 2D displays.

Switching between them will require some GDL coding.

It could be as simple as adding a parameter asking the user to choose between plan and elevation.

Then if plan show fragment layer 1 , if elevation show fragment layer 2.

 

Or as Ling suggested, it could be automated by GLOB_VIEW_TYPE.

Then when you place it in plan it will show fragment layer 1 and when used in elevation or section it will use fragment layer 2.

 

It can get more complicated than that as you may want multiple (different) plan and/or elevation symbols.

I think I would just use option 1.

You may find some tree/shrub 2D objects already set up this way in the default library as an example.

 

Or as a third option - which is the simplest, just create separate objects for your plan and elevation views.

Use the same FRAGMENT2 command looking for layer 1.

Then when you are in the plan, you place a plan object.

When in elevation/section you place the elevation object.

No GDL coding required except for the FRAGMENT2 command.

 

Barry.

 

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Thank you for your explanation! 

 

sir, can you share a tutorial video about this? i try a lot but it doesn't work, thank you very much

 

I can do it in just one picture.

In your '2D Symbol' you can draw or add images in 16 layers (CTRL+L is the shortcut to turn layers on/off.

Then in the 2D script you use 'FRAGMENT2, layer, 0' to use a particular layer.

Simple IF statements can control what you want the user to show.

 

BarryKelly_0-1671067668609.png

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi Barry!

Thank you very  much for your answer!

I tried, but it didn´t work out. Do you maybe have time to check, where did I do a mistake?

 

Thank you, thank you!

From the video, it appears that you did not complete the 2D script properly.

 

BarryKelly_0-1671343143279.png

 

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Hi Barry, 

 

Thank you. but I actually still get the same error. I get a positive message when I check the script but an error, when i save the object.

 

1.jpg2.jpg

 

I think it wouldn´t hurt if I check the manual about GDL coding myself a bit 🙂

It looks like you have spelt ENDIF incorrectly.

 

BarryKelly_0-1671591283513.png

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Learn and get certified!