yesterday - last edited yesterday
I'm trying to extract data from a profile and memorize them in the parameters of an objects using REQUEST.
It seams this option is not possible.
This is the code I used in parameter script.
dim geometry []
dim nnn[]
dim xx[]
dim yy[]
n = REQUEST ("Profile_default_geometry", ar_profile_type, geometry)
nnn[1] = geometry [1]
for t = 1 to nnn[1]
xx[t] = geometry[1+(t-1)*5+1]
yy[t] = geometry[1+(t-1)*5+2]
next t
parameters xx = xx
parameters yy = yy
Do you never have this kind of issue?
Operating system used: Mac Apple Silicon Sequoia
11 hours ago
Curious to know what is the purpose of this?
| AC22-29 AUS 3200 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
10 hours ago
Not what you want to hear, in the GDL manual:
Compatibility: introduced in Archicad 21.
PROFILE_DEFAULT_GEOMETRY
n = REQUEST("PROFILE_DEFAULT_GEOMETRY", name_or_index, n1, n2, ..., nm,
x11, y11, edgeVisible11, vertEdgeVisible11, additionalStatus11, ...,
x1n1, y1n1, edgeVisible1n1, vertEdgeVisible1n1, additionalStatus1n1,
x21, y21, edgeVisible21, vertEdgeVisible21, additionalStatus21, ...,
x2n2, y2n2, edgeVisible2n2, vertEdgeVisible2n2, additionalStatus2n2,
...,
xm1, ym1, edgeVisiblem1, vertEdgeVisiblem1, additionalStatusm1, ...,
xmnm, ymnm, edgeVisiblemnm, vertEdgeVisiblemnm, additionalStatusmnm)
Returns the original geometric data of the profile identified by name or index.
Expression returns 0 and contains dummy return values (empty string or 0) if used in parameter script (or master scripts run as parameter script), causing additional warning.
You can use the values in the script, but you cannot use the "Parameters" command to assign the values to the objects parameters.
I hope this is useful.