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

View name or ID request

Erich
Booster
I am hoping to revise my zone stamp to allow it to move to different x/y locations depending on the current saved view (ie floor plan, finish plan, electrical plan, etc) so that it can be moved out of the way of notes and symbols in one view and not affect the others.

In theory, this is fairly easy, however to do this I need to find a way to reference a saved view name or id. Looking through the GDL manual it does not appear that to be a request that can be used for this but I am hoping I am wrong. Does anyone know of a method? Can this be done?

Thanks
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
18 REPLIES 18
David Larrew
Booster
I haven't studied all of the new command structures that were added in AC13 yet, but AFAIK there isn't an easy way to do this...

In the past, I have managed to use some of the Model View Options and/or scale factors to change the appearance of the Zone Stamp. I have been asking for the ability to request and/or call Layers and Layer Combinations forever. Still waiting.
David Larrew, AIA, GDLA, GSRC

Architectural Technology Specialist

a r c h i S O L U T I O N S



WIN7-10/ OSX 10.15.7

AC 5.1-25 USA
Erich
Booster
David,

Yes, I too have adjusted object and stamp appearance based on MVO options or scale but not based on a saved view. I will play with it some more this weekend and see what I can come up with. I am beginning to think that perhaps autotext might offer a means to address this. Has anyone done this successfully?
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
It can be done thanks to the new LibraryGlobals.
1 Create a new libraryglobal "YourLibraryGlobalName"(choose subtype Drawing symbol/Library Global Settings).
2 Make a parameter for instance BooleanUseOffset, write a UI in the library global.

UI_INFIELD{3} "BooleanUseOffset", 10, 10, 265, 18,
7, "", 2, 1, 0, 0, 0, 0,
1, `Use offset`, 0,
2, `Use offset`, 1

3 Then in the zone you create your offset script.
Before that you write this:
success = LIBRARYGLOBAL ("YourLibraryGlobalName", "BooleanUseOffset", reqBooleanUseOffset)
IF success > 0 AND reqBooleanUseOffset THEN

!here comes your offset script

ENDIF

So now when you set the offset on in the Model View Options Combination you will get the offset, and otherwise the original position. Note that this way you can only modify the offset when it is turned on in the MVOC.
Erich
Booster
Yeah...but I am using AC 12 not 13.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
In case of AC 12 you can abuse the Story view point type, which is the predecessor of the Library Global. No need to create a libraryglobal, just do a request in the zone.

success = request("Floor_Plan_Option", "", reqBooleanUseOffset )
IF success > 0 AND reqBooleanUseOffset THEN

!here comes your offset script

ENDIF

Advantage of this request is that is stored with each view. I hope this will work for you.
Erich
Booster
As I understand the Floor_Plan_Option, and I have used it for a number of objects previously, it will only work with the Story Viewpoint Type under the GDL Options of the Model View Options. This works great if you need a different view of the object in a ceiling plan view as opposed to a floor plan view. However, if you have two different floor plan views (say a finish plan and an electrical plan) then this does not work.

Mostly I was hoping against hope that there might be an option I have missed.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
Erich

I have created something similar here for and have used a mix of CONSTR_FILLS_DISPLAY, WINDOW_DOOR_SHOW_DIM and FLOOR_PLAN_OPTION. This has given us the ability to have 4 different plan locations from the one object.

This is the guide I use in the 2D script.
!!!!CON_FILLS_DISPLAY GUIDE!!!!
!4 = Brochure Plan
!6 = Floor Plan
!1 = Elec Plan
!6 = Sketch + Ceiling Plan (floor_op = 1)
Erich
Booster
Kristian,

Interesting thought for a work around the problem. While it is not universal, it could work for the way we set up our drawings with some consideration.

Thanks for the idea.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
Erich

Yeah it certainly isn't a universal solution but our company is lucky in that we have a very refined company template so it gives me the ability to create library parts like this knowing it is going to work on every project!

No worries at all, good luck.