Hi Everyone,
I am after the file name and path of the current file im working in (not the design file or reference attachements etc). Just the name of the file and path of the drawing/file that is open. I know where to find it using the interface, File > Properties. Does anyone know (and give an example) how to get this information using VBA?
Thanks
first retrieve the activdesingfile from the application object
odgn As DesignFile (Object)
set odgn = ActiveDesignFile
filename=odgn.fullname
then you find the filename with "fullname" propertiy
Regards
Frank
since 1985: GIS, CAD, Engineering (Civil) Senior Consultant : [Autodesk Civil 3D , Esri ArcGIS, VertiGIS: in previous days : Bentley MS V4 - V8i, GeoGraphics, Bentley Map V8i, InRoads, HHK Geograf, IBr DAVID] : Dev: [C, C++, .NET, Java, SQL, FORTRAN, UML][direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)