vivekgrs Posted February 10, 2010 Posted February 10, 2010 hi everybody, I am working in autocad 2004 vba. I NEED TO CHANGE MY DRAWING NAME AT RUNTIME THRU VBA. CAN ANYONE HELP ME REGARDING THIS ISSUE REGARDS M.VIVEK Quote
MSasu Posted February 10, 2010 Posted February 10, 2010 Did you tried the below approach? ThisDrawing.SaveAs NewDrawingName, ac2004_dwg Kill OldDrawingName Regards, Quote
vivekgrs Posted February 16, 2010 Author Posted February 16, 2010 hi msasu, Thanks for your help. save as command will save the drawing in particular folder.that's correct. without saving the drawing. i need to change the drawing name or show some names in title bar of autocad. Regards m.arunachalam Quote
MSasu Posted February 16, 2010 Posted February 16, 2010 So, your goal is to display a custom message in AutoCAD’s title bar, not to change drawing’s name, is this correct? There is a property that store title bar’s content, but I’m afraid it is Read Only. ThisDrawing.Application.Caption May use instead the "MODEMACRO" system variable that will allow you to display a custom message on status bar (bottom of drawing). ThisDrawing.SetVariable "MODEMACRO", "My info message on Status Bar" Regards, Quote
vivekgrs Posted February 17, 2010 Author Posted February 17, 2010 hi msasu, I tried with Thisdrawing.application.caption. its not working bocz of its read only property. now iam going to use saveas method which u had told me previously. thank u for ur help Regards m.vivek Quote
MSasu Posted February 17, 2010 Posted February 17, 2010 You welcome! For sure, if you save the drawing with a new name and delete the old file, this will appear to user as a name change at run-time. Regards, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.