Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day,
Trying my hand at iLogics to export my BOM to Excel, just to use it as a table in my drawings - want to be able to set lineweights to suit my drawing style which one cannot do with the standard BOM table.
So I came accross some iLogic code from AU2020 by Carl Smith and Randy Mabery where they do this bit of coding. However, I must be doing something wrong as I get an error message as shown below....
The code courtesy of their video, is:
Dim sFilename As String = String.Concat(ThisDoc.PathAndFileName(False),".xlsx") ThisBOM.Export("Parts Only", "fileName", kMicrosoftExcelFormat) 'kMicrosoftAccessFormat = Microsoft Access 'kMicrosoftExcelFormat = Microsoft Excel 'kdBASEIIIFormat = dBASE III 'kdBASEIVFormat = dBASE IV 'kTextFileTabDelimitedFormat = Text File Tab Delimited 'kTextFileCommaDelimitedFormat = Text File Comma Delimited 'kUnicodeTextFileTabDelimitedFormat = Unicode Text File Tab Delimited 'kUnicodeTextFileCommaDelimitedFormat = Unicode Text File Comma Delimited
Anyone that can pick up where I go wrong?
Regards
Kobus
Solved! Go to Solution.