Part Save-As tool

The code below was submitted by site user: peter.t.

The journal is intended to provide some options when making a copy of a part (native mode). The following options are available:

  • Save the work part with a higher revision: The journal will search for the corresponding drawing and copy that as well; the old files can be moved into a "trash" directory. For the drawing to be found, it must have the same base name as the model with "_dwg1" appended to it. If the model is "12345.prt", the drawing must be named "12345_dwg1.prt".
  • Save the part with a different name and open it: The original part and drawing will be copied; the new drawing will reference the new part.
  • Save the part with a different name and replace all occurrences in the session.
  • Save the part with a different name and replace all occurrences in the session.

  • Another big thank-you to peter.t for sharing his code!
    If you would like to submit your own code to the site, contact me at info@nxjournaling.com.

Export assembly (with drawings)

The code below was submitted by site user: peter.t.

This journal is intended to clone an assembly of parts with their drawings in preparation for delivery to a customer or third party. The journal expects that there will be no parts open when it is initially run; it will prompt you to open a part. It will then attempt to load and clone the assembly. If there is a drawing of a part in the same directory as the part, it will be cloned along with the assembly. The drawing file name must match the model file name with "_dwg1" appended to it; if the part name is "12345.prt", it will look for a drawing named "12345_dwg1.prt". If you follow a different drawing naming convention, modify the journal code accordingly before running it. Also, the initial directory for the "file open" dialogs can (and should) be customized to your environment.

A big thank-you to peter.t for sharing his code!

Create screenshot and save to Windows clipboard

The following journal will create a screenshot of the current NX graphics window (using a white background) and place the resulting image on the Windows clipboard. After running the journal, you can immediately paste the image into another application (email message, powerpoint deck, paint program, etc.). The resulting image is cropped,except for a user-specified amount of white space around the image.

'NXJournaling.com
'August 11, 2015

Units

When dealing with any CAD program, it is vital to know what system of units you are currently working in. Without a system of units it would be impossible to know how large the object is that you are designing. What is the estimated weight of the object? What is the estimated inertia about the drive axis? Is the design within a balance specification? These questions would be difficult, if not impossible, to answer without knowing the unit system in the current part. As such, unit systems are very important when modeling.

Tags: 

Pages