Article View: adobe.indesign.sdk
Article #4373Re: Finding the UID of a frame
From: Skwerl
Date: Thu, 17 Jun 2004 16:32
Date: Thu, 17 Jun 2004 16:32
16 lines
1282 bytes
1282 bytes
I'm guessing the selection's owner is always the spread UID or something. That's probably why it's always the same. I had to do something similar in a custom suite. Try this:
InterfacePtr<ILayoutTarget> layoutTarget(this, UseDefaultIID());
if(layoutTarget)
{
UIDList selectedItems = layoutTarget->GetUIDList(kStripStandoffs);
if ( selectedItems.Length() == 1 )
{
InterfacePtr<IGraphicFrameData> theFrame(selectedItems.GetRef(0), UseDefaultIID());
UIDRef frameref = selectedItems.GetRef(0);
return(frameRef);
}
}
Good luck!!
Josh Usovsky
Technical Details
Message-ID:
<3bb4a52b.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb4a52b.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f63e9,e7fc7c88c47f1d85 X-Google-Attributes: gidf63e9,public From: Skwerl@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.indesign.sdk Subject: Re: Finding the UID of a frame Message-ID: <3bb4a52b.0@webx.la2eafNXanI> Date: Thu, 17 Jun 2004 09:32:38 -0700 References: <3bb4a52b.-1@webx.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit