Rename images in drawing and remove paths

Rename images in drawing and remove paths

DC-MWA
Collaborator Collaborator
423 Views
1 Reply
Message 1 of 2

Rename images in drawing and remove paths

DC-MWA
Collaborator
Collaborator

As part of my previous post, I need to rename all the images in the currect drawing to "X-imagename" and remove the paths. Again, I'm hoping someone has already done this.

Thank is advance for your time and consideration.

0 Likes
424 Views
1 Reply
Reply (1)
Message 2 of 2

pbejse
Mentor
Mentor

@DC-MWA wrote:

As part of my previous post, I need to rename all the images in the currect drawing to "X-imagename" and remove the paths. Again, I'm hoping someone has already done this.

Thank is advance for your time and consideration.


Refer to previous thread Copy images in current drawing to selected folder 

You can change this bit on the code at post # 8 if you want a different drawing filename 

(Vla-saveas aDoc (strcat dir-loc "\\" (Vla-get-name aDoc)))

To something like this  [ "X-"  prefix on the original name ]

(Vla-saveas aDoc (strcat dir-loc "\\X-" (Vla-get-name aDoc)))

You can modify it to what ever you want

 

HTH

0 Likes