Autodesk Inventor
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Double Qtys using ILogic?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I have a large assembly that is controlled by ILogic. It changes the lengths of parts and adds in duplicate parts as needed. The assembly makes up one half of the total project. In reality there will be two of these assemblies mirrored. I don't want to insert all the parts a 2nd time or create a higher assembly. I simply want to show Qty in my Parts List and a custom field called "Qty/Job" that doubles Qty. I can't figure out how to take the value of Qty and mulitply it by 2 using ILogic. I've also tried creating a custom IProperty for the parts set to "2", but it doesn't add up for each instance. Is there any way to do this without creating a higher assembly that uses the assembly twice?
Re: Double Qtys using ILogic?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
you can override the BOM quantity using the following ilogic code
ThisBOM.OverrideQuantity( "Model Data", partNumber, quantity)
however i see no way to multiply the quantity by 2, the code needs a quantity value inserted
ThisBom.OverrideQuantity("Model Data", mypart, 99)
