Hi All,
Currently I'm testing Edit-PWMicroStationDocuments cmdlet. I would like to process only 3D files from a particular folder.
The particular folder contains hundreds of 2D [drawing/sheets] and 3D [Design] file.
Is there any way to check if the file is 2D or 3D and then processed with given key-ins in script.
for example [Get-pwdocumentproperties] if {DesignFile = is3D} then proceed further.... something like that..
This could save lot of hours.
Any suggestion would be helpful.
Thanks,
Aniruddh
Does the Project utilise a Naming Convention, for example DR for Drawing, M2 for 2d Model and M3 for 3D model. If so you could create a Saved search to find all files with M3 in the name.The other thing is to run an Mvba like the one shown here - http://www.la-solutions.co.uk/content/connect/mvba/MVBA-VerifyFile.htm Which include an if dimension = 3d statement, then run the command.
Regards
Chris
AECOM Roads UK&I Digital Engineering, Design & Solutions Lead | Sector Information Management Lead
Principal Engineer – Digital
OpenRoads Designer 10.10 | MicroStation CE 10.16 | ProjectWise CE 3.4 | ContextCapture | ProjectWise PowerShell 2.0 | Generative Components | OpenBridge Designer 10.10
Revit 2022 | Civil 3D 2022 | Recap 2022 | Infraworks 2022 | Dynamo | Navisworks Manage
PowerShell | Visual Studio | Office 365 | Power Automate | Teams | SharePoint | Visio
Speckle | BIMVision | Revizto | Solibri
Thanks Chris Andrew for suggestion.
Currently I'm in testing phase so the files does not have any naming convention but I hope in REAL project they must have some convention to identify the files. I'll also look into MVBA solution.