Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
JamieSENG
in reply to: MechMachineMan

Ran the code an get an error on line 18: GetFileName is not a member of IO

 

Also, I noticed there isn't a location anymore with this code. So does that mean the file will save in the location of the original files?

 

 

Dim dwgDir = SysIO.Path.GetDirectoryName(oVisDoc.FullFileName)

not

Dim dwgDir = "C:\Export Copy Main Directory\dwg\"