NX - have the file name as a part attribute or string expression
NX - have the file name as a part attribute or string expression
(OP)
Hi all,
is it possibile to extract the file name of an NX file and store it as a string expression or a part attribute?
Thanks a lot!
is it possibile to extract the file name of an NX file and store it as a string expression or a part attribute?
Thanks a lot!





RE: NX - have the file name as a part attribute or string expression
I am using NX6
RE: NX - have the file name as a part attribute or string expression
Chris T.
Project Design Analyst
Kohler Co. Engine Division
Using NX6
RE: NX - have the file name as a part attribute or string expression
What I would like to achieve is to have an unique part code associated to each component we produce internally from scratch.
The code I was thinking about is done like these "xxxxxx yyy zzz ttt" where:
xxxxxx is the unique code of the project,
yyy the family code,
zzz the sub-family code,
ttt the part code.
Since I would like this code to be automatically generated by NX, I was thinking about extracting the last 3 digits of the file name, which are randomly defined by Moldwizard when the part is input.
I think it is not important that the code is associative, I just need it to be generated at the beginning.
RE: NX - have the file name as a part attribute or string expression
Chris T.
Project Design Analyst
Kohler Co. Engine Division
Using NX6
RE: NX - have the file name as a part attribute or string expression
RE: NX - have the file name as a part attribute or string expression
This is a very generic program, but it should be pretty easy to customized to meet your needs.
Chris T.
Project Design Analyst
Kohler Co. Engine Division
Using NX6
RE: NX - have the file name as a part attribute or string expression
Is it possible for a grip to extract the last three digits of the file name then create & add it to an attribute named "DETAIL NUMBER" ?
Thanks,
James
NX7.5
RE: NX - have the file name as a part attribute or string expression
After downloading the file, edit the file extension from .zipper to .zip before extracting the files.
Have fun, and let me know if this is what you were looking for.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX - have the file name as a part attribute or string expression
Do you have a grip (or anything else) that will create & fill out a "QTY" attribute for every component in an NX7.5 assembly?
James
RE: NX - have the file name as a part attribute or string expression
Does the parts list functionality not serve your needs?
www.nxjournaling.com
RE: NX - have the file name as a part attribute or string expression
We do use the parts list for our "bill of material" but the shop wants the quantity in the detail drawing's title block as well.
Jmaes
RE: NX - have the file name as a part attribute or string expression
BTW, I think it's feasible to develop a GRIP program which would assign a 'QTY' attribute to the Components of an Assembly. However, those attributes would NOT be seen at the piece part level. They would be assigned to the Component objects which are contained and saved in the Assembly itself. In other words, these attributes would be 'local' content only. If you query the 'Properties' of the Component in the context of the Assembly, the attribute would be there, but if you opened the Master Model of that Component as it's own Work Part and open the File -> Properties -> Attributes dialog you would NOT see this attribute.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: NX - have the file name as a part attribute or string expression
This QTY program would be ran from the upper most parent assembly file, the main design file, which has no geometry just components. It would give the quantity of the components in this main assembly. It would need to write this QTY attribute in the sub-components not in the main assembly. If you opened only one of the components by itself you'd need to see this attribute. If it could write to files ending in three numbers only & not write to files ending letters that's be even better but not necessary.
Thanks,
James