Showing results for 
Search instead for 
Do you mean 
Reply

How to obtain datumPlane selected from "Specify Plane" in the Block UI Styler

Hello,

 

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[0]));

I would be glad that someone could give me some suggestion on how to obtain the datumplane selected from the UI block.

 

 

1 REPLY

Re: How to obtain datumPlane selected from "Specify Plane" in the Block UI Styler

"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.