2005-12-06 02:01 AM
2005-12-06 04:41 AM
hhd801 wrote:it's what zone stamps do isn't it? you could use an existing one or look at an existing stamp's GDL to see how it works . . .
I have a title block object and would like it to request Square footage from placed zones to calculate square footage to reflect in my object:
2005-12-06 05:02 PM
2005-12-06 05:26 PM
2005-12-06 06:02 PM
2006-03-16 10:32 PM
hhd801 wrote:It's ugly, but the Zones could write to a text file that your object then reads...
I appreciate all the responses on this topic. This board really helps having great people willing to help each other out.
Tom,
Thanks for the insight
I will do some more research. If I find something new I will post it.
Any other suggestions are greatly appreciated.
Thanks again
2006-06-01 08:41 AM
TomWaltz wrote:I am just trying to do exactly this but with no luck so far.
I think your question is whether non-Zone objects can report information about Zones.
The answer is "kind of"
You can use the REQUEST statement to get the Category, Name, and Room Number. I don't believe you can access areai, perimeter, or volume though.
2006-06-01 08:50 AM
2006-06-01 09:05 AM
F. wrote:Yep, zones are on and I have tried both manually placed and flood fill zones.
The request for ZONE_CATEGORY is fors zone stamp objects only.
ZONE_RELATION I got working a while ago. No time to test, but some hints: The zones are manual or automatic ones? There are double layered zones in this area? Zones are visible?
What is the return value of the command?
2006-06-01 09:09 AM
Barry wrote:You are right that "Zone_category" applies only to zone stamps and "Zone _relations" is for library parts. I have been doing a good bit of work with the latter lately and they are working as well as they can (I do wish the library parts could get more out of the zone than just name, rank and serial number). You do need to make sure that the part is actually in the zone - this is not always as obvious as it might seem.
I actually want my window to report which room zone it belongs to.
Couldn't get that to work so I just created a new object that just draws a circle in 2D and I place that object in a zone.
In the script (tried both master and 2D scripts) I have added the requests....
dummy=REQUEST("Zone_relations", "", cat_1, code_1, name_1, num_1, cat_2, code_2, name_2, num_2)
and
dummy_2=REQUEST("Zone_category", "", catname, catcode)
In both cases I get nothing returned in the variables.
However a zone stamp requesting exactly the same works fine for "zone category" but nothing for "zone relations".
I assume "zone category" only works with zone stamps and "zone relations" is for objects, but it doesn't seem to work.
Has anyone had any luck in this area or be able to shed some light on the subject please?
Barry.