How to use "Paste Remembers Layers" through JS?

Hi,
I need to place a library assets. So that i gave assest.placeAsset(activeDocument). But it is placed in the active layer. The library asset was created by so many pageitems in different layers. Manually the paste remember layers is perfectly working. i don't know how to do in Java script. How to do?
Thanks in advance
by
Subha

Check out:
app.clipboardPreferences.pasteRemembersLayers
Dave

Similar Messages

  • Paste Remembers Layers - CS6

    Why doesn't Illustrator CS6 remember the layers, sublayers, and graphic styles of the multiple components of an object that I'm copying and pasting, either to another document or within the same document?
    "Paste Remembers Layers" is checked. 
    The pasted object comes in all on the same layer, the top layer that subsumes the several layers upon which the compnents of the copied object are located.  And the pasted object has neither fills nor strokes,
    Is there some other parameter I have to select?
    Is it a new bug?
    It seems like something as simple as copying and pasting (either within the same document or to a different document) an object  that consists of things on different sublayers, and whose sublayers have graphic styles applied to them ought to be basic to the Illustrator works.
    What is wrong?

    I just tried making a new master layer, and put all the layers into it as sublayers. 
    Paste remembers layers is checked.
    The pasted object appeared in the master layer, not in the several layers that the components of the copied object are in. 
    And I don't have any extensions for my clipboard or thrid party tools for my OS (Windows 7).   None that I've installed or know about anyway. 

  • How to use internet on pc through itunes

    how to use internet on pc through itunes

    That statement makes no sense.
    You do not use the Internet on a computer through iTunes.

  • What does Paste Remembers Layers exactly do?

    Hello
    I am studying the advanced layer operations with Illustrator CIB.
    I played with Paste Remembers Layers but only found out when it is unchecked, the layers copied from another file are pasted into the active layer; no other difference.
    Could someone please describe for me what Paste Remembers Layers is actually supposed to do?
    I've read other posts concerning the option, but I'm still not clear.
    Thank you in advance,
    Ead

    I don’t think it’s a misnomer, it remembers the name of the layer to paste into.
    Suppose you copy something from a layer named “A” and paste it into a another document.
    It will create a new layer with the name “A” if such a layer does not exist
    It will paste it into a layer with the name “A”  if such a layer exists.
    I love it (most of the time, Jacob)

  • How to use phone as modem through ups cable

    I think it s silly quest..but i dont knw how to use phone as modem using NOKIA pc suit software for internetwork.. i ve installed 7.1version even though pc conneced to my mobile through ups cable type CA-101D. But there s no response in pc.what can i do pls expl clearly now im usg nokia c3-01

    Install latest version of Nokia suite(old pc suite). You should get connected.
    In Love With My C6-01:Now running on Nokia Belle!

  • 'Paste remembers layers' between Indesign and Photoshop (CS5)?

    Hello,
    Is it possible to preserve layers from Indesign to Photoshop and copy them all in one copy/paste rather than copying each layer individually?
    Thanks in advance for any help on this.
    Cheers,
    Leah =)

    Not as far as I know.
    Should no one else have better info and if the task is a frequent one you may want to look into Scripting for automating it.

  • How to use BAPI in webdynapro through which standard transaction is calling

    Hi All,
    I'm facing problem in web dynapro application.
    When i use BAPI in event on action which in turn calls the standard SAP transaction .
    System gives me error "Error when processing your request".
    The termination type was: RABAX_STATE.
    Please suggest me, The process to call BAPI in web dynapro which returns STD. SAP Transaction.
    Regards,
    Sheetal

    Please check this FM - IDOC_INPUT_SRCLST, atleast you will one rough idea about mentioned FM's

  • How to copy-paste frames from one document to other with there respective layers intact?

    Hi All,
         I am facing an issue while copy paste frames from one document to other. I have a 3 frames in first documents each one on different layer. First document has 3 layers. The second document too have 3 layers , I am copying frames from first document to scrapdata using 'ICopyCmdData ' and 'kCopyCmdBoss'. I have 'Paste Remembers Layers' menu 'Checked' on Layer panel. I am using following function to copy frames to scrapdata.
    bool16 copyStencilsFromTheTemplateDocumentIntoScrapData(PMString & templateFilePath)
         bool16 result = kFalse;
        do
            SDKLayoutHelper sdklhelp;
            PMString filePathItemsToBeCopiedFrom(templateFilePath);  //("c:\\test\\aa.indt");
            IDFile templateIDFile(filePathItemsToBeCopiedFrom);
            UIDRef templateDocUIDRef = sdklhelp.OpenDocument(templateIDFile);
            if(templateDocUIDRef == UIDRef ::gNull)                 
                break;
            ErrorCode err = sdklhelp.OpenLayoutWindow(templateDocUIDRef);
            if(err == kFailure)                 
                break;
            InterfacePtr<IDocument> templatedoc(templateDocUIDRef,UseDefaultIID());
            if(templatedoc == nil)               
                break;
            InterfacePtr<ISpreadList>templateSpreadUIDList(templatedoc,UseDefaultIID());
            if(templateSpreadUIDList == nil)                  
                break;
            IDataBase * templateDocDatabase = templateDocUIDRef.GetDataBase();
            if(templateDocDatabase == nil)                  
                break;
            UIDRef templateDocFirstSpreadUIDRef(templateDocDatabase, templateSpreadUIDList->GetNthSpreadUID(0));
            InterfacePtr<ISpread> templateSpread(templateDocFirstSpreadUIDRef, IID_ISPREAD);
            if(templateSpread == nil)                 
                break;
            UIDList templateFrameUIDList(templateDocDatabase);
            if(templateSpread->GetNthPageUID(0)== kInvalidUID)                  
                break;      
            templateSpread->GetItemsOnPage(0,&templateFrameUIDList,kFalse,kTrue);  
            InterfacePtr<ICommand> copyStencilsCMD(CmdUtils::CreateCommand(kCopyCmdBoss));
            if(copyStencilsCMD == nil)                
                break;
            InterfacePtr<ICopyCmdData> cmdData(copyStencilsCMD, IID_ICOPYCMDDATA);
            if(cmdData == nil)                 
                break;
            // Copy cmd will own this list
            UIDList* listCopy = new UIDList(templateFrameUIDList);
            InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
            if(clipboardController == nil)              
                break;
            ErrorCode status = clipboardController->PrepareForCopy();
            if(status == kFailure)                  
                break;
            InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
            if(scrapHandler == nil)                 
                break;
            clipboardController->SetActiveScrapHandler(scrapHandler);
            InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
            if(scrapData== nil)                
                break;
            UIDRef parent = scrapData->GetRootNode();
            cmdData->Set(copyStencilsCMD, listCopy, parent, scrapHandler);
            if(templateFrameUIDList.Length() == 0)       
                return kFalse;      
            else      
                status = CmdUtils::ProcessCommand(copyStencilsCMD);    
            if(status != kFailure)
              result = kTrue;
            sdklhelp.CloseDocument(templateDocUIDRef,kFalse,K2::kSuppressUI, kFalse);
        }while(kFalse);
        return result;
    After this I need to close first document. Now I am opening the second document from indt file which has same number of layers as first document. I am trying to paste frames from scrap data to second document using '' 'ICopyCmdData ' and 'kPasteCmdBoss' as shown in follwoing function
    bool16 pasteTheItemsFromScrapDataOntoOpenDocument(UIDRef &documentDocUIDRef )
        bool16 result = kFalse;
        do
               InterfacePtr<IClipboardController> clipboardController(gSession,UseDefaultIID());
                if(clipboardController == nil)
                    break;
               InterfacePtr<IDataExchangeHandler> scrapHandler(clipboardController->QueryHandler(kPageItemFlavor));
               if(scrapHandler == nil)               
                    break;
               InterfacePtr<IPageItemScrapData> scrapData(scrapHandler, UseDefaultIID());
                if(scrapData == nil)
                   break;
                     //This will give the list of items present on the scrap
                UIDList* scrapContents = scrapData->CreateUIDList();
                if (scrapContents->Length() >= 1)
                    InterfacePtr<IDocument> dataToBeSprayedDocument(documentDocUIDRef,UseDefaultIID());
                    if(dataToBeSprayedDocument == nil)
                       break;
                    InterfacePtr<ISpreadList>dataToBeSprayedDocumentSpreadList(dataToBeSprayedDocument,UseDef aultIID());
                    if(dataToBeSprayedDocumentSpreadList == nil)
                         break;
                    IDataBase * dataToBeSprayedDocDatabase = documentDocUIDRef.GetDataBase();
                    if(dataToBeSprayedDocDatabase == nil)
                         break;    
                    UIDRef spreadUIDRef(dataToBeSprayedDocDatabase, dataToBeSprayedDocumentSpreadList->GetNthSpreadUID(0));               
                    SDKLayoutHelper sdklhelp;
                    UIDRef parentLayerUIDRef = sdklhelp.GetSpreadLayerRef(spreadUIDRef);
                    InterfacePtr<IPageItemScrapData> localScrapData(scrapHandler, UseDefaultIID());
                    if(localScrapData == nil)
                        break;
                    if(parentLayerUIDRef.GetUID() == kInvalidUID)
                        break;
                    InterfacePtr<ICommand> pasteToClipBoardCMD (CmdUtils::CreateCommand(kPasteCmdBoss));
                    if(pasteToClipBoardCMD == nil)
                        break;
                    InterfacePtr<ICopyCmdData> cmdData(pasteToClipBoardCMD, UseDefaultIID());
                    if(cmdData == nil)
                        break;
                    if(scrapContents == nil)
                        break;               
                    PMPoint offset(0.0, 0.0);
                    cmdData->SetOffset(offset);
                    cmdData->Set(pasteToClipBoardCMD, scrapContents, parentLayerUIDRef );
                    ErrorCode status = CmdUtils::ProcessCommand(pasteToClipBoardCMD);
                    if(status == kSuccess)
                        CA("result = kTrue");
                        result = kTrue;
                }//end if (scrapContents->Length() >= 1)       
        }while(kFalse);
        return result;
         Here in above function its required to set Parent Layer UIDRef and because of this all frames are getting paste in one layer.
    Is there any way we can paste frame in there respective layers?
         Also I need to work this code with CS4 server and desktop indesign.
    Thanks in advance,
    Rahul Dalvi

    Try,
    // dstDoc must be FrontDocument
    InterfacePtr<ILayoutControlData> layoutData(Utils<ILayoutUIUtils>()->QueryFrontLayoutData());
    InterfacePtr<ICommand> createMasterFromMasterCmd(CmdUtils::CreateCommand(kCreateMasterFromMasterCmdBoss));
    createMasterFromMasterCmd->SetItemList(UIDList(srcMasterSpreadUIDRef));
    InterfacePtr<ILayoutCmdData> layoutCmdData(createMasterFromMasterCmd, UseDefaultIID());
    layoutCmdData->Set(::GetUIDRef(layoutData->GetDocument()), layoutData);
    CmdUtils::ProcessCommand(createMasterFromMasterCmd);

  • How to transfering Adobe illustrator layers into a new project?

    How do I drag and drop adobe illustrator layers into another separate illustrator project? I have a few dozen illustrator layers and I wanted to transfer them to another illustrator project. Any ideas? Thanks
    I'm using windows 7 cs2

    You have to have an object on the layer for it to transfer (at least in my experience). Open document 1. Make a new document and make sure Paste Remembers Layers is on. Select all in document 1, copy and paste in document 2. Then hit delete to clear the objects from document 1. The layer structure will be maintained with one exception. Don't have a layer named Layer 1 in the first document that is not the top or bottom layer.

  • How to use Draw documnet wizar to a  user form?

    Hi all,
             I  have created one form with matrix.I want to get a  copy of sales quotation's data in my form. How to get through coding.
    (How to use Draw document wizard through coding)
             My form using UDO.Just like In my form i have created one button .If i click that button the list of sales quotations for the particular cutomer has to be displayed.
              From that i have to select one quotation,that data has to be filled   in my form.
             Please help me.How to do that?
            What is the menu ID for Draw document wizard.If i get that how can i link it with the my form having datas using UDO.
             Please help me to solve this problem
    Regards
    V.Rangarajan

    Hi,
    If you want to search for a specific menu ID you only have to activate the "System Information" with the B1 menu View -> System Information. After that when you use the Menus in the top of B1 application (all menus included the same ones as in the Modules form) you will be able to ee the MenuIDs in the bottom of B1 application.
    If you want to open a document form with information inside it I will say to better create a grid with the list of documents you want to show everytime (please have a look to UI API Grid item in help file, there is also a sample in the SDK UI samples) and make one of the columns a LinkButton, when the user will click in the link button the document form will open automatically. You have also many posts talking about how to create a link button in a grid, please use the search capabitility of this forum.
    Hope it helps
    Trinidad.

  • I I cannot find out how I used my free Icloud storage space.

    I use a Book Mac, an IPad and an IPhone and I am not so sure HOW I syncronize among the maschines, especially fotos.
    Is everything stored in the Icloud? Does Icloud replace an Itunes-synchronization?
    How can I see how I use my Icloud space? Of the 5 GB I have 1.7 GB left but cannot find out how I used them.

    Try reading through the iCloud basics section here: http://help.apple.com/icloud/#/mmfc0efea4.

  • CS 5.5 Mac - can't copy and paste between layers

    I'm running CS 5.5 on Mac (OS 10.7.4).  Try as I might, I can't copy and paste between layers.
    Create new document
    Create new layer (= 2)
    With first layer active, create text box and type randomly
    Swtich to pointer, select text box, Copy
    With second layer active, Paste
    Error message onscreen:
    <<Cannot paste or place onto locked or hidden layers.  Do you want to unlock and show all affected layers in order to paste?>>
    If click OK, the source layer (layer 1) becomes active again, and my text box gets pasted in.  The destination layer (layer 2) is untouched.
    Both layers are visible, neither of them are locked.
    Any ideas much appreciated!

    It sounds like you need to trash your prefs. See Replace Your Preferences
    And it shouldn't throw that message, but also check to be sure that Paste Remembers Layers isn't checked in the Layers panel flyout menu or you'll never get anything to paste from one layer to another.

  • How do I use GarageBand as a amp/speaker to listen to my Electronic Drum set? I have a MIDI-USB cord already but I can't figure out how to listen to my set through the software using my computer speakers?

    How do I use GarageBand as a amp/speaker to listen to my Electronic Drum set? I have a MIDI-USB cord already but I can't figure out how to listen to my set through the software using my computer speakers?

    If you want to listen to the sounds of your drum set, you should use an audio cable and connect it to the computer's line-in, then create a real instrument track.
    If you use a Midi/USB interface, you'll have to create a software instrument track and select one of GB's drumsets as the instrument. Hopefully your drumset's midi notes are mapped to the right sounds in GB.

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

  • How to use the index method for pathpoints object in illustrator through javascripts

    hii...
    am using Illustrator CS2 using javascripts...
    how to use the index method for pathpoints object in illustrator through javascripts..

    Hi, what are you trying to do with path points?
    CarlosCanto

Maybe you are looking for