Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to access McadBOMItems of AxDbDocument in VBA?
    primarykey
    data
    text
    <p>I'm developing a tool that can exact title &amp; parts list information from a drawing and edit them</p> <p>What I did is open those drawings one by one, access the object from <code>Thisdrawing</code> object, it works, but very slow, especially you want to exact like 20+ drawings.</p> <p>Recently I found a very good thing, that is <code>ObjectDBX</code>, it can get information from and edit drawing without open it. I update my code, it works perfectly except the parts list.</p> <p>In my situation, all parts list are stored in AutoCAD built-in BOM, can access form <code>IMcadPartList</code> object in <code>PaperSpace</code> (<code>thisdrawing.paperspace(INDEX_OF_PARTLIST).itemLis</code>)</p> <p>But this seems not available in oDBX document, it's undefined.</p> <p>Example</p> <pre><code>' I don't open CAD now, pseudo code below dim sampleFilePath as string dim dbx as axdbdocument dim doc as acaddocument dim partListRefIndex as integer sampleFilePath = "somewhere/sample.dwg" set dbx = new axdbdocument set doc = thisDrawing ' Let's point both version to the same file doc.open(sampleFilePath, READ_ONLY) dbx.open(sampleFilePath) partListRefIndex = GetPartListRefIndex(doc) doc.paperspace(partListRefIndex) ' It's an Object/IMcadPartList dbx.paperspace(partListRefIndex) ' It's an Object/IMcadPartList too doc.paperspace(partListRefIndex).itemlist ' Variant/Object/IMcadBOMItems dbx.paperspace(partListRefIndex).itemlist ' Error </code></pre> <p>Please help, is there any way to access the <code>McadBOMItems</code> in oDBX document? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload