Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Search results for query: *

  1. grinch33

    NX10.0 extrude window not showing draft/offsetting command

    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
  2. grinch33

    Complex Swept/Through Curve Mesh

    Actually you can... Myth Busters [wink] 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
  3. grinch33

    How to Use Block styler (.dlx) with Knowledge Fusion classes (.dfa)

    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...
  4. grinch33

    Start a new session from NX Open?

    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...
  5. grinch33

    Best way to delete component instance and its Assembly Constraints

    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...
  6. grinch33

    Best way to delete component instance and its Assembly Constraints

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

    Best way to delete component instance and its Assembly Constraints

    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...
  8. grinch33

    Journal - select start, end and center point of edge

    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...
  9. grinch33

    VBA Macro(UG) to rename each Operation with its Tool name

    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 =...
  10. grinch33

    VBA Macro(UG) to rename each Operation with its Tool name

    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...
  11. grinch33

    VBA Macro(UG) to rename each Operation with its Tool name

    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...
  12. grinch33

    create a menu display various data entries without using UI STYLER?

    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...
  13. grinch33

    VBA Macro(UG) to rename each Operation with its Tool name

    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...
  14. grinch33

    Plugin for NX Open

    Not that I'm aware of. 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
  15. grinch33

    create a menu display various data entries without using UI STYLER?

    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...
  16. grinch33

    NXOpen automating changing background colour and graduation

    OK, it seems I was a bit hasty saying you could just call the Background methods directly. To set the background type this is what I did: View workView = theSession.parts().work().views().workView(); Background bg = theSession.parts().work().views() .createBackground(workView, true)...
  17. grinch33

    NXOpen for Slot

    Every TaggedObject has a method tag() that returns the... tag. 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
  18. grinch33

    NXOpen for Slot

    Why not use the BlockFeatureBuilder to create the block and then get the faces of the block using its getFaces() method? 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...
  19. grinch33

    NXOpen automating changing background colour and graduation

    Display in this case is just a package, not an object, so you just use the Background class by specifying the package hierarchy: NXOpen.Display.Background However, looking at the Background class, it states: Represents a Background. Background defines how background pixels are displayed. The...
  20. grinch33

    part versioning rules

    @Cowski: I'm also an infrequent regex user, so these tools help a lot! Although the approach of http://txt2re.com/ is a bit different it will also generate code snippets, but in a load of languages: Perl, PHP, Python, Java, Javascript, ColdFusion, C, C++, Ruby, VB, VBScript, J#.net, C#.net...
Back
Top