![]() ![]() So the best is to avoid that by opening up the document as normal and interact with them programmatically that way. Though AutoCAD Mechanical supports API interaction with side databases, you might run into issues if you try to save a side database. the database of a drawing which is not visible in the UI. Side database (or non-working database) is the database of a drawing loaded into memory in the background, i.e. Also its value does not have to be unique. Note: the lower the SortPriority value the earlier (more top in the table) the item will appear in the list. GetInterfaceObject("SymBBAuto.McadSymbolBBMgr") The following VBA sample sorts based on the Item Number property of the BOM items: Public Sub SortBom() You can come up with any sorting logic, it just needs to set the SortPriority property of each McadBOMItem before calling applySort(). ![]() In the API you don't really need that since there you have full control over how the items should be sorted. Sorting based on keys is a UI only method. In case of the UI of AutoCAD Mechanical there are three keys you can set for the sort: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |