Export material from csv

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)

@AlisherMusayev ,

you should use moduel CSV.

you can write your collected Materials to a file.



And you don’t have a video on how to damage this code, I’m not a simple programmer. thanks in advance

1 Like

Hi @AlisherMusayev welcome to the forum!

I have no experience of the pySSG extension; maybe @kbruxvoort (the developer) can help here!