Get DatumPlane object from the Block UI Styler

Hi all!

How to get DatumPlane object from the Specify Plane block (Blocks->Selection->Specify Plane) for using later ?

By default the Specify Plane block builds a object of Plane (TaggedObject) type.

As you say, the UI blocks (in both NX/Open and SNAP) don't return a Datum Plane. So, there are two options I can think of:

(1) Use the information returned by the UI block to build a Datum Plane. It's one line of code using SNAP, and only a bit harder using NX/Open functions.

(2) Use an object selection block, instead of the Specify Plane block, and ask the user to select an existing Datum Plane.

Thank you!

What do you mean by "Use the information returned by the UI block to build a Datum Plane. It's one line of code using SNAP, and only a bit harder using NX/Open functions." ?

Maybe you mean get the information from Specify Plane (selected Datum Plane in my workpart) and get it name for using this name in command like this:
"DatumPlane* datumPlane2(dynamic_cast(workPart->Datums()->FindObject("DATUM_PLANE(5)")));"

But I dont know how to get a name of the feature... Maybe you tell me how?

I'm using C++ and making snippet from Journal code.

Have a nice day)

By the way: your first option is not suitable for me, because I must to have the possibility of creating own Datum Plane by Block UI Styler tools (the Specify Plane block).

Have a nice day)

I am using NX11 with C#, so I tried like TaggedObject[] seledObjs = pSpyPlane.GetSelectedObjects(); this but I am getting only one objects, but I selected 3 objects.
Please let me know how to get the selected objects and how to create plane using Specify Plane block. What are all the minimum input require if I am using Distance type plane creation.

Thanks & Regards
S B Arunprakash
Mobile: 8050007724