PDA

View Full Version : Rename an Image Reference name



MarkytheSparky
2016-03-23, 02:04 PM
NOOB Alert!


I have three images inserted into a block that is then inserted into my drawing (it is a title block)

Each of the tree images have a reference name that needs to be changed:

A320_04_SRV_ELEC-TACOLogo-BW-9857361

TACOLogo

The images are *.jpg

The paths for the images is constant

The names of the images: TACOLogo.jpg

Can someone help me burrow into an inserted block, look for the Reference Name (maybe with a wildcard based on the name of the image) then rename the Reference Name

MarkytheSparky
2016-03-23, 02:44 PM
Is it possible to use a variation of the above code to change the Reference Name to the Image name

currently: adsfjhadskj2-16-2003TACOLogo823450982

to: TACOLogo

TACOLogo is also the name of the image in the image path

rob.tosch
2016-03-24, 11:10 AM
hi MarkytheSparky ...
what's the problem ... ?

.) command: _bedit
.) command: _image
.) double-click on the name of the image on the left side ... rename.
.) browse to the new path of the image
.) save block

... ok?

have a nice day
rob

Opie
2016-03-24, 12:35 PM
Rob, I believe the request is to automate this task.

rkmcswain
2016-03-28, 01:00 PM
MarkytheSparky, if you don't get someone here to do this for free, there are services you can hire out, such as --> http://lee-mac.com/contact.html

tedg
2016-03-28, 03:40 PM
NOOB Alert!


I have three images inserted into a block that is then inserted into my drawing (it is a title block)

Each of the tree images have a reference name that needs to be changed:

A320_04_SRV_ELEC-TACOLogo-BW-9857361

TACOLogo

The images are *.jpg

The paths for the images is constant

The names of the images: TACOLogo.jpg

Can someone help me burrow into an inserted block, look for the Reference Name (maybe with a wildcard based on the name of the image) then rename the Reference Name

Hey MarkytheSparky, If you're looking to automate this..
Maybe a better way to approach this is create a NEW block with the renamed images, and run a block replace routine and then purge?

I didn't test this theory, but I think that would be easier to program.