Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
j.brodersen
in reply to: koenroovers

I'm unfortunately just a advanced noob if it comes to programming but what i could figure out is that you can specify the Partslist.Level during the Add step

Syntax

PartsLists.AddViewOrModel As Object, PlacementPoint As Point2d, [Level] As PartsListLevelEnum, [NumberingScheme] As Variant, [NumberOfSections] As Long, [WrapLeft] As Boolean ) As PartsList

 

so if I'm not mistaking following chang/addition in your code should do the job 

 

oPartslist = oSheet.PartsLists.Add(oDrawingView, oPlacePoint, kPartsOnly)

 you can find the information as well on following links

 

Syntax:

https://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-64121FC0-E936-4A2B-9F84-46D9BD5701EC

 

PartsListLevelEnum:

https://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-3F116D00-1E4E-4781-A748-619B482DCF99