The obvious problem with what you're trying to do is that the BOM / Parts List pull their information from the part's iProperties, while the drawing sheet size is a property of the drawing. The part can't tell the BOM what sheet size the part's drawing uses, because it doesn't actually know. You need a way for the drawing to tell the part what the sheet size is.
The easiest way to do that is probably going to be with some iLogic code. It should be possible to write an iLogic rule (in the drawing) which looks at the sheet size and then copies that to a custom iProperty in the part. Assuming you use one sheet per drawing file, and one part per drawing file, it might be as simple as this:
'Get the sheet size of the active sheet in the drawing DrawingSheetSize = ActiveSheet.Size 'Find the first model document shown in a view in this drawing ModelDoc = ThisDrawing.ModelDocument 'Try, Catch, End Try Error handling was added to prevent an error if the rule ran before views had been placed Try 'Insert the drawing sheet size as a custom iProperty in the part file iProperties.Value(ModelDoc.displayname, "Custom", "Sheet Size") = DrawingSheetSize Catch End Try
You would then just add the "Sheet Size" property to your parts list, and be good to go. The rule would need to have a trigger set in the iLogic Event Triggers (on the Manage tab of the ribbon), probably using the "Before Save" trigger so that the sheet size will update every time the drawing is saved.
Hopefully that helps. Note that I cranked this out pretty quickly, and didn't take a lot of time to check it for errors. You'll want to make sure to test it (or your own version if you write one) thoroughly before implementing it.
Did you paste that code into an iLogic rule, or a macro in the VBA editor?
The code as-written needs to be in an iLogic rule - although it's probably possible to write a similar rule in VBA, the code I gave you is iLogic and won't run as VBA.
I dont is this still needed but ive been helped in achieveing in what i believe could be made to work for you to. You'll find details and an example of this on the discussion "dwg sheet size in custom model iprop" .
From what i read, your after it being on an assembly drawing parts list table which you then export?
Hope you find what your after...