A Note in NX7.5 with a substring of <W@$SH_PART_NAME> without "_dwg1"
A Note in NX7.5 with a substring of <W@$SH_PART_NAME> without "_dwg1"
(OP)
Hi,
<W@$SH_PART_NAME> gave me drawing_part_name_dwg1 for example
I would like to have a note with "drawing_part_name" instead of "drawing_part_name_dwg1"
I found a grip programm in: http://www.eng-tips.com/viewthread.cfm?qid=329148 to obtain attribut FILENAME
then CTRL-E
full_name = ug_askPartAttrValue( "FILENAME" )
name_without_dwg1 = replaceString( nom_complet, "_dwg1.prt", "" )
It's a little bit complex
Is it possible to have an easy method ?
TIA
<W@$SH_PART_NAME> gave me drawing_part_name_dwg1 for example
I would like to have a note with "drawing_part_name" instead of "drawing_part_name_dwg1"
I found a grip programm in: http://www.eng-tips.com/viewthread.cfm?qid=329148 to obtain attribut FILENAME
then CTRL-E
full_name = ug_askPartAttrValue( "FILENAME" )
name_without_dwg1 = replaceString( nom_complet, "_dwg1.prt", "" )
It's a little bit complex
Is it possible to have an easy method ?
TIA
Regards
Didier Psaltopoulos
http://www.psi-cad.com





RE: A Note in NX7.5 with a substring of <W@$SH_PART_NAME> without "_dwg1"
www.nxjournaling.com
RE: A Note in NX7.5 with a substring of <W@$SH_PART_NAME> without "_dwg1"
I already know that but I don't want to use this solution
Regards
Didier Psaltopoulos
http://www.psi-cad.com
RE: A Note in NX7.5 with a substring of <W@$SH_PART_NAME> without "_dwg1"
CODE
If/when the part name changes, you will need to run "update for external change" to update the expression.
www.nxjournaling.com
RE: A Note in NX7.5 with a substring of <W@$SH_PART_NAME> without "_dwg1"
It's OK, thanks a lot
Regards
Didier Psaltopoulos
http://www.psi-cad.com