Skip to main content
Known Participant
July 29, 2008
Question

How to relink a raster to a file by using SDK??

  • July 29, 2008
  • 3 replies
  • 1166 views
I want to relink a raster art object to a image file, but I don't find a function in RasterSuite or PlacedSuite can do this.

Any ideas?

Thanks

hanyang
This topic has been closed for replies.

3 replies

TommyGun96
Participating Frequently
June 10, 2010

Thanks for the info!

jdyyzAuthor
Known Participant
August 2, 2008
Thank you so very much!

This is precisely what I need.

hanyang
A. Patterson
Inspiring
July 30, 2008
You're trying to change the object to which a placed object is linked? So if I'm understanding you right, you'd like to take a place image, say, that's linked to file A and change it so it's linked to file B instead?

If I've got that right, then AIPlacedSuite::ExecPlaceRequest() might be what you want. I've never used it, but it looks like it uses a class (AIPlaceRequestData) that includes 'request type' enum that includes:

kQueryReplace
kForceReplace
kUnlinkPlaced
kForceReplaceEx

and some others. Might that be what you want? It also seems to have members for 'old art' and 'new art'. Sort of suggests you can use it to alter a placed object.