iLogic Auto Sort on Update check box - 2023

iLogic Auto Sort on Update check box - 2023

massimo.bertoAD8UX
Participant Participant
239 Views
1 Reply
Message 1 of 2

iLogic Auto Sort on Update check box - 2023

massimo.bertoAD8UX
Participant
Participant

Hi All,

 

I am using Inventor 2023, and just messing around with some basic iLogic Rules (quite new stuff for me)...

I found in old threads some example for a BOM sorting by columns and add the "Auto Sort on Update" check box enabled.

 

the following code is sorting correctly the BOM in the drawing, but is not checking out the "Auto Sort" check box, am I missing something?

 

TIA

 

On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

Dim oPartsList1 As PartsList

oPartsList1 = oDrawDoc.ActiveSheet.PartsLists.Item(1)
oPartsList1.Sort2("ITEM", 1, AutoSortOnUpdate, True)
oPartsList1.Renumber
oPartsList1.SaveItemOverridesToBOM

 

0 Likes
Accepted solutions (1)
240 Views
1 Reply
Reply (1)
Message 2 of 2

massimo.bertoAD8UX
Participant
Participant
Accepted solution

Ok, solved the problem :

 

oPartsList1.Sort2("ITEM", 1, AutoSortOnUpdate, True)

must be :

oPartsList1.Sort2("ITEM", 1, AutoSortOnUpdate :=True)

Anyway, thanks!

0 Likes