conditional variables
conditional variables
(OP)
Hello,
i have difficult situation in NX 7.5
i have two different parameters in model, but they depend on where part is... position of part is somehow defined by name, actually name have two-digit number at end and that number define position.
so i have situation A and situation B... let say for example that it is one offset inside part and it have value A and value B... i need to make array like [5,13,17,33] and only the parts that have this numbers in part name should have offset B others have to have offset A. is this possible to be done?
even more, is this possible to be done in TC?
Thank You!
i have difficult situation in NX 7.5
i have two different parameters in model, but they depend on where part is... position of part is somehow defined by name, actually name have two-digit number at end and that number define position.
so i have situation A and situation B... let say for example that it is one offset inside part and it have value A and value B... i need to make array like [5,13,17,33] and only the parts that have this numbers in part name should have offset B others have to have offset A. is this possible to be done?
even more, is this possible to be done in TC?
Thank You!





RE: conditional variables
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: conditional variables
example:
command_part //here i hold most repetative expressions and elements that are used in all these parts, and i use wave and expression links to use them in parts
part_01 variant A
part_02 variant A
part_03 variant B
part_04 variant A
part_05 variant A
part_06 variant A
part_07 variant A
part_08 variant B
part_09 variant A
part_10 variant A
part_11 variant A
part_12 variant B
so assembly will have all this parts inside, and i will make array that say [3,8,12] in command part, but i need expression inside pat that will check if part have to be variant A or variant B
RE: conditional variables
Tools -> Part Familes...
...and when the dialog opens, select the 'Edit' buttong below where it says 'Part Family Spreadsheet'. An Excel spreadsheet will open showing the various family members and the values of the Paratmeters and Attributes which are to be applied to each member of the family as well as the name that that family member will be created when it's used.
Now close the spreadsheet and when the Part Families dialog is displayed again, hit 'Cancel' and close the part file.
Now to see how this works open an assembly and add this part file, 'Eye Bolt, in.prt' as a Component to the Assembly and you will be presented with a dialog where you will be able to explicitly select which 'Eye Bolt', based on either picking its size, description, etc. that you wish to add to your Assembly and when you do it will be created using the specific 'parameters' that were recorded in the Spreadsheet in that master Family template part file.
Anyway, look this over and see if this will do what you're 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: conditional variables
i need exactly solution i am asking for.
i need to make this easy for user so he/she have to edit array only to make changes to project. this is much more difficult then what i explained, this project work completely different then family parts.
so is there expression that can check array and expression that can get last two digits from part name? and is it possible to put that in kind of if then loop?
RE: conditional variables
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: conditional variables
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: conditional variables
now there is special stand, that have two variants, and it is not on same place every time, so variant A is default and variant B is special and it is moved depending on some calculation. so when they make calculations and say that special have to be on positions 3, 6, 15 and 19 i need just to put that somehow, i imagined array, if you have better idea tell me, in equations and it will make changes to certain parts that have names that are connected to positions.
RE: conditional variables
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: conditional variables
but this involve user in to template, and that is what i want to eliminate. user have to edit from finished template and i want them just to put info they got from calculations at the beginning and to let NX finish design for them.
is there any way to use array in NX, in any way similar to what i need?
RE: conditional variables
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: conditional variables
with fix amount of numbers in set and fixed amount of stand elements (construction that hold wing during tests is assembled of some number of same element that just change shape along wing, but not basic structure, so only lengths and positions of elements in one stand is different but all have same structure, except few that have A and B variants), kind of solutions would be to assign one expression in every stand element with value that is same as last two digits of name of part, and then to compare it in loop with these fixed amount of numbers... it would be easy. but as wings are changing over time, it will be more and more stands and more and amount of special stands would change.
too bad i can't share images.
so for user, it would be perfect just to change wing and to put in array in PTS form and then to print documentation. and i can't solve only this last problem with array.
RE: conditional variables
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: conditional variables
but i thought this is interesting problem and i had hopes that maybe somebody here can give me just a little boost so i can solve this mostly myself. it is not interesting if PLM guys do all the fun :)