• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

share properties attributes

  • Thread starter Thread starter Gabri1972
  • Start date Start date

Gabri1972

Guest
Hello everyone

I would like to insert within the attributes of the part, a line with the name of the part, a line with the edition and I would like it to take the data directly from the file name.

I seem to remember there was a command line that created this "link", but I don't remember, I also looked in the help and didn't find it.

Could you please help me?

Thank you.
Gabriele
 
Hello everyone

I would like to insert within the attributes of the part, a line with the name of the part, a line with the edition and I would like it to take the data directly from the file name.

I seem to remember there was a command line that created this "link", but I don't remember, I also looked in the help and didn't find it.

Could you please help me?

Thank you.
Gabriele
I don't think you can.
 
I had the impression that matrix understood, sorry

I have not understood well, instead, what do you mean; Tell me about master model, do you intend to use the properties of a file, component of a set, to use for (make an example) fill out the cartilage of a table?

Could you please link me the thread?

I mean inside the part itself

in the attribute window, file properties, I would like to insert a string that to the "value" box, directly pick the file name itself (clearly without extension), I hope it is clearer so
 
I understood that the name is a "parlante" name and automatically wanted to map these "parts" of the name in attributes.
a style stuff:
3d_123456
that is transformed into these attributes:
type: 3D
code: 123456
version: a
 
something like this, but even less complex, is something like:

_

in which

code tm01_00.2.011.1a
edition 00

all inserted in
file

paroperties

attributes
 
something like this, but even less complex, is something like:

_

in which

code tm01_00.2.011.1a
edition 00

all inserted in
file

paroperties

attributes
I think you need a macro... by default I know you can't...
 
doing a macro is not a problem, the problem is the correct syntax to insert in the "value" line of attributes, I couldn't find the syntax that goes to "weave" the file name
 
you can do without macro using ug_setpartatrvalue() and ug_askpartattrvalue( ), all in expression environment.
or spreadsheet as if you have to configure family members.
 
thank you, now I try to use the formula (even if I am doubtful that ask a numerical value) then I will let you know
 
you can do without macro using ug_setpartatrvalue() and ug_askpartattrvalue( ), all in expression environment.
or spreadsheet as if you have to configure family members.
but how do you take the "pieces" of the file name? I didn't find a function. . .
 
but how do you take the "pieces" of the file name? I didn't find a function. . .
he needs to create an attribute that is the concatenation of the file name and revision.
the file name has it, revision as well.
I understand that.
 
he needs to create an attribute that is the concatenation of the file name and revision.
the file name has it, revision as well.
I understand that.
Hello, ale.
the problem (maybe mine at this point) is that he has the info in the file name.
I didn't find a way to make the name's "parse" to popularize the educators.

Hi.
 
In fact, the problem is exactly what matrix says.
I tried to use nx user "expressions", but, if I understood correctly, it would like an attribute value to be associated with a number.
I'd like to pass through the Expression or spreadsheet, the important thing is to be able to insert the name of my file as a value, automatically, through a formula.
my system works with the "versioning" (and so far I imagine it was clear to all), so ug already recognizes the name of the file as part_name_core and the revision/edition as part_name_version.
what seems strange to me is that you cannot use these info, which he already has.
 
In fact, the problem is exactly what matrix says.
I tried to use nx user "expressions", but, if I understood correctly, it would like an attribute value to be associated with a number.
I'd like to pass through the Expression or spreadsheet, the important thing is to be able to insert the name of my file as a value, automatically, through a formula.
my system works with the "versioning" (and so far I imagine it was clear to all), so ug already recognizes the name of the file as part_name_core and the revision/edition as part_name_version.
what seems strange to me is that you cannot use these info, which he already has.
found ootb solution.
I'll tell you right away that it's not my sack flour, but one of my boys... One of the best.
the ability of a manager is (also) to know how to find information when you do not know.
:finger:
file name: aa12345_00
code = first(splitstring( ug_askcurrentworkpart(), "_." ))
espressione di tipo stringa
edition=second(splitstring( ug_askcurrentworkpart(), "_." ))
espressione di tipo stringa
edition_int=makenumber(second(splitstring(ug_askcurrentworkpart(), "_." )))))
expression of integer type

... at this point, go to attributes and link the same with expressions. . .

Obviously everything is "parametric"... if you change the file name, with "update for external change", the expressions change.
a heartfelt thanks to marco r, which, sometimes, reads us, but does not intervene and leaves me the impending.... I will take into account for salary increases fy2011. :finger:
 
great job matrix!! Thank you very much
think that with my code structure I can divide sales/code/great edition! ! !
...there's a problem.....it works very well on nx7.5, but on my old nx4 no, sin not be updated, slut!!
I keep trying....we will see
if you had to have more news from your mittico marco r let me know
Thank you
Gabriele
 
great job matrix!! Thank you very much
think that with my code structure I can divide sales/code/great edition! ! !
...there's a problem.....it works very well on nx7.5, but on my old nx4 no, sin not be updated, slut!!
I keep trying....we will see
if you had to have more news from your mittico marco r let me know
Thank you
Gabriele
it is seen that in nx4 those functions of manipulation of the strings were not there.
another colleague did it using the journal... but in nx4 the journal was there.
other news besides having solved the problem? I don't think...
 
what to say...thank you beppe, but to say that you can not do without macro and use expression...it is flour of my sack.
then in the expression there is so much stuff and finding the right command is task of those who have the problem, the important thing is to put it on the good road.

Medal... Medal... to the muttley http://www.youtube.com/watch?v=ple4zxldvom
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top