Hi,
I am trying to make a rule in one assembly that changes the parameters of a part in it, like this:
Parameter("PERFIL UEEE.IPT", "d7")=COMPRIMENTO
But sometimes i have the necessity of changing the part filename and when i change it, the rule enters in error state because the filename changed, how can i make the rule "refresh" the part filename, PERFIL UEEE.IPT?
You need to "stabalize" the name of the part
With the assembly open look for the part in the model tree. Rename the part in the model tree
Example rename "PERFIL UEEE" to "MY_PART"
Then use that in your rule
Parameter("MY_PART.IPT", "d7")=COMPRIMENTO
Right, that's usefull! 🙂
But imagine that i can't "control" the Part name, is there a way that i can make a rule that goes read the current name of the Part end then use it?
I understand that, i didn't explain entirely the case, so i have my original IAM and PART:
RFORÇO.IAM---> PERFIL UEE.IPT
Then I run this in a database program and it gives the IAM and PART new references to the files names, that are the same in the model tree name, for example:
1A300.IAM--->1A301.IPT
And, to my knowledge today, i can't change the names in the model tree, so I was wondering if I can, with a rule, "read" the new names and use them to update the rules with the new names.
Was I clear? Hope so.
And thank you for the time spending with me.
And I'm guessing the rules that reference the component/part names are in those parts?
Best solution I see is to write another iLogic that is run DURING THE RULE THAT CHANGES THE NAME that will go into the part's iLogic rule TEXT and replace String A with String B. String A being the old file name, and string B being the new file name.
Look into this thread for more info on iLogic Documentation.