Return setup-script property names and the numeric code for their types from a user group such as structure or analysis group.
Syntax |
Description |
---|---|
out = queryuserprop("UserGroup") |
Returns the property names and types of the selected user group to a struct "out". |
Examples
The following scripts give the property names of the structure group "rect_pc":
select("rect_pc");
out = queryuserprop("rect_pc");
?out1=out.name;
?out.name{1};
?out.name{2};
?out.name{3};
?out.name{4};
?out.name{5};
The result will first give the length of the cell array, and the first five variable names:
Cell array with 8 elements
ay
material
index
ny
nx
This loop below gives all the names from the group:
for(n=1:length(out.name)){
?out.name{n};
}
ay
material
index
ny
nx
z span
ax
radius
Similarly, one can get the types of the properties. eg, for the first five properties:
?out.type{1};
?out.type{2};
?out.type{3};
?out.type{4};
?out.type{5};
2
5
0
0
0
Please refer adduserprop for details of the data types.
See Also
adduserprop, querynamed, queryanalysisprop , queryanalysisresult