I have seen that there might have been some issues with RunScript recently, but I did not find a proper answer so I will ask here.
It is simple, RunScript in this case (code bellow) will not work and it will return false. I tried to set echo to true, but there is no difference. As you can see after it fails I write the importCommand in the prompt just so i can test it.
And when I copy and paste that command - it works…so the path is good and the entire command is good…but there is some problem with calling the RunScript from code. Any ideas? I did not use this for quite a while and have a vague recollection that “something” must be done so that the RunScript works…maybe change RunMode in the command? But I cannot remember… I also found some older code where this used to work, so I wonder if it is something related to Rhino 8.
I tried it with 3dm, dxf and dwg files…so it is not about the files themselves.
Hi djordje,
thanks but the formatting of the command is not the problem (i tried what you suggested as well, including couple of other formatting options)…just to test it I do:
So I simply select that, copy and paste it and it works…the file gets imported. That is the proof that the importCommant is good, but that the RunScript fails.
Hi @dimcic ,
When you run the upper raw string code with @, how does the Rhino Command line look like? Some message must have appeared there (file not found or unable to open, …).
thanks. The formatting of the importCommand string did not matter…but when I said “…I have a vague recollection that “something” must be done so that the RunScript works…” it was that Attribute: