Milothicus
Mechanical
- Sep 21, 2003
- 39
i'm trying to insert a bom through API, but i'm having trouble.
here's my code line:
boolstatus = swview.InsertBomTable("C:\Documents and Settings\Administrator\Desktop\bomtemp.xls", 0.2794, 0,"?")
i can't figure out what goes in the "?" place. according to the help file:
Output: (long) Errors
Status of the BOM creation operation as defined in swBOMConfigurationCreationErrors_e
the creationerrors_e includes reasons for errors in the creation, so i'd think it expects a variable to receive the error code, but that didn't work.
i tried putting a "0" into it, and then it's happy until it gets close to the end of the process of adding the bom, and then it creates an error.
help also states:
If the BOM creation fails, the Dispatch pointer that is returned will be NULL. If you want more information about why the operation failed, use the Errors argument. You can pass in NULL as the Errors argument if you are not interested in the specific information.
i tried leaving it blank, making it Null, and leaving out the last comma altogether. nothing seems to work.
anyone had success with this? i'm in 2005...
here's my code line:
boolstatus = swview.InsertBomTable("C:\Documents and Settings\Administrator\Desktop\bomtemp.xls", 0.2794, 0,"?")
i can't figure out what goes in the "?" place. according to the help file:
Output: (long) Errors
Status of the BOM creation operation as defined in swBOMConfigurationCreationErrors_e
the creationerrors_e includes reasons for errors in the creation, so i'd think it expects a variable to receive the error code, but that didn't work.
i tried putting a "0" into it, and then it's happy until it gets close to the end of the process of adding the bom, and then it creates an error.
help also states:
If the BOM creation fails, the Dispatch pointer that is returned will be NULL. If you want more information about why the operation failed, use the Errors argument. You can pass in NULL as the Errors argument if you are not interested in the specific information.
i tried leaving it blank, making it Null, and leaving out the last comma altogether. nothing seems to work.
anyone had success with this? i'm in 2005...