Jump to content

Recommended Posts

Posted

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

Posted

Did you tried the below approach?

 

ThisDrawing.SaveAs NewDrawingName, ac2004_dwg
Kill OldDrawingName

 

Regards,

Posted

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

Posted

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,

Posted

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

Posted

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,

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...