cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Documentation
About Archicad's documenting tools, views, model filtering, layouts, publishing, etc.

Create a Zone stamp that lists room dimensions

Anonymous
Not applicable
Here's a fun little challenge.

I'd like to have a zone stamp that can show the maximum length and width of the zone. so that it might look like:

Category
Room Name
Area
Length by width

A modification of Zone identifier 2 would be cool.

Thanks.

-Nathan Brauer
10 REPLIES 10
TomWaltz
Participant
I'd like to have a zone stamp that can show the maximum length and width of the zone. so that it might look like:
As a decent GDL, from what Archicad actually gives the GDL system access to, I don't think it can be done.

You might be able to through the C++ API, but it will not be easy...
Tom Waltz
Anonymous
Not applicable
TomWaltz wrote:
...from what Archicad actually gives the GDL system access to, I don't think it can be done...
You can "sort of" do it. I have a couple of graphical hotspots scrtipted in my zones the I can move around once the zone is placed. The zone then displays the dimension between the manually/graphically determined points.

Its not fully automatic or even perfect but very useful for displaying room dimensions on brochure plans...keep in mind that the desired room dimension you often want to communicate is not necessarily the actual bounding/overall dimensions of the zone.

Dan K
Anonymous
Not applicable
Dan wrote:
You can "sort of" do it. I have a couple of graphical hotspots scrtipted in my zones the I can move around once the zone is placed. The zone then displays the dimension between the manually/graphically determined points.
Dan K
Hi,
Could you give a hint or 2 on how you went about it?
Thanks.
Joseph
Anonymous
Not applicable
Joseph wrote:
Dan wrote:
You can "sort of" do it. I have a couple of graphical hotspots scrtipted in my zones the I can move around once the zone is placed. The zone then displays the dimension between the manually/graphically determined points.
Dan K
Hi,
Could you give a hint or 2 on how you went about it?
Thanks.
Joseph
Joseph,
If you script in the following info you will be able to display a length/width value in your zone. The text can be graphically moved anywhere and the length and width will update as you move the two graphical hotspots. Try it out and see.

Create the following "length" type Variables,Names & Default Values

Variable / Name / Value
AA / dimension text offset "X" / 0"
BB / dimension text offset "Y" / 0"
A2 / ref line start point "X" / 1'
B2 / ref line start point "Y" / 1'
A3 / ref line end point "X" / -1'
B3 / ref line end point "Y" / -1'

Copy the following into your 2d script

Hotspot2 0,0

!!!makes graphical hotspots for dimensions
HOTSPOT2 0,BB, 1001, aa,1+128 !Base
HOTSPOT2 aa,BB, 1002, aa,2 !Move
HOTSPOT2 -1,BB, 1003, aa,3 !Vector

HOTSPOT2 AA,0, 1004, bb,1+128 !Base
HOTSPOT2 AA,BB, 1005, bb,2 !Move
HOTSPOT2 AA,-1, 1006, bb,3 !Vector

ROT2 -W~

!!!makes graphical hotspots for start point of length line
HOTSPOT2 0,B2, 2001, a2,1+128 !Base
HOTSPOT2 a2,B2, 2002, a2,2 !Move
HOTSPOT2 -1,B2, 2003, a2,3 !Vector

HOTSPOT2 A2,0, 2004, b2,1+128 !Base
HOTSPOT2 A2,B2, 2005, b2,2 !Move
HOTSPOT2 A2,-1, 2006, b2,3 !Vector

!!!makes graphical hotspots for end point of length line
HOTSPOT2 0,B3, 3001, a3,1+128 !Base
HOTSPOT2 a3,B3, 3002, a3,2 !Move
HOTSPOT2 -1,B3, 3003, a3,3 !Vector

HOTSPOT2 A3,0, 3004, b3,1+128 !Base
HOTSPOT2 A3,B3, 3005, b3,2 !Move
HOTSPOT2 A3,-1, 3006, b3,3 !Vector

DEL 1

DEFINE STYLE "RM_Size" "Times New Roman", 14'-0", 5, 1
SET STYLE "RM_Size"

!!!makes dimension text string
xx=abs(a3-a2) !determine width
yy=abs(b3-b2) !determine height
TEXT2 aa, bb, STR("%0.1ffi",xx)+'x '+STR("%0.1ffi",yy)

!!!HTH Dan K
Rakela Raul
Participant
joseph,
when ready can u post it ??
thx in advance
MACBKPro /32GiG / 240SSD
AC V6 to V18 - RVT V11 to V16
Dan wrote:
If you script in the following info
That is a *super*-tip. Great idea. Thanks.
Anonymous
Not applicable
DAN K. ROCKS!!!!

Way cool, nice job. It took me a few tries to understand how to control where the dims will be taken from, but its very cool.

Deserves some sort of award. Maybe tech tip of month?

Thanks!

-Nathan
Brad Elliott
Booster
I found this a few Months ago and it is terrific. However, I would like to be able to turn the L X W on & off and have been unable to figure out how to do it? Can anyone give me some advice on what to add to be able to do that?
Mac OS12.6 AC26 USA Silicon
M1 Macbook Pro
Aussie John
Newcomer
This info obviously is available to programmers otherwise how would the internal elevations find its limits.
What I would like is for section markers to automatically stretch to fit the zone.
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]