Create a folder in Project XML location using plant3d API.

Create a folder in Project XML location using plant3d API.

gokulprasath
Participant Participant
244 Views
1 Reply
Message 1 of 2

Create a folder in Project XML location using plant3d API.

gokulprasath
Participant
Participant

Hello, 

I am trying to automate a certain task which involves creating a folder in the location where project xml presents. or else i just want to create a folder under "Plant3D models" folder using API. is there any api available to automate this task?

gokulprasath_0-1703236935297.png

 

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

jabowabo
Mentor
Mentor
// Create the directory on the disk
Directory.CreateDirectory(newFolderPath);
// Add the PnPProjectFolder to the project manager
if (parentFolder != null)
	proj.CreateFolder(parentFolder.Guid, newFolder);
else // use 'null' as parent folder to add to root folder 
	proj.CreateFolder(null, newFolder);
0 Likes