Build and run the UDO example found under ...ugopen\SampleNXOpenApplications\.NET\UDO.
After you have placed the UDO, MB3 on it and Edit User Defined Object. Select a new location. See it move.
Compare your code to the example to see what might be different.
Did you use UF_UDOBJ_set_query_class_id() to allow selection by class id name? That is the Open C call - I can't remember off the top of my head what it is in the new-style NX Open kit.
Perhaps you're not selecting exactly what you think you are selecting?
I would suggest writing a bit of "test" code, and UF_OBJ_ask_type_and_subtype (or wrapped version thereof) .
1) Select object interactively - what is type/subtype?
2) Select object programatically - what is type/subtype?
Are they the same types/subtypes?
Use %UGII_BASE_DIR%\UGOPEN\uf_object_types.h to decipher the integer values
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
Thanks it works now.....
I have one more query .
How can i integrate this UDO Callbacks and piece of code which is creating UDO to my NXOpen application.
Because when i try to edit UDO it will not invoke "myEditCB" method in my application.
And if the application containns only UDO code (like SImple UDO example which is given in UGOpen)it works fine.
I am facing the same problem that you seem to have solved, I Registered a UDO and now i want to access and edit it programmatically, but UserDefinedClassManager.GetUserDefinedClassFromClassName() comes back with an error. How did you manage to Fix it?