License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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?
22 REPLIES 22

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
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

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
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

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
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

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
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

Hi Barry,

 

How does this work? Do you create parameters to change between the fragments?  If so, what parameter type do you create? I have tried the Boolean and I keep getting script errors, when I use the text type the object disappears. 

 

Or do you use another method to change between the layers of the object when using it in the plan? e.g. edit each object placed and then save as a new object? So you can only have 1 instance of the object place per project?

 

Thank you,


Script error when using Boolean parameter.JPGParameter page.JPG
ArchiCAD 19 to 27
Windows 11