Thanks John for these precisions.
Now I'm a little bit disappointed because the expression created in this way ( ug_askcurrentworkpart() ) does not be updated automaticaly if the part name is changed !
But with <W@$SH_PART_NAME> it does !
Do you know that ?
Is there a solution ?
It's works !
Many thanks for your help cowski !
I did not know this method to create expression.
Please, do you have a list of functions that I can use with the same method ?
Thank you again.
SuperQuark
Hi, kapmnit123
Thanks a lot for your reply ...
But, just a problem, I don't have the ug_askCurrentWorkPartr() into my Expressions Functions list (Tools, Expressions, Functions f(x), Insert Functions).
I just have this one only ug_askExpressionValueAsString !
What can I do ???
Many Thanks...
Hello everybody,
I have some part names in the following format :
xxx.xxx.xxx - description.prt
In the title block of the drawing I would like to have :
One note with the part number (xxx.xxx.xxx)and another note with the specification (description)
I can add the whole to a note with the...
Example : My part file name is COVER_1234.prt
I would like to extract the string COVER and the string 1234 and put them into attributes variables.
So, the result will be :
Attribute1 = COVER
Attribute2 = 1234
Then I will use it to fill in my drawing box . . .
TITLE = COVER (Attribute1)...
Ben,
I know the substr function in GRIP, but my question was how do you use it whith <W@$SH_PART_NAME> into NX as an attribute or as an expression ?
I don't find it, so it was for this reason that I thought to write a GRIP program.
I hope it is clear now . . .
Many thanks
SuperQuark
Hi John,
At this time I work with NX6 . . .
Here some explanations that I really would like to make:
I want to extract strings from the drawing sheet attribute <W@$SH_PART_NAME>
Sample:
When I create a note with <W@$SH_PART_NAME>, the result is Cover_1234.prt
So I need 2 attributes (or...
Hello Ben,
Thanks for your reply . . .
I need to open some part files and I would like that attributes defined in the part will be set by the GRIP program.
So, I just want to click on the prt file to open it, and the GRIP program must be stated automaticaly after it was displayed.
In this way...
Hi,
I would like to run automatically a GRIP program just after opened a part file.
What are the all the steps?
Is it possible to have a sample!
Thanks a lot
SuperQuark