When using this command, it returns the error that I indicated in the picture.
Error code:
IronPython Traceback:
Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\pyRevit\Extensions\pySSG.extension\pySSG.tab\Materials.Panel\Create.pulldown\Materials to CSV.pushbutton\script.py", line 225, in <module>
TypeError: expected index value, got str
Script Executor Traceback:
IronPython.Runtime.Exceptions.TypeErrorException: expected index value, got str
в Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame)
в Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception)
в Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
в Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
в IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
в PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)