Try clicking the gear wheel at the top of the dialog and choosing More:
Graham Inchley, Systems Developer, Sandvik Coromant. www.sandvik.com
HP EliteBook 8760w, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP4 64bit
Testing: NX9.0.2.5
It works a bit different (easier?) with BlockStyler.
You define a KF class that extends the %ui_comp class. Your class can then define dialog blocks using instances of %ui_comp_??? classes.
Its hard to describe the entire details of how to do it here, but I'll attach an example class file of...
I can't say if the sessions objects are unique or not, but I would not rely on the Tag to tell them apart.
If you open 2 interactive NX sessions and create 2 parts, one in each, the objects in those parts could have the same Tags (I believe). So I think the Tags for the session object could also...
Thanks Joe.
I'm mainly programming in Java these days so dabbling in C++ is 'frustrating'. Could you give me a hint how to convert an array of ComponentConstraints to an array of NXObjects?
I presume I could iterate over the array I have and copy each one into a new NXObject array, but there...
For those of you that might be interested I found a solution. First some background..
We have a library of functions written in C. With the introduction of NX8.5 and Assembly Constraints the C code can no longer provide all the required functionality. To save having to rewrite the whole thing we...
In the past removing a component instance using
UF_ASSEM_remove_instance()
automatically removed any Mating Conditions for that instance.
However since moving to NX8.5 (and using Assembly Constraints) the Assemby Constraints do not get deleted using this function, instead they are left in the...
Are you talking about an interactive program (BlockStyler)?
The SpecifyPoint block has a property SnapPointTypesEnabled that allows you to limit the point selection to things like "Arc Center", "End point" etc.
Graham Inchley, Systems Developer, Sandvik Coromant. www.sandvik.com
HP EliteBook...
Oops, my bad! GetParent() returns the tool group object, so you need to get its name. It should look like this:
Dim counter As Integer = 101
For Each Op As String In Opnames
theUfSession.Ui.SetStatus("Renaming Operation:" & OP)
Dim operation As CAM.Operation
operation =...
So your code should look like this I think:
Dim counter As Integer = 101
For Each Op As String In Opnames
theUfSession.Ui.SetStatus("Renaming Operation:" & OP)
Dim operation As CAM.Operation
operation = CType(WorkPart.CAMSetup.CAMOperationCollection.FindObject(Op), CAM.Operation)
Dim...
You haven't stated what language you are using, my example code was Java.
If you look in the documentation for NXOpen.CAM.CAMSetup.View you'll find that the machine member is called MachineTool in C#, VB and C++.
Ganesh is right though, post some of you own code and it'll be much easier for us...
Using UISTyler or BlockStyler the best I've come up with is to design the dialog with the maximum number of instances of whatever controls you might want to add (eg Double input box) and simply hide some or all of them. Then when you want to add a new Double input, unhide one of the hidden ones...
Once you have the operation you should be able to:
NCGroup theTool = myOp.GetParent(CAMSetup.View.MACHINE_TOOL);
String toolName = theTool.name();
Graham Inchley, Systems Developer, Sandvik Coromant. www.sandvik.com
HP EliteBook 8760w, Win7, 16GB. Developing in: Java | C | C# | KF
Production...
I understand you can build dynamic BlockDialogs with SNAP, but I've never used SNAP.
As for C/C++/C#/VB/Java I think you're out of luck. Instead you have to create your own custom dialog from scratch. Depending on the language this might be WinForms or something else.
We mainly develop in Java...