Journal file to write part attribute
Journal file to write part attribute
(OP)
Does anyone know if there is a journal file, etc available that can automatically add a part attribute DB_PART_NO to a part file (native NX), and populate the value with the files part name?
The reason I ask is that because for deformable parts/part families (using a raw material part number) to be called up properly in a BOM, I need the BOM to read the DB_PART_NO field of the part.
We have been replicating a model from Mechanical Desktop into NX over the past 3-4 months, without the need to do any drawings (as we already had a full set of working drawings). Now it is time to do some drawings/BOMs and have dicovered that we need to add DB_PART_NO to all parts for our BOMs to work correctly.
I realise that when you import files into TeamCentre it automatically adds this, but this is not really an option at the moment.
Any help would be most appreciated.
The reason I ask is that because for deformable parts/part families (using a raw material part number) to be called up properly in a BOM, I need the BOM to read the DB_PART_NO field of the part.
We have been replicating a model from Mechanical Desktop into NX over the past 3-4 months, without the need to do any drawings (as we already had a full set of working drawings). Now it is time to do some drawings/BOMs and have dicovered that we need to add DB_PART_NO to all parts for our BOMs to work correctly.
I realise that when you import files into TeamCentre it automatically adds this, but this is not really an option at the moment.
Any help would be most appreciated.
Ross
NX5.0.4.1 WinXP SP2
SolidWorks 2007





RE: Journal file to write part attribute
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Journal file to write part attribute
Ross
NX5.0.4.1 WinXP SP2
SolidWorks 2007
RE: Journal file to write part attribute
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Journal file to write part attribute
Ross
NX5.0.4.1 WinXP SP2
SolidWorks 2007
RE: Journal file to write part attribute
This outputs the file name to DB_PART_NO.
Filename being:
path = "c:\part dir\my_part.prt"
filename = "my_part"
Hope that's right.
Cheers,
Mark Benson
Aerodynamic Model Designer
RE: Journal file to write part attribute
Ross
NX5.0.4.1 WinXP SP2
SolidWorks 2007
RE: Journal file to write part attribute
This program must be executed from a running session of NX, but you don't have to have any files open, just launch an NX session, go to File -> Execute -> Grip...
When you run the program, you will be prompted for the full path name of the folder where the NX Part files are located that you wish to update. Include the folder's name but NOT the last "\". The program will run until all NX Part files have been updated.
Note that I'm trying to convert this to a batch program, but so far I can't seem to get it to work properly (it's been so long since I wrote anything that ran in batch mode). If I figure it out, I'll pass along that program as well.
John R. Baker, P.E.
Product 'Evangelist'
NX Design
Siemens PLM Software Inc.
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Journal file to write part attribute
Ross
NX5.0.4.1 WinXP SP2
SolidWorks 2007