2015-04-27 02:30 PM
2022-04-27 11:17 PM
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 🙂
2022-04-28 02:57 AM
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.
2022-04-28 05:55 AM
Thank you for your explanation!
2022-12-14 02:08 PM
sir, can you share a tutorial video about this? i try a lot but it doesn't work, thank you very much
2022-12-15 02:31 AM - edited 2022-12-15 02:31 AM
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.
Barry.
2022-12-16 11:49 AM
2022-12-18 06:59 AM
From the video, it appears that you did not complete the 2D script properly.
Barry.
2022-12-20 05:18 PM - edited 2022-12-20 05:21 PM
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.
I think it wouldn´t hurt if I check the manual about GDL coding myself a bit 🙂
2022-12-21 03:54 AM - edited 2022-12-21 03:55 AM
It looks like you have spelt ENDIF incorrectly.
Barry.
2024-06-06 07:04 AM
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,