cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Iterate thru GS::ObjectState list

BrunoValads
Booster

I'm handling with API_AddOnCommand and I'm trying to send a json to my addon but this json has an array field, that should be read in order to proceed. How can I iterate thru a GS::ObjectState when it's a list?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
BrunoValads
Booster

Oh found it in the LibraryManagement_Test.cpp example, which was using for array of strings and I adapted for an array of objects:

GS::Array<GS::ObjectState> arrayObject;
myObject.Get(myFieldName, arrayObject);

 

View solution in original post

1 REPLY 1
Solution
BrunoValads
Booster

Oh found it in the LibraryManagement_Test.cpp example, which was using for array of strings and I adapted for an array of objects:

GS::Array<GS::ObjectState> arrayObject;
myObject.Get(myFieldName, arrayObject);