I have edited code but cannot make bill of materials-table work.
Here's the part of the code that creates BOM-table. Whole macro is in the notepad document(My Macro For Drawings.txt).
boolstatus = Part.ActivateView("Drawing View1")
Set swActiveView = Part.ActiveDrawingView
Set swBOMTable = swActiveView.InsertBomTable2(False, 0.2463226794258, 0.291877095773754, swBOMConfigurationAnchorType_e.swBOMConfigurationAnchor_TopLeft, swBomType_e.swBomType_PartsOnly, "dfds", "P:\Tiedostokirjastot\Solidworks kirjastot\Taulukkopohjat yms\Ville Kahelin\Osaluettelo.sldbomtbt")
My code was working one day, but somehow it doesn't work now. Does anyone have idea of this?
Here is the idea of what does macro create from 3 views of part (Note-Part name, BOM-table, Model Items and Auto Balloon)