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.

Floor sensitive 2D projection?

matjashka
Enthusiast
Hi,

I have a simple parametric handrail object that was hand-coded in GDL.
Its 2D representation is based on 2D projection method.

I have no idea how to show only the lower part on the home floor while cutting the top, and vice versa: Show only the top part on the floor above. Doesn't have to be fancy, just an open end is fine.

Could you please advise? I have used some global context variables before but I don't know how to approach this.
Matt Krol [LinkedIn]
BHMS Architects and Planners, Chicago
AC 10 ... 26 USA
3 REPLIES 3
matjashka
Enthusiast
I was thinking about something like in the scheme below.

I could maybe tie the cut plane position to an editable hotspot and drag it where I want. But then I'm not sure how to make the cut planes effective only for the 2D projection of the object. In 3D, the whole object should be visible at all times.

(note: this is just to illustrate the GDL object content, not that I want the actual cut plane in 3D)
Matt Krol [LinkedIn]
BHMS Architects and Planners, Chicago
AC 10 ... 26 USA
Erich
Contributor
This will need to be scripted. You can use something like the following for the options you chose to display:
if GLOB_CH_STORY_DIST = 0 then
   'do something'  !! Home story
ENDIF


if GLOB_CH_STORY_DIST = 1 then
   'do something else'  !! One story up
ENDIF


if GLOB_CH_STORY_DIST = -1 then
   'do something else again'  !! One story down
ENDIF
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
matjashka
Enthusiast
Thanks Erich,

That's what I wanted. Works great.

I also included a GLOB_CONTEXT check in 3D script, so that the cut plane results are only effective in plan view.

Thank you very much!
Matt Krol [LinkedIn]
BHMS Architects and Planners, Chicago
AC 10 ... 26 USA
Learn and get certified!