
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using ilogic to export my BOM in Microsoft Access Database format. We are using Access 2010. The code I am using is saving the file in an earlier version of Access, so when i open the database I am prompted by Access to have the file converted to the latest (2010) version. It seems to convert ok through Access so I'm not totally stuck, but it would be nice if Ilogic could do the job right on the export so I don't have to be prompted every time. Anyone have any suggestions as to how to specify the correct version of Access in the export code? Below is my code. Also, I've been unable to export my BOM using ilogic from a custom LOD. My assemblies are almost never in a master LOD at the point that I want to export. In my code I have the model switching LOD to master prior to the export, then switching back to custom as a work-around. Any suggestions as to how I can export through ilogic form a custom LOD? The code below works, but takes a while to run because of the LOD switch.
ThisDoc.Save ThisApplication = InventorVb.Application oMyDoc = ThisDoc.ModelDocument Dim oRepMgr As RepresentationsManager oRepMgr = oMyDoc.ComponentDefinition.RepresentationsManager Dim oMasterLOD As LevelOfDetailRepresentation oMasterLOD = oRepMgr.LevelOfDetailRepresentations.Item("Master") oMasterLOD.Activate() ThisBOM.Export("Parts Only", "C:\TEMP\bom_temp\export_inventor_files_here.mdb", kMicrosoftAccessFormat) oMasterLOD = oRepMgr.LevelOfDetailRepresentations.Item("custom") oMasterLOD.Activate()
Solved! Go to Solution.