Geometry > Working with a Geometry Sequence > Building Geometry Features

Building Geometry Features
To generate the output objects of a feature, you must build the feature. Enter
model.geom(<tag>).run(<ftag>);
to build the feature <ftag> and all its preceding features (the features are built in the order from the first to the last). When the build has completed, the feature <ftag> becomes current.
To build all preceding features of the feature <ftag>, enter
model.geom(<tag>).runPre(<ftag>);
To build all features, including the Finalize feature and the virtual operations, enter
model.geom(<tag>).run();
Errors
If an error occurs when building a feature, the build stops, and the feature before the failing feature becomes current. The failing feature gets an error feature appended, which contains the error message. To access the error message, enter
String msg = model.geom(<tag>).feature(<ftag>).message();
To access the error feature, its message and detailed message, enter
String msg = model.geom(<tag>).feature(<ftag>).problem("error").getString("message");
String det = model.geom(<tag>).feature(<ftag>).problem("error").getString("details");
Warnings
After a successful build, a feature can get warning features appended, which contain warning messages. To access the first warning message, enter
String msg = model.geom(<tag>).feature(<ftag>).message();
To access the warning features, their messages and detailed messages, enter
String msg = model.geom(<tag>).feature(<ftag>).problem(<wtag>).getString("message");
String det = model.geom(<tag>).feature(<ftag>).problem(<wtag>).getString("details");
where <wtag> is warning1, warning2, and so on.