How do i get current active or selected page item's  reference

Hi all,
How do i get current active or selected page item's  reference .
Please help me

You can implement a selection suite for your need, this selection suite will be placed into the kLayoutSuiteBoss.
In this selection suite place a method to give you the UIDRef of the selected pageitem, which you can get by using the method "GetUIDList" of the "ILayoutTarget" interface.
Manan Joshi
- Efficient InDesign Solutions -
MetaDesign Solutions
http://metadesignsolutions.com/services/indesign-development.php

Similar Messages

  • How to get UIDRef of the selected page item in indesign cs3

    Hi,
        I want to get the UIDRef of the selected page item like Rectangle Frame. Can you show me the complete code snippet to get the UIDRef of selected Rectangle Frame. I need this UIDRef for getting the geometric bounds properties(width and height) of the selected rectangle frame to display the user in dialog box.
    Regards,
    K.Saravanan.

    Hi,
    UIDList selection;
    InterfacePtr<ISelectionManager> pSelectionManager(Utils<ISelectionUtils>()->GetActiveSelection(), ISelectionManager::kDefaultIID);
    if(pSelectionManager == nil){
    break;
    InterfacePtr<ILayoutTarget> pLayoutTarget(pSelectionManager->QueryConcreteSelectionBoss(kNewLayoutSelectionBoss), ILayoutTarget::kDefaultIID);
    if(pLayoutTarget == nil){
    break;
    selection = pLayoutTarget->GetUIDList(kDontStripStandoffs);
    Then, you can use this interface "IGeometry" to get information about spline size.
    InterfacePtr<IGeometry> pGeometry(selection.GetRef(i), IGeometry::kDefaultIID);
    if(pGeometry== nil){
    break;
    PMRect splineBounds = pGeometry->GetStrokeBoundingBox();
    PMReal width = splineBounds.Height();
    PMReal hight = splineBounds.Width();
    Regards,

  • How do we know currently active call time in 6680?

    How do we know currently active call time? Whenever we receive or make a call, how can we know the call duration in Nokia 6680?

    Hello!
    Just take a look on page 27 of Manual.
    Recent calls: Connect -> Log -> Recent calls.
    Steps to activate call duration as follows: Connect -> Log -> Options -> Settings -> Show call duration. Select Yes.
    Andrey
    6150, 8310, 2100, 6310, 6310i, 6230, 6600, 6630, 6700, E60, N80, E61, N93
    N95, E61i, E71, E72,8600, 5800, N8

  • How do I get the activity window in safari 6.0.2?

    How do I get the activity window in safari 6.0.2?

    Safari 6
    Activity Window is no more available in Safari 6.
    Apple removed that feature.
    Best.

  • How can i get current time of a given timezone

    how can i get current time of a given timezone
    for example: Asia/Hong_Kong
    my code is like this, but the result is not correct.
    what's wrong?
    import java.util.*;
    public class test {
    public static void main(String[] args){
              String s = "Asia/Hong_Kong";
              String tempS = "";
              TimeZone myTime = new SimpleTimeZone(s);
              //TimeZone myTime = TimeZone.getTimeZone(s);
              Calendar myCal = new GregorianCalendar(myTime);
              tempS = myCal.get(Calendar.YEAR)+"-"+
                        (myCal.get(Calendar.MONTH)+"-"+
                        myCal.get(Calendar.DATE)+" "+
                        (myCal.get(Calendar.HOUR)+":"+
                        myCal.get(Calendar.MINUTE)+":"+
                        myCal.get(Calendar.SECOND);
              System.out.println(tempS);
    output is : 2001-7-15 11:16:48
    but the correct time should be: 2001-8-16 7:17:48
    the correct time should be 2001-8-16

    Certain indexes in the Calendar API start at 0 rather then 1, so, when you get the value, you may want to increment.
    I'm not sure why the time is incorrect. You may want to call getAvailableIDs() and make sure that the desired TimeZone ID is supported by your version. I doubt that Sun would have incorrect support for the time zone, but it may not be included, or perhaps it is included with a diffrent ID. You can always create your own time zone as well, by passing the String offset to getTimeZone(), the offset being how many hours beyond or before GMT. Hopefully this helps.

  • How do i get my activation to work?

    how do i get my activation cose to work?

    Sorry, but what is an "activation cose"? Is this question related to iTunes U, the service Apple provides for allowing colleges and universities to post educational content on the iTunes Store? If not, I know with the new Communities that it's easy to lose your way, but you'll want to look for another forum, perhaps the general iTunes forums, to ask your question.
    Regards.

  • HT201441 if the previous owner died, how can i get an Activation Lock for a iPhone 5

    If the previous owner died, how can i get an Activation Lock for a iPhone 5

    Without knowing the Apple ID and password that the deceased used you can't unlock the Activation Lock.

  • How can i get a activation code sent to my email again for my apple id?

    How can i get a activation code sent to my email again for my apple id?

    No idea what you are asking
    see if you can the answer here
    http://www.apple.com/support/appleid/security/

  • How can i get current time in different TimeZone

    Hi alls,
    How can i get current time in different TimeZone.
    I've tried
    final Calendar calendar = Calendar.getInstance(GMT0_TIME_ZONE);
    final Date date = calendar.getTime();
    but it returns current time in my time zone not in GMT0

    a simple way would be:Sometimes gets you the right result (not during daylight saving), but always the wrong way.
    I would strongly recommend getting into the habit of handling Dates correctly. A Date is a universal instant in time - the number of milliseconds since midnight GMT on 1 January 1970. That instant corresponds to various dates and times, depending on your time zone and the effect of daylight saving. You make that conversion of a universal instant to a localized date/time using Calendar and DateFormat.

  • How do I get the activation serial number for

    I've downloaded Photoshop CS6 Extended trial version. How do I get the activation serial number for this software

    You will need to buy the software.

  • My computer was refreshed and the technician did not deactive the CS3 license first and the drive has been wiped. I have my serial number, how can I get it activated?

    My computer was refreshed and the technician did not deactive the CS3 license first and the drive has been wiped. I have my serial number, how can I get it activated?

    Hi pipper88,
    You can reinstall CS3 and enter the serial number to activate the software.
    Regards,
    Rave

  • How can I get width that multiple selected items?

    How can I get width that multiple selected items? (Not grouped.)
    //---------- source code ----------
    var mm = 2.83464566929134 //unit conversion. (point->milimeter)
    var W = docRef.selection[0].width/mm;
    alert(W);
    //---------- source code ----------

    That's right Carlos
    @kimDino8,
    my script in Carlos link creates a green rectangle around the selected items. If you don't need this rectangle than you can remove this lines:
    var newRGBColor = new RGBColor();
    newRGBColor.red = 0;
    newRGBColor.green = 255;
    newRGBColor.blue = 0;
    and replace this:
    var aRectangle = aDoc.pathItems.rectangle(vBounds_Ob, vBounds_Li, vBounds_Re - vBounds_Li, vBounds_Ob - vBounds_Un);
    aRectangle.strokeColor = newRGBColor;
    aRectangle.strokeWidth= 2;
    aRectangle.filled = false;
    aRectangle.stroked = true;
    aDoc.selection = null;
    with this:
    var mmFactor = 2.83464567;
    alert("width = "+ (vBounds_Re - vBounds_Li)/mmFactor);
    alert("height = "+ (vBounds_Ob - vBounds_Un)/mmFactor);
    Further you only have to do: create a function for rounding of the result.

  • How can we get current time date with resultset?

    Dear All,
    I have to insert current time date in the table.So,i need to get the current time and date with result set.So,I will first get the time date and then insert it into the table.
    I know how can we get current time and date without resultset.i have created this function its working.But now i want to use this.mean using resultset i want to put in the table.
    How can i do this?
    public static String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
    public static String now() {
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    return sdf.format(cal.getTime());
    }

    yuck. Why not simply set a "new java.sql.Date()" to the SQL parameter in question?

  • How do u get an activation code

    How do you get an activation code for my ip address

    There is no activation code for IP addresses.
    Maybe if you explain exactly what you're trying to do we can offer assistance.

  • If the previous owner died, how do i get a activation lock

    if the previous owner died, how do i get a activation lock

    Find My iPhone Activation Lock- Removing a device from a previous owner's account. Otherwise, contact Apple Support.
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

Maybe you are looking for

  • Has the IOS update on my Ipod caused the Apple TV Remote App to have connection problems?

    I recently updated the software on my IPod Touch and now the Apple TV Remote App won't connect to the Apple TV.  Home Sharing is turned on for both my computer and Ipod.  ITunes and the IPod have both been updated.  Is there an issue with the new sof

  • Freezing Finder with PSD/TIF files - HELP!

    Hello everyone, First of all, I am pretty much ******. I've invested over 2400€ for my brand new Imac and now, out of nothing, my finder in Snow Leopard OSX 10.6.4 starts to hang/freeze whenever I get into the folder with large PSD/TIF files. It star

  • Error: "Unable to create a shortcut for MyApp" on Windows 2008

    When I try to install my JAVA app on windows 2008 via Java Web Start, it pop up a error message "Unable to create a shortcut for MyApp". The app can startup and work correctly after clicking "ok" on error message. BUT, there is no shortcut created on

  • No Sound in IE

    Hi Frnds! I am not able to hear any sound that is downloaded dynamically into sound objects of flash file. NOTE: This problem only occurs when you are playing files in INTERNET EXPLORER or AOL. The files play absolutely fine in FIREFOX. Is this a sec

  • Servlet Client

    Hi I was just making servlet client for my ejb but i face few problem the error is that EJB not bound in this context. 1) i making bean's jar file and then deploying it. 2) Then make servlet client . 3)Run the client form tomcat and EJB not bound in