The programming is very minimal.
You need to setup some parameters as text type and then you need to define the values for these parameters.
For example I will create the parameter 'type'.
In the Parameter Script I will then define the values for it.
values 'type' 'type 1', 'type 2', 'type 3', 'type 4'
Parameter 'type' now has the values 'type 1', 'type 2' etc that I can pick when I go in to the settings of the object after I place it.
Now if you draw line work in the 2D symbol screen and make sure you use different layers for type 1, type 2, etc, you can control what is shown.
for example type 1 is drawn on layer 1, the 2D script then becomes
if type='type 1' then
FRAGMENT2 1,1
ENDIF
This is very basic coding.
See below for small object with this code (ArchiCAD19 object).
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nlArchiCAD 9-29NED FULL
Windows 11 Pro for Workstations
Adobe Design Premium CS5