Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Extending REQUEST Floor_plan_option

derekjackson
Expert
Hi,
I've been tasked with creating an object that responds to different styles of plan. For example, in a simple GA plan, the object just needs to be represented by a simple outline, but in a presentation quality plan, it needs to use full colour, extra detail, etc.

My first thought was to create a parameter in the object that allows the user to pick the style, but this won't do the job (for various reasons). What we're after is a way of automating it, based on a preset standard. Our IT guru has suggested relating it to the Model View options - we'll create two preset Model Views, and when the user changes this, all objects change as a result.

So... Is there a way of extending the REQUEST Floor_Plan_Option command? It seems to be limited to floor plans and ceiling plans (0 or 1).

My code is below - it never seems to draw the line:
n = REQUEST("Floor_Plan_Option", "", modelview)

IF (modelview = 0) THEN
	RECT2 0,0, 1,1
ENDIF

IF (modelview = 1) THEN
	CIRCLE2 0,0, 1
ENDIF

IF (modelview = 2) THEN
	LINE2 0,0, 1,1
ENDIF

If not, is there any other Request or global variable that I haven't come across that would do the job perhaps?

Any ideas welcome...
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
4 REPLIES 4
Anonymous
Not applicable
What version are you using? Because AC13 has the ability to create a so called LibraryGlobal
Anonymous
Not applicable
derekjackson wrote:
Hi,
I've been tasked with creating an object that responds to different styles of plan. For example, in a simple GA plan, the object just needs to be represented by a simple outline, but in a presentation quality plan, it needs to use full colour, extra detail, etc.
The easiest thing to do in this case is to link your object behavior to scale changes using the global variable "GLOB_SCALE". You can this way link different scales to different detailing levels. For example 1:200 and up simple outline, 1:100 symbolic representation, 1:50 and under detailed and colour
derekjackson
Expert
We're still in AC12, unfortunately.

Linking to scale won't work, as we tend to work on a range on building sizes so all scales are used for normal work. Although I suppose we could predefine similar scales, for example '1:100 Technical', '1:100 Graphic', '1:50 Technical', '1:50 Graphic', etc. Would this work, or does GLOB_SCALE only look at the actual number (ie 100 or 50 in these cases), so it wouldn't be able to tell the difference between Technical or Graphic?

Any other ideas? We basically need a way for the architects to be able to change a setting as they output the drawing, that then affects the object - basically, we can't rely on the fact that people can change parameters in the object itself, as they won't bother when in a hurry...
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
David Maudlin
Rockstar
derekjackson wrote:
Although I suppose we could predefine similar scales, for example '1:100 Technical', '1:100 Graphic', '1:50 Technical', '1:50 Graphic', etc. Would this work, or does GLOB_SCALE only look at the actual number (ie 100 or 50 in these cases), so it wouldn't be able to tell the difference between Technical or Graphic?
Derek:

This won't work, GLOB_SCALE only returns the scale as a number with no additional variables. The LibraryGlobal tied to MVOs was created to deal with this issue, in version 12 (and earlier) you only have Floor_Plan_Option to use.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!