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.

Libray Part that changes with different layer combinations

Chadi SAROUFIM
Contributor
Is there a way that when changing a layer combination the line types of an object changes. I am looking for something similar to when changing the scale the object looks different.

ie. if layer combination is "tiling" then object would have "solid" lines
if layer combination is "reflected ceiling" then object would have "dotted" lines

The idea is that I want to show the furniture in dotted lines in the reflected ceiling layouts. What I am doing now is exploding the object, emptying the fills and converting the solid lines to dotted.
-------------

Chadi Saroufim, Assoc. AIA

M. Arch & M. Urban Design, Partner

Idepconsult – Mounir Saroufim and Partners



ArchiCAD 23 INT

Windows 11
5 REPLIES 5
Karl Ottenstein
Moderator
See:
http://archicad-talk.graphisoft.com/viewtopic.php?t=9019
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
rocorona
Booster
From GDL User Manual:
REQUEST ("floor_plan_option",""storyViewpointType)
Returns the story viewpoint type which is set in the Model View Options. 0 stands for "Floor Plan", 1 stands for "Ceiling Plan".
_________________

--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________
Chadi SAROUFIM
Contributor
Dear Roberto,

I have tried your script example but failed to understand how to use it.
Would you be kind enough to create for me one sample with a rectangle that changes from solid line to dotted when changing the model view options.

Thank you for you help.
-------------

Chadi Saroufim, Assoc. AIA

M. Arch & M. Urban Design, Partner

Idepconsult – Mounir Saroufim and Partners



ArchiCAD 23 INT

Windows 11
rocorona
Booster
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
_________________
_________________
Chadi SAROUFIM
Contributor
Thank you Roberto.
-------------

Chadi Saroufim, Assoc. AIA

M. Arch & M. Urban Design, Partner

Idepconsult – Mounir Saroufim and Partners



ArchiCAD 23 INT

Windows 11
Learn and get certified!