Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  1. Halasox

    NXOPEN set first datum to layer 62 all other to 64

    Thanks cowski for your help, that's exactly what I was looking for! All Best
  2. Halasox

    NXOPEN set first datum to layer 62 all other to 64

    I mean the first one in the part navigator that is always present! I am looking to put the csys, plane, axis of the initial datum into a separate layer and all other in a different one. I was thinking the same but wasn't able to get it running using "first feature".
  3. Halasox

    NXOPEN set first datum to layer 62 all other to 64

    Hi all, Have a basic code that puts all datums to layer 64, but I would like to set the first datum feature onto layer 62. What would I need to modify? Thanks For Each obj As DisplayableObject In workpart.Datums If Not obj.IsBlanked AndAlso workpart.Layers.GetState(obj.Layer)...
  4. Halasox

    NXOPEN Add edge blend to each part in an assembly

    cowski Thanks for your help, this makes sense! Yes the top lvl asm was the work part and should have been skipped. Have updated the code in case someone else needs this. Option Strict Off Imports System Imports System.Collections.Generic Imports NXOpen Imports NXOpen.UF Imports...
  5. Halasox

    NXOPEN Add edge blend to each part in an assembly

    Hi all, I am looking to apply to each part in an assembly an edge blend either mm or inch using "body edges" filter. The code works from part file and applies the edge blend. But when I tried to convert and do this from assembly level it's not creating them and the code runs without errors. I...
  6. Halasox

    NxOpen How to get ViewAlignment.Name of a specific view

    Thanks cowski as always!
  7. Halasox

    NxOpen How to get ViewAlignment.Name of a specific view

    I am trying to get the view alignment names of a view and then delete the associated alignments. I am currently doing it by known names but would like to avoid this due to possible issues if the views numbering changes ... I understand that I need to use ViewAlignment.Name to get it, but not...
  8. Halasox

    NxOpen Batch error "The filename, directory name, or volume label syntax is incorrect."

    apekas, The first code solved it [bow]! I tested to export 30+ parts to step without issues [thumbsup2]. Appreciate your help and thank you all.
  9. Halasox

    NxOpen Batch error "The filename, directory name, or volume label syntax is incorrect."

    It would show the path of the file and run the code. The problem is that it opens only one terminal and not multiple for each part. It worked in the past, but now if I select multiple parts and run the batch it runs/opens only on one file.
  10. Halasox

    NxOpen Batch error "The filename, directory name, or volume label syntax is incorrect."

    Hello, Have tired it and getting always same error! The filename, directory name, or volume label syntax is incorrect. The filename, directory name, or volume label syntax is incorrect. The filename, directory name, or volume label syntax is incorrect. The filename, directory name, or volume...
  11. Halasox

    NxOpen Batch error "The filename, directory name, or volume label syntax is incorrect."

    I have tried to read each "args()" in array or by changing to "args(1)", but there is only one in array and not showing others. I noticed that all of my batch scripts not working anymore and they worked with "args(0)" on multiple selection. It would open for each part file a new terminal and...
  12. Halasox

    NxOpen Batch error "The filename, directory name, or volume label syntax is incorrect."

    The journal works and the batch too! It's not a problem with running it or the path length, as I already figured that out, it's that the batch is only running on just one file. They way I am running my batch scripts is to select multiple files -> RMB -> send to -> select my batch shortcut (it's...
  13. Halasox

    NxOpen Batch error "The filename, directory name, or volume label syntax is incorrect."

    Hi, I am looking to import a part into my default template (not the blank) and then rotate it. The code works but when I run in batch it gives some error: The filename, directory name, or volume label syntax is incorrect. The code creates the output and rotates the bodies as wanted, but I am...
  14. Halasox

    Nx open chamfer feature rename

    Thanks for the code it works great! I was also stuck on the distance/distance expression, didn't know how to separate them, but your version is much more elegant[thumbsup2]. I used the expression example for the edge/face blend and draft and it works fine due to only one value, but the chamfer...
  15. Halasox

    Nx open chamfer feature rename

    Hi cowski, thanks for your help! I am using the latest version of NX. Agree think using expression might be the easiest way to go. I have made it work for two chamfer option, but not sure how to do it for the distance/distance one (how to filter them out). Should I use maybe array? Appreciate...
  16. Halasox

    Nx open chamfer feature rename

    Hi, I have a script which renames a chamfer feature by its values, but as a chamfer has three types I don't know what I would need to add to rename it based on the feature type. this is what I have and it works fine for symmetrical type. Option Strict Off Imports System Imports NXOpen Imports...

Part and Inventory Search