Author Topic: Objectdbx.. image path  (Read 7479 times)

0 Members and 1 Guest are viewing this topic.

HelpLispinSeattle

  • Guest
Re: Objectdbx.. image path
« Reply #15 on: January 16, 2009, 02:35:16 PM »
Tim,

I caught my mistake. I'm a little embarrass to tell you.
I was repathing to a non existing location. As soon as
I created the desired location & copied the images it
worked.

Thank you for your time & tip for error handling. Keep
up the good work!

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Objectdbx.. image path
« Reply #16 on: January 16, 2009, 02:36:54 PM »
Tim,

I caught my mistake. I'm a little embarrass to tell you.
I was repathing to a non existing location. As soon as
I created the desired location & copied the images it
worked.

Thank you for your time & tip for error handling. Keep
up the good work!

We all have made mistakes like that.  Glad you caught it on your own, and you're welcome for the help/tips I provided.  You also keep up the good work.  As long as you are willing to learn, there are smart people here willing to teach.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

JCUTRONA

  • Guest
Re: Objectdbx.. image path
« Reply #17 on: January 27, 2009, 02:42:09 PM »
Tim,

I caught my mistake. I'm a little embarrass to tell you.
I was repathing to a non existing location. As soon as
I created the desired location & copied the images it
worked.

Thank you for your time & tip for error handling. Keep
up the good work!

We all have made mistakes like that.  Glad you caught it on your own, and you're welcome for the help/tips I provided.  You also keep up the good work.  As long as you are willing to learn, there are smart people here willing to teach.
Now that is rich.  True sense of community.

Maverick®

  • Seagull
  • Posts: 14778
Re: Objectdbx.. image path
« Reply #18 on: January 27, 2009, 02:43:29 PM »
there are smart people here willing to teach.

And I'm here too!  :-D

dustinthiesse

  • Guest
Re: Objectdbx.. image path
« Reply #19 on: January 27, 2009, 04:12:12 PM »
Tim,

I caught my mistake. I'm a little embarrass to tell you.
I was repathing to a non existing location. As soon as
I created the desired location & copied the images it
worked.

Thank you for your time & tip for error handling. Keep
up the good work!

We all have made mistakes like that.  Glad you caught it on your own, and you're welcome for the help/tips I provided.  You also keep up the good work.  As long as you are willing to learn, there are smart people here willing to teach.
Now that is rich.  True sense of community.

Probably the main reason I like this forum so much!

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Objectdbx.. image path
« Reply #20 on: January 27, 2017, 03:57:57 PM »
I know this is an OLD topic. I was messing around with the idea. Its a neat concept. However, with my awesome skill level. I keep getting an error. I am sure.... wait... I know I did something to make it not work.

Code: [Select]
(PutImagePath "c:\\temp\\test.dwg" "..\\Image\\")
Code: [Select]
Command: (PutImagePath "c:\\temp\\test.dwg" "..\\Image\\")
 Error-> Automation Error. File access error

thanks for any ideas!
Civil3D 2020

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Objectdbx.. image path
« Reply #21 on: February 09, 2017, 09:33:33 AM »
In my testing, it looks like a valid image has to be in the new location.
Quote
Command: (putimagepath "c:/test/images/image.dwg" "../images/")
Command: (putimagepath "c:/test/image.dwg" "../images/")
 Error-> Automation Error. File access error
Command: (putimagepath "c:/test/image.dwg" "../images")
 Error-> Automation Error. File access error
Command: (putimagepath "c:/test/image.dwg" "/images/")
Command: (putimagepath "c:/test/image.dwg" "./images/")
Command: (putimagepath "c:/test/image.dwg" "../images/")
 Error-> Automation Error. File access error
Command: (putimagepath "c:/test/dwg/image.dwg" "../images/")

My testing setup looked like
c:/test/
 |- dwg/
      |- image.dwg
 |- images/
      |- image.png
      |- image.dwg
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Objectdbx.. image path
« Reply #22 on: February 09, 2017, 09:37:20 AM »
Just curious here, so there is not a way that it can copy the source "image" from where ever and place it in the new folder image and repath?
Civil3D 2020

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Objectdbx.. image path
« Reply #23 on: February 09, 2017, 09:44:20 AM »
A routine could be written, but as this one stands. No.  It only repaths images, and within the new path there has to be a valid file (at least that is what I get from my quick testing).
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Re: Objectdbx.. image path
« Reply #24 on: February 09, 2017, 09:47:17 AM »
Interesting... Thank you for sharing. Looks like I will "lol" looking for something that may do this. Thank you for the suggestion.

Its amazing... I know how people work on projects and attach images from other projects or what not; but to have it copy the images attached in a dwg to a \images\ folder makes sense.
Civil3D 2020