how to add current assembly data in first row BOM? (subject, tittle, weight, etc).
and export to *csv.
Is it possible?
In the GetTableData Function, replace:
tableData(i - offset, j) = tableAnn.Text(i, j)
tableData(i - offset, j) = tableAnn.DisplayedText2(i, j, False)
You can use: 2017 SOLIDWORKS API Help - InsertRow Method (ITableAnnotation)
Then to export see Artem Taturevych post: Export SOLIDWORKS table to CSV using VBA macro
Thank's , Fifi Riri, i used those options....my goal is export to csv, including in the first row the assembly's data, (same properties as in the parts). See attached image, modified table.
* First row without part number and all data from current assembly.
* Next rows are all the parts.
* Then export to *.csv.
But in the csv file, the data inserted from assembly is not the evaluated data, its the link property name (ex. "$PRPSHEET:""Item")
I think with a macro can be exported.
Fifi Riri & Tyler Williams, Thank you for your support.
It works great!!!
I know this is posted in API/Macros, but it seems like you should be able to use custom properties, and then link those properties to the values you want.
Yes, Tyler, i'm trying to skip the custom properties and link .. but if there's no other way...
in others design software just select and get the bom with assembly data in header...
Thank's a lot.
Retrieving data ...