Editing a part attribute (string) in a note
Editing a part attribute (string) in a note
(OP)
Hi,
I'm using NX 9 and I want to edit a part attribute in a note. To clarify what I mean I'll give an example:
In a note I want to use a part of a part name. The part (hose) is named "A1 B2" where "A1" and "B2" stand for the place where the hose needs to be connected. Now I would like to add a note (drawing) at each side of the hose: one note showing "A1" and the other showing "B2". Since the name of the hose might change I would like to have the notes linked to the model. Is it possible to make a note from the first part of the part attribute and a note from the second part of the attribute? The thing that is sure is that the name includes a space (" ") between the 2 parts of the name I would like to extract.
Note: solutions like separating the name and save it under two attributes is not possible for me.
Thanks in advance.
I'm using NX 9 and I want to edit a part attribute in a note. To clarify what I mean I'll give an example:
In a note I want to use a part of a part name. The part (hose) is named "A1 B2" where "A1" and "B2" stand for the place where the hose needs to be connected. Now I would like to add a note (drawing) at each side of the hose: one note showing "A1" and the other showing "B2". Since the name of the hose might change I would like to have the notes linked to the model. Is it possible to make a note from the first part of the part attribute and a note from the second part of the attribute? The thing that is sure is that the name includes a space (" ") between the 2 parts of the name I would like to extract.
Note: solutions like separating the name and save it under two attributes is not possible for me.
Thanks in advance.





RE: Editing a part attribute (string) in a note
What about splitting the string and saving it as expressions? You could then reference the expressions in your note(s). This could be done at the assembly level rather than at the part level.
www.nxjournaling.com
RE: Editing a part attribute (string) in a note
In addition it would be nice to have the hose length (which is a lower level part attribute) in a note. The model data has the length noted in "meter" and I would like to have it in "mm" with 1 decimal place (or no decimal place when the length is xxx,0).
Could you, or someone else, help me out with this? The help is much appreciated :). Please note that I'm a mechanical engineer with basic programming skills. If this requires some more advanced coding I guess I'll have to keep do things manually ;).
RE: Editing a part attribute (string) in a note
I think i used SUBSTRING and SPLIT STRING functions sometime back for a similar activity.
Will see once i am back in office tomorrow.
Best Regards
Kapil
RE: Editing a part attribute (string) in a note
www.nxjournaling.com
RE: Editing a part attribute (string) in a note
For the hose dimension I wasn't able to retrieve the information because the attribute is on a lower part level.