Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sheet Metal part not accepting iLogic PartColor

4 REPLIES 4
Reply
Message 1 of 5
MRanda
650 Views, 4 Replies

Sheet Metal part not accepting iLogic PartColor

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

Intel i7-6700K Liquid Cooled CPU
MSI GTX GeForce 1080 AERO 8GB OC Graphics
32 Gigs DDR 4 Ram
500 GB SSD OS Drive
4TB SSHD File Server Drive
Windows 10 Pro
Applied Design Intelligence
http://applieddesignintelligence.com/
4 REPLIES 4
Message 2 of 5
MjDeck
in reply to: MRanda

Did you forget to attach the part?

 


Mike Deck
Software Developer
Autodesk, Inc.

Message 3 of 5
MRanda
in reply to: MjDeck

Yes, I did. I'll try it zipped....

Intel i7-6700K Liquid Cooled CPU
MSI GTX GeForce 1080 AERO 8GB OC Graphics
32 Gigs DDR 4 Ram
500 GB SSD OS Drive
4TB SSHD File Server Drive
Windows 10 Pro
Applied Design Intelligence
http://applieddesignintelligence.com/
Message 4 of 5
MjDeck
in reply to: MRanda

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?

ColorBlack.png

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.

 


Mike Deck
Software Developer
Autodesk, Inc.

Message 5 of 5
MRanda
in reply to: MjDeck

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

Intel i7-6700K Liquid Cooled CPU
MSI GTX GeForce 1080 AERO 8GB OC Graphics
32 Gigs DDR 4 Ram
500 GB SSD OS Drive
4TB SSHD File Server Drive
Windows 10 Pro
Applied Design Intelligence
http://applieddesignintelligence.com/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report