AnsweredAssumed Answered

Move BOM by edit anchor coordinates (vba)

Question asked by Martijn Hoogerwerf on Feb 20, 2019

Hi there.


At our company we have standard positions for the BOM on a drawing. The most used position is saved in the drawing template. To move the BOM to another location we manually edit the Bill of Materials Anchor point (Go to Sheet Format - RMB - Set anchor - select the desired position). I want to automate this: make it a single click method to switch between positions. My thoughts are to do this by editting the BOM anchor coordinates (the position is not one of the standards like: swBOMConfigurationAnchor_BottomLeft). But I can't find if that is possible and if so how to make use of it.


I allready looked here (and more):

2018 SOLIDWORKS API Help - ITableAnchor Interface

2018 SOLIDWORKS API Help - Get and Set Table Anchor of Hole Table Example (VBA)

2018 SOLIDWORKS API Help - swBOMConfigurationAnchorType_e Enumeration

2017 SOLIDWORKS API Help - Get Table Anchor Example (VBA)

2018 SOLIDWORKS API Help - Insert BOM Table Example (VBA)


I appreciate any help with this. Maybe i should use another approach.

(this is my first question here btw)