I get the following error:
Error in rule: Process, in document: ZSCWBRL-TEST.ipt
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
...when trying to run a rule that only contains:
iProperties.PartColor = "Black"
If i create a fresh part in sheet metal or otherwise, it works as expected. I've attached the part --if anyone could help it would be greatly appreciated. Thanks
Yes, I did. I'll try it zipped....
I tried the part. On my system it changes the color to black with no error.
It could be that the color Black was somehow deleted from the available styles. Do you see the color Black in the list of colors for the part? Can you manually switch to it?
If you can manually switch to it but the rule still doesn't work, please click the More Info tab on the error message and post the text that it shows.
I figured it out. I had the variable that held the color in quotes:
iProperties.PartColor = "POWFIN"
...when it should have been without quotes:
iProperties.PartColor = POWFIN
I need to quit working so late. Thanks for looking Mike