DynamoAutomation icon indicating copy to clipboard operation
DynamoAutomation copied to clipboard

Journal.ByWorkspacePath can't handle whitespace in file paths

Open andydandy74 opened this issue 9 years ago • 7 comments

@ikeough - found the first bug by pure luck. I rearranged the folder structure of the test files and renamed some of the subfolders. Some of the folder names now contained whitespaces. The path in the resulting journal file will look like this:

C:\temp\DynamoAutomation\slave/graphs\Revit2016\CountWalls.dyn

So it turned slave graphs into slave/graphs. Revit will not be able to find a Revit model with such a path nor will the Dynamo addin find a graph with such a path.

andydandy74 avatar Sep 19 '15 05:09 andydandy74

Also - I wonder if this may happen with other special characters as well?

andydandy74 avatar Sep 19 '15 05:09 andydandy74

@andydandy74 We should re-open this. It's replacing spaces with / because I made it do that when debugging why it didn't work for some paths. We should set it back, I just haven't had time.

ikeough avatar Oct 06 '15 16:10 ikeough

Okay @ikeough - I reverted it. Can you remember a specific case where leaving the original whitespace didn't work?

andydandy74 avatar Oct 07 '15 04:10 andydandy74

Seems that this is just a standard limitation of Revit journal playback.

andydandy74 avatar Aug 22 '17 06:08 andydandy74

Let's have a look at this again... https://twitter.com/PragmaticPrxs/status/963420422741069824

andydandy74 avatar Feb 13 '18 14:02 andydandy74

https://social.msdn.microsoft.com/Forums/vstudio/en-US/d345fb15-7676-438d-9530-bfc9de640f59/how-do-i-pass-whitespace-to-a-process-command-line?forum=csharpgeneral

andydandy74 avatar Feb 22 '18 18:02 andydandy74

What's the current status of this? I'd love to use your tools but renaming all of our office directories is not an option right now.

steinah6 avatar Nov 22 '19 17:11 steinah6