In the UI block, I created a "Specify Plane" Selection. Once I select a plane in Nx, I would like to get the selected datumPlane in nxopen.
I used the following method, but it doesn't work.
std::vector<NXOpen::TaggedObject *> TagObjectReadData = this->plane0->GetSelectedObjects(); NXOpen::DatumPlane *datumPlane1(dynamic_cast<NXOpen::DatumPlane *>(TagObjectReadData));
I would be glad that someone could give me some suggestion on how to obtain the datumplane selected from the UI block.
"Specify plane" does not necessarily return a datum plane. The user may pick an existing datum plane, but they could also specify a plane by picking: a planar surface, three points, a linear object and a point, etc etc.