Create Directory from string

Trying to get a consistent file path based on project information. I got it to generate the correct string to create my project folder but cannot get the Export DWG in Document node to accept the DirectoryPath.

BROWSE TO DESIRED FOLDER LOCATION is the only node I can make this work, but trying to set the file path automatically to the folder I created above.


Hi @RAugustine ,

It seems your directory starts with \\ , make sure to include the full directory, so also your C, D or E-drive (i.e.).

Also, what is the throughput of your makeshift passthrough codeblock?

1 Like

Daan,

Thank you for the input, the Code Block is something I got from Gavin Crump Aussie Guru YouTube channel.

It is suppose to run the DWG node after is Folder has been created. Seems to work well, I’ve used it on other scripts.

I will play around with the // again. I believe I tried this approach in my earlier attemps. I will get back to you.

Daan,

I got it figured out. I brought back in the mapped drive letter and started the String with

P:\

“Specified Drive Letter”:\

Also put the DirectoryPath Input node to Level L1 to specify the value from the list.

Thank you for your assistance.

1 Like