PDA

View Full Version : Get the path of the DVB projet???


vndesperados
06-10-2005, 01:17 AM
Hi all!
I've some project in my autocad2004 but I can't get the path of this (by DVB source code), this mean is:
When I load some DVB project into AutoCad, I want to show the path and the name of this project by Click on a button.
How must I do?
Any feedback is OK?

snakeyes
05-12-2006, 06:14 PM
I have used this one before to manipulate the code windows from within the environment.

Anyway, use the sample below to find out all sorts of information about the loaded projects and the currently active one. Works in all VBA environments; office, autocad, etc


Sub X()
Debug.Print ThisDrawing.VBProject.Filename
Debug.Print ThisDrawing.VBProject.VBE.ActiveVBProject.Name
End Sub


A better way to get the info is to grab the vbproject as an object and access the set of properties that way...