Thank you for your answer
First I must say that my iLogic skills are very poor, just so you know... but I try to learn
I tried this snippet but got an error message, then I also noticed that this snippet exports the BOM columns and not imports the settings I want? Or do I misunderstand?
Here is the error message:
Error in rule: BOM, in document: 1-154174.iam
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.BOM.ExportBOMCustomization(String FileName)
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
I need this snippet as a part of a larger rule. First it should import the BOM-columns that I want and then export the BOM (with my choosen columns) to an excel-file. I make the iLoigic--rule to export of the BOM work, but I first need to import the BOM-columns that I want.
Best regards
TG
Autodesk Inventor/Vault Professional 2021