Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

open draft native master model

Status
Not open for further replies.

Lars1978

Mechanical
Dec 30, 2015
327

Best wishes.
I'm working with nx10 native. My drawings are now in the same file as the model (stand alone).
I'd like to work with de reference drafts. The problem with this is the ease of copying projects (all file in the same dir).
Is it possible when working with reference drafts to copy them along with models? (for a new project….)
Is there a workaround available to open an reference draft when working in the model?


Kind regards,

Lars
 
Replies continue below

Recommended for you

These are the sorts of behavior supported by Teamcenter or at leas running NX in Managed Mode (which is sort of 'Teamcenter-lite'). However, without something like that, the master part file does not know it's Drawing when working in the Master Model mode. However the Drawings always knows its master part file.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:

To an Engineer, the glass is twice as big as it needs to be.
 
John thnx for your quick response.

In SE a macro was available for opening draft file while in the model.
The thing the macro did was searching the file in the same dir the model is saved and opened the drawing.
Model and draft have the same name.

I'm aming in the same direction for a solution to open a draft file of a model?

Is this feasible ?

 
I assume that in SE, model files have different file extensions than drawing files; in NX all files have the same (.prt) extension. That said, you cannot have two files with the same name in the same directory. Many that use native NX (as opposed to NX in a PLM environment) will append _dwg to the file name to distinguish part files from drawing files; so 12345.prt would be the model and 12345_dwg.prt would be the drawing. Something similar to the SE macro could be made for NX as long as you have a consistent naming convention.

www.nxjournaling.com
 
what is the easiest way to program a button with the function from te previous post
grip or NX open ?


 
This last question is depending on your knowledge...
GRIP is a discontinued programming language, it was terminated way back. No further development.
But, it is the easiest language to learn if you have a hint of programming knowledge. ( You will need a special NX license to compile!)
The modern replacement can be said to be "NX Open".
NX open programs can initiate/start as a "Journal" which is equivalent to a Macro, - You record interactively the clicks that you want the journal to repeat. Then the journal can played as is, or developed further into a "full program".
The resulting Journal file can be , Preferences- User Interface- tools- Journal, ".vb" or C#/C++/Java/Python.

Regards,
Tomas
 
Toost said:
But, it [GRIP] is the easiest language to learn if you have a hint of programming knowledge.

I have to disagree with the above statement.
In GRIP you have to use jump statements to do looping or branching. The liberal use of jump statements can lead to difficult to read/maintain "spaghetti" code. GRIP does not let you create your own functions within your code; you can create subprograms which do much the same thing, but these have to be coded and compiled in their own files then linked to your main program. GRIP keywords are limited to 6 (or was it 8?) characters long making for some convoluted, difficult to remember command names.

For the task at hand, finding the drawing file and opening it, the plain vanilla journaling tools will be more than sufficient. Most of the work will be looking through files and folders, which can easily be accomplished with the functions contained in the .net framework (assuming you are running on Windows).

If you are going to start writing more complicated programs for NX, I'd suggest you start with SNAP (if you have a license). SNAP streamlines portions of the NXOpen API, allowing for code that can be easier to write and maintain.

www.nxjournaling.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor