$dgn=$objustn.OpenDesignFile('C:\x.dgn') $objustn.CadInputQueue.SendKeyin('fit all') $objustn.CadInputQueue.SendDataPoint <<variablePoint3d>> #void SendDataPoint (Point3d, Variant, int)
how to declare a Point3d variable named "VariablePoint3d" and assign x,y,z values to this in PowerShell.
Not sure what the input needs to be but you could record a macro doing what you need and convert to VBA. That will give you the code you need.
Also, "false" is spelt incorrectly in your code sample.
Regards
Chris
AECOM Roads UK&I Digital Engineering, Design & Solutions Lead | Sector Information Management Lead
Associate Director – Digital
OpenRoads Designer 10.12 | MicroStation 2023 | ProjectWise CE 10.3.4 | ContextCapture | ProjectWise PowerShell 2023 | ProjectWise WSG API | Generative Components | OpenBridge Designer 10.12
Civil 3D 2023 | Dynamo | Navisworks Manage
PowerShell | Visual Studio | Office 365 | Power Platform | Teams | SharePoint | Visio
Speckle | BIMVision | Revizto | Solibri
Thank you Chris.
Vinoth Joseph
ATKINS
Bangalore, India