data.stringifyJSON memory limit reached

Hey all,

Basically i am trying to stringify 600 solids to push to revit, @jacob.small a workflow we discussed last week. for smaller files, this works like a charm however with bigger files,
I am faced with this issue:


anyone has suggestions except for adding a few sticks of RAM?

Thanks!

Can you expand on what the warning is? Screenshot + text is best.

If you can’t copy the text from the warning bubble due to the Dynamo version, open up the graph node manager extension, find the node in the chart, expand the warning, and copy it from there.

I will, I am restarting the app now, but i managed to stringify all individiual dictionary parts with a chopped list and a list.map, so one step further… (my .dwg is 443mb and only contains solids)


Data.StringifyJSON operation failed.
Exception of type ‘System.OutOfMemoryException’ was thrown.

so my current solution is this: writing a bunch of .json files to a folder and keeping a trace file, which does work but i would like to just keep it to 1 file in total :expressionless:

Seems like you should be able to write the strings to a text file, appending each as a new line. Try to concatenate them with a new line character (\r\n) and see if you can send all of that as a single text document.