PathItem error [error Illustrator: 1346458189 ("PARM")]

Hello.

I'm in trouble with an error below.

That there is no solution?


There are items that can be obtained as the path the path to the item at the time of the acquisition.


It does not always

However, whenever you happen to occur once.


pathItem there are approximately 500 to 1000.

error_hc.png


Because it uses one script to another,

I think that the remaining debris such as Clipboard and global variables

And to set the null value, there is no change, but I tried to get out.


When I restart Illustrator, but after cure
We are troubled to go not to not not to restart every time.

Sorry in clumsy sentence.
Thank you.

----------

Illustrator worm. CC2014

javascript script

You can try to duplicate all the pathItems in a document and delete the original, and you may be able to prevent this error.

If it works, you could do a function so that duplicate elements of the problem, perhaps.

Tags: Illustrator

Similar Questions

  • Setup error (Illustrator)

    Hello

    When I download and install Illustrator I get the error: "the download is broken, please cancel and try again later (-60)" (translated from German). I tried several times in the last 2 days. Also there is no journal of Illustrator files that I could watch. What can I do?

    Thank you

    Anna

    Lilleianne maybe try another connection.  If you are on a wireless connection, try a wired connection for example.

  • Memory error Illustrator

    The following error occurs when connected to a domain account on a Windows XP workstation and open Illustrator... «the operation cannot complete because there is not enough memory (RAM live) available.»  I can open illustrator CS2 as a Director or a local account.  It seems to stop at pdfsuite.aip.  If I answer ok it will continue to open but at the launch of a file the file is empty.

    Any help would be appreciated.

    The error indicates that you have a problem with your installation of Acrobat, and therefore shared libraries of PDF (the plug-in is only as a remote connector to some of these libraries). Maybe it I screwed up with the 9.0.2 last security patch? Therefore, you must check and reinstall Acrobat in repair mode. This can help. If it isn't, of course to reinstall... It is quite possible, the update caused a problem of compatibility of version and reinstall the 'old' files that come with CS2 will fix it...

    Mylenium

  • Bootmgr missing errors illustrated the reinstallation of Vista

    Hi, (this is my first post)

    I noticed that my pc was running long-legged I ve tried everything and I had nothing to lose so I if I could start a clean condition, I had the Vista repair disks that I created using vista Toshiba disc creator, I used them and he said that he failed or something and the pc crashed everything. Now when booting via disk HARD I received this
    "bootmgr missing".

    So I tried to boot in the disks that I created with the software of Toshiba and I received the same error, I have no Vista installation DVD and I'm lost.
    What should do?

    Any help would be appreciated.

    Can you start installation of HARD drive?
    It is described under http://aps2.toshiba-tro.de/kb0/HTD9102IR0000R01.htm

  • Definition of message error Illustrator CC 2014

    When you try to save a .eps file in IllustratorCC 204, I get an error message "cannot save error ID:-50. Can you mw what this means and how I can fix?

    What system?

    When you save the file?

  • Y at - it a good script to collect all the layers in 1 layer?

    I am doing something similar to the selection of layers and using collection based on new layer in Illustrator. It runs successfully on several layers, but for others it will expel just ' mistake Illustrator: 1346458189 ("PARM").

    My script is really simple and I use it to collect layers into a layer named "Earned", if it has more than 2 layers. I even tried the fix suggested in this Readme: http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scripting/Readme.tx t. But I get an error just when you reference a running level. I tried directly referring to the current in the loop layer, but it always causes problems. If I get rid of the line of movement (which is the whole reason for this script), it works fine. I tried to let the script sleep and a few other things, but cannot make it work properly. I've included some debugging lines who write in the console to make sure that everything is properly defined

    var = app.activeDocument actDoc

    var layerCount = actDoc.layers.length;

    $.write("\n//layer Name\nLayer Count:" + layerCount + "\n///").

    var placeInLayer = actDoc.layers ['Collected ""];

    If (layerCount > 0) {}

    for (i = 0; i < layerCount; i ++) {}

    try {var topLayers = actDoc.layers [i] ;}

    catch("|)    "+e) {

    $.write (e)

    }

    .write $("\nLayer name:"+ topLayers.name+"|)    Count: "+ i +" ")".

    Sublayers = topLayers.layers;

    If (topLayers.name == "Collected") continue;

    topLayers.move (placeInLayer, ElementPlacement.PLACEATEND);

    }

    }

    Try a loop back... from the bottom layer.

  • How to duplicate the artboard and move it over the original?

    Basically, I have a document open and want to duplicate its work plan and then move it to a new location (the X axis, the original 50pixels). Doesn't seem too hard, but I can't understand it. This is for CS5.

    var app.activeDocument = docRef;

    var abSrc = docRef.artboards [0];

    var abSrcX = abSrc.artboardRect [0];

    var abSrcY = abSrc.artboardRect [1];

    var abSrcW = abSrc.artboardRect [2];

    var abSrcH = abSrc.artboardRect [3];

    abSrcX = abSrcX + 1221;

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    dupAB var = docRef.artboards.add (abSrcRect);

    The above works a bit. Original work plan is 17 "x 11" (1224px x 792px) and when I put abSrcX to the foregoing 1221, extendscript throws an error PARM. During one of my sessions of trials and errors, I decided to see what was the document geometricBounds:

    $.writeln (docRef.geometricBounds); = 45-12, 1221.154296875,-780

    So now, I see a bit where I can't go more than 1221, but why can't I?

    I moved the artboard for everything at the top left of the document and I got the geometricBounds again and they were - 6754.5,7038.5,-6463.5, 6736.5, but still can not abSrcX anything about 1221.

    the error is "error Illustrator: 1246458189 ("PARM").

    I tried to understand this is what courses I can think, but nothings working. Any input or help would be GREATLY appreciated!

    EDIT:

    So I tried this for the hell of it:

    var abSrcX = 0;

    var abSrcY = 1224;

    var abSrcW = 1224;

    var abSrcH = 792; (for some reason any 792 translates into 6 "inside the Illustrator, so I put this 432 to make 11")

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    dupAB var = docRef.artboards.add (abSrcRect);

    and it adds a new work plan and move to X, Y, such that designated. Not exactly what I want, but narrowing down the issue.

    I'm trying

    var abSrcX = 1224;

    var abSrcY = 0;

    var abSrcW = 1224;

    var abSrcH = 792;

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    dupAB var = docRef.artboards.add (abSrcRect);

    and he throws that error PARM still once, then now there is really no sense!

    Edit2: I changed abSrcY to 10000 and now the height of the artboard is really long, which is insane even more... I don't have the (x, y, width, height) artboardRect down wrong?

    Edit3: If after one more google search, I found out what the problem is. artboardRect is HIGH, LOW, LEFT, RIGHT; and when I do:

    var abSrcX = 1368;

    var abSrcY = 0;

    var abSrcW = 2592;

    var abSrcH = - 792;

    var abSrcRect = [abSrcY, abSrcW, abSrcX, abSrcH];

    top down right and left;

    dupAB var = docRef.artboards.add (abSrcRect);

    This works. BUT I have no idea what the numbers are in relationship with. The center of the artboard? The document Centre? And if I run it again and change... oh dear.

    I think that I just thought of it.

    abSrcX is on the LEFT;

    abSrcY is HIGH;

    abSrcW is RIGHT;

    abSrcH is DOWN;

    Considering that if I add (1224 + 144) to abSrcX and abSrxW, it creates another work plan 2 "away from the previous 17" x 11 ". If I want to run again, I just have to add (1224 + 144) abSrcX and abSrxW again. Now to find a way to do it dynamically on the fly.

    I still like to hear comments on the question of whether this is good or bad, and how I can improve!

    @clrx01,.

    Why do you work with width and height work plan?

    IMHO you need what only once.

    Try something like this:

    // ArtboardCopy.jsx
    // http://forums.adobe.com/thread/1320239?tstart=0
    //        How to duplicate artboard and move it relative to original?
    // regards pixxxelschubser
    
    var docRef = app.activeDocument;
    //var abSrc = docRef.artboards[0];
    var abIdx = docRef.artboards.getActiveArtboardIndex ();
    var abSrc = docRef.artboards[abIdx];
    
    var moveX = 50;
    
    var abSrc_L = abSrc.artboardRect[0];
    var abSrc_T = abSrc.artboardRect[1];
    var abSrc_R = abSrc.artboardRect[2];
    var abSrc_B = abSrc.artboardRect[3];
    
    var next_ab_L = abSrc_R + moveX;
    var next_ab_T = abSrc_T;
    var next_ab_R = next_ab_L + (abSrc_R - abSrc_L) ;
    var next_ab_B = abSrc_B;
    
    //top left right bottom;
    
    var next_ab = docRef.artboards.add([next_ab_L, next_ab_T, next_ab_R, next_ab_B]);
    

    Have fun

  • Error PARM (shows like mrap) with multiple selections, no errors with single selection

    Hi all

    I'm new to Illustrator scripting this is my first script. I get this error "error 1200: Illustrator error: 1346458189 ("MRAP"): line 50" which is the line:

    var next_board = doc.artboards.add([next_board_L, next_board_T, next_board_R, next_board_B]);  

    It only occurs when I have several selections and never when I have only a single selection. After a little research I found the error is actually PARM, but I don't see the variables not instantiated or other issues that might be throwing this error. I'm on a mac Illustrator CC. I would appreciate any help on this matter. Here's the complete script.

    #target Illustrator
    
    
    // This script was made to take all selected objects
    // Create a new arboard for all Selected objects 
    // At a user specified width and height then
    // Scale the object to the artboard size and center
    
    
    
    
    var doc = app.activeDocument;
    var select = doc.selection;
    
    
    
    
    if (select.length &gt; 0) {
    
    
         var title = "Fit Selected Object(s) to Artboard(s)";
         var msg = "Enter the width and height of artboards (single number)";
    
    
         var board = Number(Window.prompt (msg, 0, title));
         
    
    
         for(var i = 0; i &lt; select.length; i++) {
    
    
              var selectW = select[i].width;
              var selectH = select[i].height;
    
    
              if(selectH &gt;= selectW) {
                   if(board &gt; selectH) {
                        scale = board/selectH*100;
                   }
              } else {
                   scale = board/selectW*100;
              }
    
    
    
    
              var boardIdx = doc.artboards.getActiveArtboardIndex();
              var boardSrc = doc.artboards[boardIdx];
    
    
              var boardSrc_L = boardSrc.artboardRect[0];
              var boardSrc_T = boardSrc.artboardRect[1];
              var boardSrc_R = board;
              var boardSrc_B = -board;
    
    
              var moveX = 10;
    
    
              var next_board_L = boardSrc_R + moveX;  
              var next_board_T = boardSrc_T;  
              var next_board_R = next_board_L + (boardSrc_R - boardSrc_L);  
              var next_board_B = boardSrc_B; 
    
    
              var next_board = doc.artboards.add([next_board_L, next_board_T, next_board_R, next_board_B]);  
    
    
              select[i].resize(
                  scale, //this is a percentage of current width  
                  scale, //this is a percentage of current height  
                  true, // changePositions  
                  true, // changeFillPatterns  
                  true, // changeFillGradients  
                  true, // changeStrokePattern  
             );
    
    
    
    
              var selPosX = select[i].left;
              var selPosY = select[i].top;
              
              var selBoardDiffX = next_board_L - selPosX;
              var selBoardDiffY = next_board_T - selPosY;
              var toCenter = 0;
    
    
             select[i].translate (
                       selBoardDiffX,
                       selBoardDiffY,
                       true,
                       true,
                       true,
                       true
             );
    
    
             var boardH = next_board.artboardRect[2] - next_board.artboardRect[0];
              var boardW = next_board.artboardRect[3] - next_board.artboardRect[1];
    
    
             if( boardH &gt; select[i].height ) {
                  toCenter = (boardH-select[i].height)/2;
    
    
                      select[i].translate (
                                0,
                                -toCenter,
                                true,
                                true,
                                true,
                                true
                      );
    
    
             }
             var NegSelectW = select[i].width * -1; //Must be a negative number
    
    
             if ( boardW &lt; NegSelectW ) {
                  toCenter = (boardW+select[i].width)/2;
    
    
                      select[i].translate (
                                -toCenter,
                                0,
                                true,
                                true,
                                true,
                                true
                      );
    
    
             }
         
         }
    
    
    }
    

    Ooh! Go straight to here:

    Re: [Illustrator CS5.1] how to create a custom artboards.add function argument

    This is exactly the kind of thing you need!

  • "Error 0xBFF69012 attribute value is out of range" for Point Grey Grasshopper2 GS2-GE-50S5M

    Try to get the camera above to work at MAX. Running on LabView 2010 SP1 with Vision Acquisition software August 2010.

    Errors illustrated: error 0xBFF69012 attribute value is out of range

    Camera works perfectly well on the supplied software advanced Grey. Point Grey Image Filter Driver installed. Turned off the Windows Firewall. Card (http://www.sonnettech.com/product/prestogigproec34.html) Ethernet supports Jumbo Frame.

    Read through the following measures without result:

    http://digital.NI.com/public.nsf/allkb/FCE7506A3AF7636C862576240072716D

    http://digital.NI.com/public.nsf/allkb/A0A1CE4704265BF2862578CA007A4CF8

    How will I know if there is a problem with the XML file?

    What are the possibilities that this device is not compatible with IMAQdx?

    Thank you.

    Problem solved in new firmware version 1.25.3 - 00.

    Contact Gray Point to this firmware.

  • How to apply the upload of a file that does not create an error in edit mode?

    Hello

    It seems rather simple, but maybe I'm missing something (hoping that I'm not)!

    We use the Apex 5.0.1, but I believe that this is the case for other versions as well. At least that which was already identified and fixed in the latest patch.

    Here's the scenario:

    1. we have a table EMP where we maintain details about employees.

    2. we have an EMP_FILES table where we maintain one or more document (s) of support for each employee.

    3 page P1 displays the details of the PMCS with an IR showing the list of documents associated with this employee. This page also has a button called "New Document" when you click on it, takes users to P2 where they can upload a new document. The IR has an 'Edit link ' who also takes users to P2 where they can modify the file information (such as comments, date expiration etc.) or replace an already the document with a new document.

    4. we need to force users to download a document, when they save it in P2, then the easiest option was to highlight ' required ' 'Yes' as shown below:

    5. This works very well for a 'New' file upload / insert features.

    6. when users click on edit link to access the P2 and if they do not want to replace an existing document with a new document, but want to update the rest of the file info (like comments, expiration date etc.), it throws errors illustrated below:

    7. to address this problem, we put 'Value required' on 'No' and check the length of the BLOB in DB trigger BEFORE INSERT or UPDATE, as shown below:

    CREATE OR REPLACE TRIGGER BEFORE INSERT or UPDATE ON Biu_files files FOR EACH ROW

    DECLARE

    BEGIN

    IF NVL () DBMS_LOB.getlength () : NEW.fle_contents ( ), 0 ) < = 0 THEN

    RAISE_APPLICATION_ERROR () -20000, 'Please make sure to download a file not empty'. );

    END IF;

    IF THE INSERTION

    IF : NEW.fle_id IS NULL THEN

    SELECT fle_id. NEXTVAL IN : NEW.fle_id FROM dual;

    END IF;

    ((: NEW.fle_created_by: = APEX_CUSTOM_AUTH.get_user ( ) to REPLACE NVL( ) , "person", USER (), USER ();

    : NEW.fle_created_dt: = SYSDATE;

    ELSIF UPDATE THEN

    ((: NEW.fle_modified_by: = APEX_CUSTOM_AUTH.get_user ( ) to REPLACE NVL( ) , "person", USER (), USER ();

    : NEW.fle_modified_dt: = SYSDATE;

    END IF;

    END;

    /

    SHOW the ERRORS;

    8. If I understand correctly, the file upload in the APEX is nothing other than an action of 'INSERT + UPDATE' in the same folder. For example when we upload the fresh file, it creates a record with EMPTY blob and immediately update the record with the contents of the blob. Thus, regardless of whether or not users select a file, it would raise an error as mark is right at the top of the trigger code.

    9 ok, well move this piece of code at the top to UPDATE section because we want to allow the insert 1 to cross. But the problem is... Download the second part of the APEX file, which is updated would happen only if there is a selected file. If there is no file selected, ONLY the INSERT is pretty good. Thus, within the section of UPDATED trigger validation would never run for a fresh download.

    If someone has encountered this? I can't imagine that we are the 1st :-). Happy to provide / discuss it further. Thank you in advance!

    Kannan Kumara says:

    It seems rather simple, but maybe I'm missing something (hoping that I'm not)!

    We use the Apex 5.0.1, but I believe that this is the case for other versions as well. At least that which was already identified and fixed in the latest patch.

    Here's the scenario:

    1. we have a table EMP where we maintain details about employees.

    2. we have an EMP_FILES table where we maintain one or more document (s) of support for each employee.

    3 page P1 displays the details of the PMCS with an IR showing the list of documents associated with this employee. This page also has a button called "New Document" when you click on it, takes users to P2 where they can upload a new document. The IR has an 'Edit link ' who also takes users to P2 where they can modify the file information (such as comments, date expiration etc.) or replace an already the document with a new document.

    4. we need to force users to download a document, when they save it in P2, then the easiest option was to highlight ' required ' 'Yes' as shown below:

    5. This works very well for a 'New' file upload / insert features.

    6. when users click on edit link to access the P2 and if they do not want to replace an existing document with a new document, but want to update the rest of the file info (like comments, expiration date etc.), it throws errors illustrated below:

    Set the validation property default value is required on file upload on No.element.

    Create a validation of Non Null point about to file download pages and subordinate, for example the button CREATE is clicked and the PK null line item. This will ensure that the validation is done only when you insert a new file and check the updates that do not involve a file upload to be accepted without error.

  • Rule error Excel after you migrate from 10.4 to 12.2 hub of OPA

    After migration 10.4.4 rule 12.2 OPA Hub, getting error below:

    Below is the status of date, I changed in the format "yyyy-mm-dd". always above the errors illustrated. is there another format, we can use?

    Thank you

    Moses,

    even after putting > = "yyyy-mm-dd", lance below error:

    Therefore, I changed it below

    no error. Can I deploy snapshot. Please let me know if top is the correct syntax, thanks.

  • [CS5.1 Illustrator] How to create a custom artboards.add function argument

    I am trying to add the new artboard using java script. I couldn't find a solution anywhere. Adobe scripting guidelines are just poor (to not use stronger words).

    I'm trying it returns error

    Error 1242: Rectangle of illegal argument value - 1 argument - expected

    When I use the value of "artboard.artboardRect" of the other work plan then it creates the plan of work in the same place, but I can't change it (resizing) that makes this useless option.

    artboards. Add (work plans [0] .artboardRect); works

    artboards. Add ([0,0,200,50]); Error 1200: an Illustrator error coccurred: 1346458189 ('PARAM')

    var rect = .artboardRect [0] of work plans;

    RECT [0] = 0;

    RECT [1] = 0;

    RECT [2] = 200;

    RECT [3] = 50;

    artboards. Add (rect); Error 1242: illegal argument - 1 argument - Rectangle value expected

    New Rectangle yields to "Rectangle is not Builder."

    Hi G. Aneta,

    the origin of the rule changed with CS5.

    Maybe this can help a bit to your understanding:

    // ArtboardsAddInEachQuadrant_CS5.jsx
    // regards pixxxelschubser
    
    var AB_1 = activeDocument.artboards.add([0,50,200,0]);
    AB_1.name = 'first quadrant';
    var AB_2 = activeDocument.artboards.add([-200,50,0,0]);
    AB_2.name = 'second quadrant';
    var AB_3 = activeDocument.artboards.add([-200,0,0,-50]);
    AB_3.name = 'third quadrant';
    var AB_4 = activeDocument.artboards.add([0,0,200,-50]);
    AB_4.name = 'fourth quadrant';
    

    Have fun

  • JS - selection of the center of the artboard / New Document with some dimensions of the artboard

    TL; DR:

    How do I Center my current selection to the artboard?

    as well as hitting the "align horizontal center" and the «align vertical center» buttons

    Hello

    I searched for the last two hours and before my head hit the keyboard I wanted to ask for help.

    What I am struggling with:

    in my init function, I create a new document and then copy all the layers of the previous document step by step to the new document and then save it as SVG.

    Init

    (function() {}

    Destination = Folder.selectDialog ("selecting a folder for files SVG.', docPath");

    If (! destination) {return ;}

    holderDoc = app.documents.add ();

    stepThroughAndExportLayers (docRef.layers);

    }());

    My problem is that holderDoc = app.documents.add (); always creates a document that is not the same size as my original document where the layers are copied from.

    so, I want the same artboard size as in my original document.

    I am fine with the fact that fixed values or directly take the values of the initial RFSO.

    I tried this on the segment where I create the new document:

    Init

    (function() {}

    Destination = Folder.selectDialog ("selecting a folder for files SVG.', docPath");

    If (! destination) {return ;}

    holderDoc = app.documents.add ();

    holderDoc.artboards [0] .artboardRect = [0,0,128,128];

    stepThroughAndExportLayers (docRef.layers);

    }());

    and receive this error message:

    "Error 1200: Illustrator error: 1346458189 ("PARM").

    Online: 83

    -> holderDoc.artboards [0] .artboardRect = [0,0,128,128]; »

    what I read on the web means that illustrator does not know what to choose document. but I called him directly. so, what could be the problem?

    to clearify: I don't want to adapt to the artboard for the images/layer. the work plan must always be a certain size. (for me 128px by 128px)

    Thank you for helping me to each fixing of my approach highly or offer a completely new.

    Thank you very much in advance.

    Edit: workaround solution


    (function() {}

    Destination = Folder.selectDialog ("selecting a folder for files SVG.', docPath");

    If (! destination) {return ;}

    var activeArtboard = app.activeDocument.artboards [app.activeDocument.artboards.getActiveArtboardIndex ()];

    var ABRect = activeArtboard.artboardRect;

    holderDoc = app.documents.add ();

    holderDoc.artboards.add (ABRect);

    holderDoc.artboards.remove (0);

    holderDoc.artboards.setActiveArtboardIndex (0);

    stepThroughAndExportLayers (docRef.layers);

    }());

    now, I added a new work plan to the new document with the same size as the work plan on the original document.

    I have remove the work plan predefined on the new doc and the new work plan as active.

    BUT!

    now, the work plan is not centered in the window. Illustrator that allows to place my image with ctrl + c-> ctrl + v somewhere outside the artboard.

    Now I need to align my selection in the center of the artboard. but I can't find any reference on how to Center a selection to the artboard.

    I don't know if I understand you right.

    If you want to create a new document with a fixed width and height, you can do this:

    var doc = app.documents.add(DocumentColorSpace.RGB, new UnitValue ("128", "px"), new UnitValue ("128", "px"));
    

    If you want to only align your objects selected on the artboard, you can try this:

    Note that the result may be different, if the clipping masks are exist in the document.

    Please test it first on copies of your documents. Use it at your own risk.

    // ArtboardCenterAroundSelectedPaths.jsx
    // works with CS5
    // http://forums.adobe.com/thread/1336506?tstart=0
    // (title: script to align selected objects to artboard)
    // quick & dirty, all selected items will be centered at the active artboard
    // (include clipping paths  !visible result can be different)
    
    // regards pixxxelschubser  19.Nov. 2013
    
    var aDoc = app.activeDocument;
    var Sel = aDoc.selection;
    
    if (Sel.length >0 ) {
        var abIdx = aDoc.artboards.getActiveArtboardIndex();
        var actAbBds = aDoc.artboards[abIdx].artboardRect;
    
        var vBounds = Sel[0].visibleBounds;
        vBounds_Li = vBounds[0];
        vBounds_Ob = vBounds[1];
        vBounds_Re = vBounds[2];
        vBounds_Un = vBounds[3];
    
    if (Sel.length >1 ) {
        for (i=1; i vBdsI[0] ) {vBounds_Li = vBdsI[0]};
            if( vBounds_Ob < vBdsI[1] ) {vBounds_Ob = vBdsI[1]};
            if( vBounds_Re < vBdsI[2] ) {vBounds_Re = vBdsI[2]};
            if( vBounds_Un > vBdsI[3] ) {vBounds_Un = vBdsI[3]};
            }
    
        aDoc.artboards[abIdx].artboardRect = [vBounds_Li +((vBounds_Re - vBounds_Li)/2-(actAbBds[2]-actAbBds[0])/2), vBounds_Ob -((vBounds_Ob - vBounds_Un)/2+(actAbBds[3]-actAbBds[1])/2), vBounds_Li +((vBounds_Re - vBounds_Li)/2-(actAbBds[2]-actAbBds[0])/2)+(actAbBds[2]-actAbBds[0]), vBounds_Ob -((vBounds_Ob - vBounds_Un)/2+(actAbBds[3]-actAbBds[1])/2)+(actAbBds[3]-actAbBds[1])];
        }
        } else {
            alert ("No selection");
            }
    

    Hope this is useful for you.

    Have fun

  • JavaScript to make the selection of top level group?

    Does anyone know how to select a group of high level by index?

    For example, I have a lot of files with deeply nested groups and I want to select all the illustrations as high-level groups and create a work plan around the visible boundaries of the group.

    I was able to loop through the groupItems from the document, but I can't seem to tell the difference between the higher level groups and subgroups. In other words, the loop works properly, but it is creating a plan to work around the Group of high level and then around each sub-group and each group within this subgroup.

    In the image as an attachment, you can see that there are 5 top-level groups in this document. However, everything else is essentially grouped within these groups. for example, the logo 'Earth' is about 100 + path grouped items. information on the collar are grouped several times in a complex hierarchy as well.

    The obvious solution is to decouple everything and then regroup every piece of shirt in 1 group. Unfortunately, that in itself is a lot more time than to manually create work plans and then the file is not very clean, if never go back inside to change/fix something.

    I guess a way to loop through the subgroups and ignore them if they are in the geometric limits of higher level? But I'm not really sure where to start on this code...

    This is the code that I currently have which creates around each groupItem, work plans, but also around each groupItem in the upper level... it up also a mistake because I think that illustrator can not cope to create work plans that fast? When I run the same script on less complicated work, it works fine.

    var docRef = app.activeDocument;
    var aB = docRef.artboards;
    var gI = docRef.groupItems;
    
    
    for (a = 0; a< gI.length; a++){
        var currentGroup = gI[a];
        currentGroup.selected = true;
        var vB = currentGroup.visibleBounds;
        aB.add(vB);//an Illustrator error occurred: 1346458189 ('MRAP')
    }   
    

    any ideas how to isolate this high-level group and ignore the rest? Thank you people.

    Screen Shot 2015-01-05 at 11.06.17 AM.jpg

    Instead of document.groupItems, try document.layers [0] .groupItems

  • Create a symbol of placedItem/rasterItem does not work

    I need to create symbols in the Illustrator CC programmatically from files on disk. The following code gives an error when adding the symbol and I have no idea why. Any help will be appreciated. According to Adobe Illustrator CC Scripting reference, a symbol can be added to an art of the source of the type:

    • CompoundPathItems
    • GroupItems
    • MeshItems
    • NonNativeItems
    • PageItems
    • PathItems
    • RasterItems
    • SymbolItems
    • TextFrameItems

    Here is the code:

    #target illustrator

    activeDoc var = app.activeDocument;

    tempLayer var = activeDoc.layers.add (); Layer object reference

    var newSymbol; Object symbol reference

    var srcArt; PlacedItem object reference

    var fName; File name

    create list of documents from files in the selected folder

    var selectedFolder = Folder.selectDialog ("select the folder to import:', Folder('~')");

    imageList var = selectedFolder.getFiles ();

    for (var i = 0; i < 1; i ++) {}

    If (imageList [i] instanceof File) {}

    fName = imageList [i].name.toLowerCase ();

    If ((fName.indexOf ('.eps') ==-1) & & (fName.indexOf ('.png') ==-1)) {}

    continue; jump formats not supported

    }

    else {}

    srcArt = activeDoc.placedItems.add (); Place the image on the artboard

    srcArt.file = imageList [i];

    srcArt.embed ();

    activeDoc.symbols.add (srcArt);  -> Execution stops here with the message "error Illustrator: 556099904, ('% @i!')"

    newSymbol.name = fName.substring (0, fName.lastIndexOf("."));

    }

    }

    }

    srcArt is a "PlacedItem", he disappears after the pixelation, and a new 'RasterItem' object is created, you must get a reference to the newly created object and continue

    srcArt.embed();
    var embedded = activeDoc.rasterItems[0];
    activeDoc.symbols.add(embedded);
    

Maybe you are looking for

  • Qosmio F30 - green blocks and the white vertical dotted lines

    I turn it on and it starts to initialize. However, I get green blocks on the screen and the dotted white then wertical, then a black screen. Can someone please help with this?

  • Re-install Windows Firewall

    I need to change some settings of the firewall.  I'm unable to open the firewall settings, directly or through the Windows Security Center.  The error message says "Due to a problem not identified, Windows cannot display Windows Firewall settings." H

  • Windows Vista and especially performance issue with M/B AsRock P4i45GV R5.0

    4 years ago, I bought AsRock P4i45GV-M/B 5.0 R, with Intel Pentium 4 processor with 2.40 GHz, 1 MB of L2 Cache. I have installed Windows Vista, since Intel 82845 G onbaord graphics does not support Windows Vista, I havd to installed an add - in AGP c

  • Remove magnifying glass and my computer narator

    Why don't the system give a specific signal or a message after logon is complete, so I know when I start to use the computer?

  • 4 Remote Desktop Protocol k

    Hello What are the maximum resolution of the different versions of rdp? Right now I connect to windows server 2008. Feeling of rdp version 6.1. If I'm correct 16 screens with a maxiumum of 4096 x 2048 pixels are available? Is in any way obtain greate