The specification of the drawing is a table which contains the nomenclature of details which enter in assemble with the instruction of quantity and a position of each detail.
e.g.:
--------------------------------------------------------
position | name of detail |description | quantity |
--------------------------------------------------------
1 | 43.00.00.800 | pump | 1 |
--------------------------------------------------------
8 | 43.00.10.073 | jar | 2 |
--------------------------------------------------------
ahh, you mean the partslist. That is available through the
API: set <objPlist> = <objDraft>.PartsList.item(1)
Usually you only have one parts list but it might not be the case
so the <objDraft>.PartsList object is a collection and the
<objDraft>.PartsList.count holds the number of available
partslists if any.
But you won't be able to drill down to the individual cells
for there is no mechanism in the API to do that. The only way
to access them is to copy it to the clipboard:
<objDraft>.PartsLists.Item(1).CopyToClipboard
From there it can be read programatically. The columns are
seperated by 0x09 and the rows by 0x0a. The whole thing is terminated
by 0x0d0a (vbCrLf).
Also possible is to manually select the partslist within the
draft. Then do an RMB (right mouse click) and select 'Copy Contents'
Now you can paste it into Excel for further processing.
do you mean the material that is assigned to the part?
That can be obtained by following the ModelLinks
Dim objPart as object
set objPart = <objDraft>.ModelLinks.item(1).ModelDocument
sMaterial = objPart.Properties.item("MechanicalModeling").Item("Material").value
Check the ModellDocuments type: when it's an assembly no
material is available unles it has been assigned a WeldmentAssmbly
Hi!
Thanks for full answers!
I work in Russia at a machine works and I interface SolidEdge to our program.In process of development there is a set of questions. Unfortunately nobody knows as to answer my questions in Russia. Thanks you for the help! You save my life once again