Creating a directory

Creating a directory

DeptaM
Enthusiast Enthusiast
220 Views
1 Reply
Message 1 of 2

Creating a directory

DeptaM
Enthusiast
Enthusiast

Good day everyone,
i need help with iLogic code. I have a rule that creates a Documentation directory and stores PDF and DWG from the drawing in it. I would need the created directory to be named Documentation \ Name of the parent directory.
I think it solves this line: oFolder = oPath & "\ Documentation (" & DateString & ")"

Thanks for the help

Martin Depta

0 Likes
221 Views
1 Reply
Reply (1)
Message 2 of 2

JelteDeJong
Mentor
Mentor

You can create directories like this:

Dim oFolder = IO.Path.Combine(Path, "\ Documentation (" & DateString & ")")
Dim directoryInfo As IO.DirectoryInfo = IO.Directory.CreateDirectory(oFolder)

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com