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.
SOLVED!

ROOM_POLY_STATUS

JGoode
Advocate
Hello,

I'm trying to use room_poly_status to determine whether to display something in AC21.

However archicad doesn't seem to recognise it and says that there isn't a parameters called that.

How can I get this to work?

Thanks
ArchiCAD 23

Windows 10
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Palawat
Advocate
Just a simple text2 command.

I created a zone stamp sub-type, create a parameter "room_poly_status" and make it "integer" type.

In 2D script, it's just ;

text2 0, 0, room_poly_status

That's it.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs

View solution in original post

11 REPLIES 11
Barry Kelly
Moderator
ROOM_POLY_STATUS is only available to zone stamps.

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
JGoode
Advocate
Yes, that's what I am making. Am I correct in thinking that this command is the 'Construction Method' of the zone?
ArchiCAD 23

Windows 10
Barry Kelly
Moderator
Yes it just determines if it is a manually drawn zone, or auto fill to zone boundaries or auto fill to wall ref lines.

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
JGoode
Advocate
Is it working in AC21? It just seems to return the value of 0 rather than 1 / 2 so I'm unable to use it.

Here is an example of its use:
	if (room_area <> room_net_area) or (room_area <> room_reduced_area) or (room_area <> room_calc_area) or (room_poly_status = 0) then
		stamp_error = 1
	else
		stamp_error = 0
	endif
ArchiCAD 23

Windows 10
Palawat
Advocate
In "Zone Selection Settings" under "Name and Positioning", you will see options for "Zone Polygon".

If "Geometry method" is set to "Reference Line" and "Gross" is selected, ROOM_POLY_STATUS returns 2.
If "Geometry method" is set to "Reference Line" and "Net" is selected, ROOM_POLY_STATUS returns 1.
If "Geometry method" is set to "Manual" or "Inner Edge", ROOM_POLY_STATUS returns 0.

Tested with AC21

HTH
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
JGoode
Advocate
So I've tried this using this code:
	 if ROOM_POLY_STATUS = 0 then text2 0, 2, "0"
	 if ROOM_POLY_STATUS = 1 then text2 0, 2, "1"
	 if ROOM_POLY_STATUS = 2 then text2 0, 2, "2"
and it still doesn't seem to work. Any Ideas?
ArchiCAD 23

Windows 10
Palawat
Advocate
I'm afraid I ran out of idea.

Good luck.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
JGoode
Advocate
Do you have any example code which you have gotten to work?
ArchiCAD 23

Windows 10
Solution
Palawat
Advocate
Just a simple text2 command.

I created a zone stamp sub-type, create a parameter "room_poly_status" and make it "integer" type.

In 2D script, it's just ;

text2 0, 0, room_poly_status

That's it.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
Learn and get certified!

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!