Hi Chadi,
mine wasn't a really a script example, but a simple and quick copy-paste from the GDL manual. And I realize now that there is an error in it (in the manual), with a missing comma.
Here is a working example of how it can be used:
(first of all you need to create two parameters called "One" and "Two", with the linetypes you want to use for plan view and for rev.ceiling)
dummy=REQUEST ("floor_plan_option", "", storyViewpointType)
IF storyViewpointType = 0 THEN
SET LINE_TYPE One
ELSE
SET LINE_TYPE Two
ENDIF
RECT2 0, 0, a, b
but, now the bad thing... it uses an option introduced in ArchiCAD 11, so it is NOT available for you since you use ArchiCAD 10...
_________________
--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________