I have used the “export schedule” Dynamo script shared in this website to export my Revit schedules to text files. However, I would like expand the script to further convert the text files format from Unicode to ANSI with Python script.
Is it possible? Can anyone help me on this?
Thanks for the reply. My current solution is batch file too, similar to the one that you shared with me.
However, I still hope that I can combine the procedure in a Dynamo script to ease the work.
Thanks for the reply. I have try the Python script with “import io”. Unfortunately I get warning message as below:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named io
I readed your problems about change enconding in dynamo and would I like to know if you solved this problems if you can help me with it? because I have the same question
I am export my schedules in unicode and I want change to ANSI with python script.
Unfortunately i am still looking for solution to this problem until today. However, i have just requested for help from Autodesk technical support team. Hopefully they will get back to me with a solution soon. If they do, i will update here.
I am waiting for reply with you. But how did you send the question to them? Existy some email or anything like this? Because I can send to them the same question, some times we can get the answer fastest
Hi
Just stumbled upon your issue.
In order to import libraries form the IronPython lib you need to add a reference to the location in your python script, so in order to use “io” you should add this line above “import io”:
I met one of the Autodesk technical specialists during an event recently. I just verbally told him my issue and passed him my name card. Looking forward to his reply shortly.
I would like to give it a go, it should very well be possible to do the convertion from unicode to ANSI within python. If you would like me to try please upload a .dyn file, and a sample .rvt file that I can perform the test on. (.rvt file should contain relevant schedules, and .dyn file should contain working graph for “standard” export of schedues incl python script).
And it turns out it can be different on different systems.
Other than that what @Alban_de_Chasteigner posted should work
or even something as simple as that:
Your tips worked to my documents, but one document for time. However, I have diferents documents and I would like change enconding in the same time of every documents and I tried to do like this: