Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by rafl

  1. rafl

    Find the top of the assembly by journal

    Is there a way to find and make display part the main assembly using journal?
  2. rafl

    workPart.CoordinateSystems.CreateCoordinateSystem() and ufs.Obj.DeleteObject()

    Thanks Suresh I did some code clean-up and I can make it work.When I use only one coordinate system, I cannot delete it afterwards. When I try to replace parameters {cartesianCoordinateSystem1.ReplaceParameters(cartesianCoordinateSystem2)} the journal throws an error. The idea is to place text...
  3. rafl

    workPart.CoordinateSystems.CreateCoordinateSystem() and ufs.Obj.DeleteObject()

    When I use cartesianCoordinateSystem1 = workPart.CoordinateSystems.CreateCoordinateSystem(xform1, NXOpen.SmartObject.UpdateOption.WithinModeling) the coordinate system can be successfully deleted with ufs.Obj.DeleteObject(). But when I change to cartesianCoordinateSystem1 =...
  4. rafl

    move curves to layer,except thread curves

    Hello I use the code below to move all the curves to layer.Basically it works as expected, except now I want to exclude thread curves. How to collect all the dashed thread curves? Dim displayModification1 As DisplayModification displayModification1 =...
  5. rafl

    Inherit dimension settings from costumer defaults (journal)

    I have a journal that inherits settings from costumer defaults. The problem is that it doesn’t retain tolerances and fits. How to make it read the tolerance (fit) value and assign it to the dimension once again. Here’s the code: Option Strict Off Imports System Imports NXOpen Imports...
  6. rafl

    Journal for color palette and background color

    Hello I’m looking for visual basic code for ”Use Costumer Default Palette“ and “Default Graduated Colors”. I know that journal doesn’t record these commands but maybe someone knows a way to get it.
  7. rafl

    Create surface finish symbol - journal

    Thanks, dimension selection works. What else do I need to change if I want to attach the symbol to selected dimension?
  8. rafl

    Create surface finish symbol - journal

    Hi I have wrote a journal ( by editing some code I found) that creates surface finish symbol. The problem is it only selects drafting edges. Can some help me add also dimension selection. Here's the code : Option Strict Off Imports System Imports NXOpen Imports NXOpen.UI Imports NXOpen.UF...
  9. rafl

    Plot journal

    Yes, the ploter name is correct. In NX9 error says: "NXOpen.NXException: SDI Enviroment not setup" whereas NX8.5 error:"Invalid printer for plotting". Journal works only after I open and close PLOT menu.
  10. rafl

    Export only current sheet to .pdf

    I found this journal here on eng-tips. Is there a version that only exports current sheet instead of every sheet...
  11. rafl

    Plot journal

    I’m working on the journal that will plot current drawing using plot profiles. My code works only after entering PLOT menu, otherwise it gives an error. Can someone help me fix this. Imports NXOpen Imports NXOpen.UF Imports NXOpen.Drawings Public Class Program ' class members Private...
  12. rafl

    Journal for X, Y, Z format

    Thanks Cowski Journal is very helpful. I've been looking something like this. Is it possible to get point WCS orientation and reduce number of decimal places to 2.
  13. rafl

    Assign part attribute to assembly files - journal

    Thanks. It works as expected.
  14. rafl

    Assign part attribute to assembly files - journal

    I want to add this attribute to every part file in assembly.
  15. rafl

    Assign part attribute to assembly files - journal

    I found this code. What do I need to change if I want it to ask me only once for the attribute value and assign it in every component? Option Strict Off Imports System Imports NXOpen Imports NXOpen.UF Imports NXOpen.UI Imports NXOpen.Utilities Imports NXOpen.Assemblies Module...

Part and Inventory Search