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: 

OverrideQuantity using iLogic

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
jrhymes
791 Views, 2 Replies

OverrideQuantity using iLogic

I'm trying to change the value of the qty in the bom using ilogic with this expression

ThisBOM.OverrideQuantity("Model Data", "Steps", "QTY_STEPS")

 but it gives me the following error

 

Conversion from string "QTY_STEPS" to type 'Integer' is not valid.

 

Any ideas on how to fix it?

 

 

2 REPLIES 2
Message 2 of 3
Vladimir.Ananyev
in reply to: jrhymes

iLogic failed to use string constant "QTY_STEPS" instead of integer value.  Try this:

dim NN as integer = 99
ThisBOM.OverrideQuantity("Model Data", "Steps", NN)

 


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
jrhymes
in reply to: Vladimir.Ananyev

That was it, Thanks

 

Jason

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

Post to forums  

Autodesk Design & Make Report