Virtual Components - 0 qty patterns

Virtual Components - 0 qty patterns

NachoShaw
Advisor Advisor
465件の閲覧回数
5件の返信
メッセージ1/6

Virtual Components - 0 qty patterns

NachoShaw
Advisor
Advisor

Hey

 

I am working with some asembly level iLogic and Virtual components. My objective is to add the VC to a pattern so that based on a parameter qty value, i can update the pattern to quantify the amount of VC parts. This works great and very easy on the basis that a pattern has a value of 1 or more. If the pattern value becomes 0, i get an error even if my iLogic is set up to suppress the pattern on 0 values.

 

Any better / other way to manage VC qty's based on a parameter value that doesnt require a tone of overhead code?

 

 

Thanks

 

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 件のいいね
466件の閲覧回数
5件の返信
返信 (5)
メッセージ2/6

A.Acheson
Mentor
Mentor

 My two cents:

In 2020 testing manually with no code, a pattern containing a VC cannot be suppressed. It doesn't do anything, so likely you will need to delete the pattern and VC or alternatively you could do away with the pattern and just overwrite the BOM

ThisBOM.OverrideQuantity("Model Data", "VC", "300")

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 件のいいね
メッセージ3/6

NachoShaw
Advisor
Advisor

Hey

 

Yeah that works but iLogic doesn't update the value when the parameter is changed. The base model model changes, the linked parameter in the assembly changes but the bom doesn't update with iLogic...

 

I really don't like ilogic

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 件のいいね
メッセージ4/6

A.Acheson
Mentor
Mentor

Have you a quick sample of the update issues? You can always switch out the ilogic snippet for the api version if therre is an issue with that. Sequencing can always be an issue for sure. But  z

 

 

 

 

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 件のいいね
メッセージ5/6

NachoShaw
Advisor
Advisor

prob later mate. Think I'll just change it l to a vb.net class and run it from there, always works in vb.net 🙂

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 件のいいね
メッセージ6/6

el_jefe_de_steak
Collaborator
Collaborator

In order to make an iLogic rule run automatically, you have to call out the parameter that you want it to respond to. 

 

Whenever a parameter name shows up in BLUE text in the iLogic rule editor, the iLogic rule will run if that parameter value changes.

0 件のいいね