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

GDL
About building parametric objects with GDL.
SOLVED!

Zone data via attached label

Bruce
Advisor

Now we can attach labels in AC26, I thought I'd create a GDL label to match my company's zone stamp.  However, I can't find any way to extract all the necessary data from the attached zone.

 

There is the ZONE_RELATIONS request, but that doesn't return any area data.  I've also tried the ASSOCLP_PARVALUE request, but that doesn't work either.

 

In particular, I'm after the different types of areas; but I also need to retrieve parameter info.

 

Any ideas?

Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Jochen Suehlo
Advisor

This is documented in the GDL-Manual under the following header:

BUILT-IN PROPERTY GUIDE

Example Script for room number:

_actProperty = "Builtin.Zone_ZoneNumber"		! Room Numebr
m = request ("Property_Value_Of_Parent", _actProperty, _typeValue, dim1, dim2, _propertyValues)
_inhalt_2D[i] = _propertyValues

Note that not all zone parameters are available for labels.

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

View solution in original post

4 REPLIES 4
kuvbur
Enthusiast

Also faced the same problem. Looks like ASSOCLP_PARVALUE doesn't work with zone members. It is strange that such a restriction is not described in the documentation.

Structural engineer, developer of free addon for sync GDL param and properties

Bruce
Advisor

This is a brand new feature, so I imagine they will work through such things shortly...

Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Solution
Jochen Suehlo
Advisor

This is documented in the GDL-Manual under the following header:

BUILT-IN PROPERTY GUIDE

Example Script for room number:

_actProperty = "Builtin.Zone_ZoneNumber"		! Room Numebr
m = request ("Property_Value_Of_Parent", _actProperty, _typeValue, dim1, dim2, _propertyValues)
_inhalt_2D[i] = _propertyValues

Note that not all zone parameters are available for labels.

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Bruce
Advisor

Thanks Joachim - that's what I was looking for!

 

This solves 85% of what I need.  What is missing is the parameter requests for the zone.

 

Thanks again.

Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb