I have created a feature parameter for my assembly, which I call SPC_NO. (when I add it to the assembly, this parameter is defined as a value).
When i generate my repeat-region I want the following senario:
If the CAD-objects in the assembly have a parameter called SPC, the feature parameter SPC_NO will reflect SPC. If the CAD-objects lack the parameter SPC, SPC_NO should be equal to (string) "SP".
I tried to solve this for my repeat-region with the following relations:
IF ("&asm.mbr.SPC"!="")
"&asm.mbr.cparam.SPC_NO"=="SP"
ELSE
"&asm.mbr.cparam.SPC_NO"=="&asm.mbr.SPC"
ENDIF
I get the message: ”Constraint has been violated”. Has this something to do with the definition of the feature parameter SPC_NO? I tried to manually change the feature parameter from value to string for all the CAD-objects, but i still get the same error message.
We use Creo 2.0 and we should be able to update a feature parameter depending on the value of other parameters. Please help me solve this puzzle...
When i generate my repeat-region I want the following senario:
If the CAD-objects in the assembly have a parameter called SPC, the feature parameter SPC_NO will reflect SPC. If the CAD-objects lack the parameter SPC, SPC_NO should be equal to (string) "SP".
I tried to solve this for my repeat-region with the following relations:
IF ("&asm.mbr.SPC"!="")
"&asm.mbr.cparam.SPC_NO"=="SP"
ELSE
"&asm.mbr.cparam.SPC_NO"=="&asm.mbr.SPC"
ENDIF
I get the message: ”Constraint has been violated”. Has this something to do with the definition of the feature parameter SPC_NO? I tried to manually change the feature parameter from value to string for all the CAD-objects, but i still get the same error message.
We use Creo 2.0 and we should be able to update a feature parameter depending on the value of other parameters. Please help me solve this puzzle...