VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

change the name of current document

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
170 Views, 4 Replies

change the name of current document

Hi all,
I need to change the name of the current document without saving it since
Thisdrawing.Name is readonly.
Anyone knows a solution for this?
Thanks in advance,
Kathrin
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

Hi Kathrin,

Define what you mean by not saving. Simplest method is do a saveas which
will change the name, then delete the file once you are done with it.
___________________________
Mike Tuersley
AutoCAD Clinic
Rand IMAGINiT Technologies
Message 3 of 5
Anonymous
in reply to: Anonymous

Hi Mike, I'm aware the way you suggest. However, the dwgs are up to 80 MB or
more, so I'd like to avoid saving. I'm hopefully to find a direct way for
changing the document name.
Goal of my project: Drawings contain 3d objects from a 3rd party
application, which I have to damage and then export filtered objects to
several drawings. It is very important that in no case of error the original
drawing can be overwritten by the damaged data. I'm aware of error handling
of course, but changing the documents name brings additional security.
Kathrin

"Mike Tuersley" schrieb im Newsbeitrag
news:MPG.18d7eb1dfced6e329896b3@discussion.autodesk.com...
> Hi Kathrin,
>
> Define what you mean by not saving. Simplest method is do a saveas which
> will change the name, then delete the file once you are done with it.
> ___________________________
> Mike Tuersley
> AutoCAD Clinic
> Rand IMAGINiT Technologies
Message 4 of 5
wivory
in reply to: Anonymous

If you're worried about overwriting original drawings, my suggestion would be to go into Windows Explorer, select all the drawings, choose Properties and check the Read-only Attribute.



Regards



Wayne Ivory

IT Analyst Programmer

Wespine Industries Pty Ltd
Message 5 of 5
joesu
in reply to: Anonymous

Kathrin,

The Document object Name property is read-only. Therefore, changing the document name w/o doing a saveas is not possible.

Joe
--

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost