(AI CS4 Mac) How to create a composite path?

Hi people,

I am trying to create a compound path in AI CS4 for Mac, but I failed. We think that this would be easy, so maybe I'm missing the obvious solution...

What is the best way to create a compound path using the SDK? I just need to make a path consisting of two overlapping rectangles so that I can create a clipping mask. Nothing complicated.

The SDK is not clear on the best way to create a compound path, but I thought that programmitically by selecting the two rectanlges and then using the 'adobe_makeCompound' action would work, but this isn't.

ERR = sAIActionManager-> PlayActionEvent ("adobe_makeCompound", kDialogNone, NULL);

When the above code is called while I am debugging, I get a dialog box that reads: the purpose of 'Make a compound path' is not currently available.

If I click on the 'Stop' button for debugging, the value of err is 1346458189 which is "PARM". So, maybe I need to define a parameter? The thing is that it seems to be without parameters required for the action event "adobe_makeCompound". When I created the action manually, the file .aia (see content below) has a parameterCount == 0. I've tried passing a block of parameters without adding all the parameters (instead of NULL), but still no joy.

/ version 2

/ name [5

5365742031

]

/IsOpen 1

/actionCount 1

{/ action-1}

/ name [12

436f6d706f756e6450617468

]

/KeyIndex 0

/colorIndex 0

/IsOpen 0

/eventCount 1

{/ Event-1}

/InternalName (adobe_makeCompound)

/localizedName [18

4d616b6520436f6d706f756e642050617468

]

/IsOpen 0

/isOn 1

/hasDialog 0

/ParameterCount 0

}

}

Any help or suggestions on how to create a composite path would be greatly appreciated!

Thanks in advance!

-Jim

In fact, here's a more useful Variant

box1 and box2 are the AIArtHandles for your existing paths

Composed of AIArtHandle = 0;

sArt-> NewArt (kCompoundPathArt, kPlaceAbove, rectangle1, & composed);

sArt-> sReorderArt (rectangle1, kPlaceInsideOnTop, composed);

sArt-> sReorderArt (box2, kPlaceInsideOnTop, composed);

This will create the compound just beside each time rectangle1 is, much simpler and more likely what you want

Tags: Illustrator

Similar Questions

  • Illustrator on Mac: how to create the symbol of the editor, P in a circle?

    Illustrator on Mac: how to create the symbol of the editor, P in a circle?

    Thank you.

    Create an insertion point in the document with the text tool, and then from the Type > glyphs menu, double click the glyph you want to insert.

  • How to create a vector path in real form?

    Hello friends,

    I am new to Illustrator and need your help or advice.

    I have to design a label for glass bottles that have a pre-specified label place. The bottle has something like a border in which I want to put the label.

    Can you please advice me how to create a path of access/label that will be compatible with the place / label of the bottle?

    I enclose pictures of bottles as well.

    product_1120.jpg

    product_1123.jpg

    Thank you in advance!

    Error - Put a piece of paper on the bottle and trace the shape.  Scan your tracing in and use it as a template to create a form of symmetrical label.  Print and cut out the shape and test it on the bottle. Repeat until you are satisfied with the result.

  • How to create the ellipse path gradient to PDF using object code

    Hello

    Someone tell me how to create PathGradient ellipse in pdf.i found the way to shadow Rectangle in pathgradient, but the ellipse can't shadow as pathgradient, if you know tell me please,

    Kind regards

    Sasi kumar S.

    Please refer to How to create LInearGradient in pdf format for why this isn't the right forum. Thank you.

  • How to create a composite control?

    I think that I did not well understand how to achieve.

    What I want to do is to make a 'user control' (aka "custom control" or "composite control", I don't know what terminology OR use), which is made MORE of a control.

    For example: I want to set a control in fact of an enum and a Boolean checkbox (take the system ones, it is fine).

    Appearance is very good.

    So, I want to save this composite as a single "unit", a perhaps .ctl file.

    His 'type' under the hood would be a cluster of enum + bool.

    Finally, whenever I need it, I might just drop it on the front panel, transmitting the data in cluster of type on the wiring diagram.

    My questions are:

    (1) how to proceed with LV 2013

    (2) how can I "instantiate" it. I mean: it is possible to define a generic 'enum + bool' (or text + bool rings) as in any programming language? When I define an enum in labview, I am obliged to define and instantiate the one element empty of otherways enum/ringText.

    How Labview can separate the notion of 'data type' of the concept of "instantiating a data type. For me, LV collapses 2 concepts.

    Thank you.

    Cluster

    File, new control... custom.  Drop a cluster, add the enum and boolean, set the enum items and save it.

    "Instantiate" similar to the way in which you add another control to the front panel, except that you get to where you have saved:

  • How to create a composite realistic of the text on a page?

    Hey all,.

    I know I've seen this question answered * somewhere *, at * some * point, but I can't find it now! Here's what I'm trying to do. I have a picture of a picture of a page. The idea is to add some text in composite and PS the two so that he (to halfway) realistic resembles the photo original was text already on the page. I have sort of an idea of how it would happen, but I'm stuck on the details. Thoughts, ideas, advice?

    If you have not used THEN, you really should! I rely strongly on. This image was made in CS2 or CS3 when SOs were very limited, but the draw of Blues, the table, the place of Carpenter and several parts of the saw are dynamic objects.

  • How to create the Sierra startup disk?

    Hello world

    I downloaded Sierra on the App Store.

    Can I create a bootable USB Sierra drive?

    I want to install a new copy of Sierra, not upgrade.

    Thank you

    Abdelaal

    Hello

    The download size is about 4.8 gig and want 8 GB on a USB key or similar.

    I used the command line, but there are other ways.

    http://osxdaily.com/2016/06/15/make-MacOS-Sierra-beta-USB-boot-drive/

    and it may be better (which I used)...

    http://www.Macworld.com/article/3092900/Macs/how-to-create-a-bootable-MacOS-sier ra-Installer - drive.html

  • How to create a PDF/X1a on a Mac? (with or without iWork)

    Hi all
    I don't have an idea what is a "PDF/X1a.
    I know how to create or convert PDF files on a mac, with the Preview app and the iWork.

    But a "PDF/X1a? What is c?

    Anyone know how to create or convert a "PDFX/X1a?

    Thanks to you all.

    Here is an explanation:

    https://www.prepressure.com/PDF/basics/PDFX-1A

    Frankly, I didn't know there are different "flavors". I create .pdf for years without knowing or worry about this. I just use an excerpt:

    Or, if you are in a document Pages (iWork as long that is not really exist anymore - there are separate applications: Pages, Numbers, Keynote), use the export as PDF option.

    Have never heard of someone that they were not able to read the PDF, I sent as an attachment.

  • How to create a Playlist file empty on Mac?

    Hello everyone, I am working on a music player script, I was able to play a file via the default drive when we double-click on a file. The problem is that I have no control over the player, so to "stop" a file I could play a 'silent' mp3, one with 1 second of silence inside for example. I threw the idea since I had to distribute this file with the script silent.mp3. A better option is to play a 'playlist', playlist files are text only, I could create an empty playlist file on the fly...

    so, the question is, what is the extension of list of default playback on a mac? and how to create one on the Mac?

    in windows, the default player is Windows Media Player, the default playlist file extension is *.wpl.

    Here are the contents of an empty playlist

    <?wpl version="1.0"?>
    <smil>
        <head>
            <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.7601.18150"/>
            <meta name="ItemCount" content="0"/>
            <title>empyPlaylist</title>
        </head>
    </smil>
    


    Here's the script, so far Windows only, at least to stop the currently playing file.

    //  script.name = musicPlayer_Windows.jsx;
    //  script.needs = I need to create an Empty Playlist File for the Mac, that will play on the default music player when executed
    
    
    // carlos canto, 10/12/2014
    
    
    var w = new Window('dialog', 'Music Player');
    
    
    var btnFile = w.add('button', undefined, 'Select an *.mp3 file to play...');
    var lblSong = w.add('edittext', undefined, '');
    lblSong.characters = 30;
    
    
    var btnPlay = w.add('button', undefined, 'Play');
    var btnStop = w.add('button', undefined, 'Stop');
    var btnClose = w.add('button', undefined, 'Close');
    
    
    btnPlay.enabled = btnStop.enabled = false;
    
    
    var emptyPlaylist = getEmptyPlaylist ();
    
    
    btnFile.onClick = function () {
        var file = File.openDialog ("Select File to Play...", '*.mp3', false);
        lblSong.text = file.displayName;
        lblSong.file = file;
        btnPlay.enabled = btnStop.enabled = true;
    }
    btnPlay.onClick = function () {
        lblSong.file.execute();
        $.sleep (300);
        BridgeTalk.bringToFront('estoolkit');
    }
    btnStop.onClick = function () {
        emptyPlaylist.execute();
        $.sleep (300);
        BridgeTalk.bringToFront('estoolkit');
    }
    btnClose.onClick = function () {
        w.close();
    }
    w.show();
    
    
    
    
    // this function creates an Empty Playlist file (Windows) on the fly, this file will be used to "stop" a playing file
    // I need a similar function for Mac
    function getEmptyPlaylist () {
        var desk = Folder.desktop;
        var f = new File(desk+'/emptyPlaylist.wpl');
        if (!f.exists) {
            var s_emptyPlaylist = (new String("<?wpl version=\"1.0\"?>\n<smil>\n    <head>\n        <meta name=\"Generator\" content=\"Microsoft Windows Media Player -- 12.0.7601.18150\"/>\n        <meta name=\"ItemCount\" content=\"0\"/>\n        <title>empyPlaylist</title>\n    </head>\n</smil>\n"));
            f.encoding = 'utf-8';
            f.open('w');
            f.write(eval(s_emptyPlaylist));
    
    
            f.close();
        }
        return f;
    }
       
    
    
    

    Thanks in advance

    Carlos

    iTunes wouldn't let me export an empty selection.

    The following three lines is the mentioned track .m3u playlist above:

    #EXTM3U

    #EXTINF:179, Aquarella - Georges Arvanitas Trio

    / Users/dirk/music/iTunes/iTunes Music/Media/Georges Arvanitas Trio/Jazz loves Paris By Night - organ Piano & Hammond/02 Aquarella.m4a

    If I run this file from playlist, iTunes abandons the current track and lets the list.

    If I remove the lines 2 + 3, iTunes ignores the reading list.

    If I change line 3 to a bogus file reference, iTunes ignores the reading list.

    BTW, iTunes sees the "repeat" setting - so if the track is a second of silence, it will be repeated forever.

  • How can I create a composite layer and which you use e control alt shift or Shift control alt e and when I do the pop deletion tool?

    How can I create a composite layer with 11 elements? How what should I do?

    How can I get an answer to my problem? I would never buy the program if I'm having this famous problem with getting help?

  • How to create menus with CS4?

    Hello

    Just installed my new update for CS4 - since MX 2004 - and I am learning to create menus. Basic, drop, vertical, horizontal... I wonder if it is necessary to buy in these flash braidja extensions or if CS4 already has a how to create? As you can tell I'm new to this, and I looked at a few tutorials online with a lot of the good og info, but luck with menus.

    Thanks for the pointers!

    Testastretta wrote:

    Hello

    Just installed my new update for CS4 - since MX 2004 - and I am learning to create menus. Basic, drop, vertical, horizontal... I wonder if it is necessary to buy in these flash braidja extensions or if CS4 already has a how to create? As you can tell I'm new to this, and I looked at a few tutorials online with a lot of the good og info, but luck with menus.

    Thanks for the pointers!

    Of the basic css menus: horizontal / vertical:

    http://CSS.maxdesign.com.au/Listamatic/index.htm

    CSS Dropdown menus by Suckerfish:

    http://www.HtmlDog.com/articles/suckerfish/DropDowns/

    The Spry Menus:-already included with CS4

    http://help.Adobe.com/en_US/Dreamweaver/10.0_Using/WS8B985763-4DFA-4415-B242-B2C2D7DED657a .html

    http://www.Adobe.com/devnet/Dreamweaver/articles/first_cs4_website_pt5_03.html

    --

    Nadia

    Adobe® Expert community: Dreamweaver

    http://www.perrelink.com.au

    Unique templates CSS | Tutorials | SEO articles

    http://www.DreamweaverResources.com

    http://csstemplates.com.au/

    --------------------------------------------------

    http://Twitter.com/nadiap

  • Help! -How to create compositions nested with suites CEAP

    I want to be able to create a nested composition... I know that when you create, let's say, comp 1, then another comp 2, then drag comp2 in ordi1, in comp1, comp2 become a layer. COMP2 would be called a "precomposition".

    So, I want to be able to do that in my program, using ECAP calls... I tried just to add a composition as a layer to another composition (parent), as images are added as a layer to the current model.

    There was another post that talked about using the rest of the Collection, but I don't know how to really use it to implement a nested model.

    I tried to get a collection of the model, I want to be nested, selection of the current model (parent) setting to have a collection of the model nested and tried the DoCommand (2071) for you need to precompose collection, but obviously it does not work because it is not really wise to do, haha.

    Intuitively, I wanted to call the AddLayer of the current model, by passing in a mock-up of the child to add as a layer. Adobe told me that point can be made up to the layer source so the way to do this has to be more subtle than I thought.

    If I have to use collections, I do a collection out of the current model and add future publications to the collection? That does not make sense either. How a nested model is added as a layer to another comp?

    Can anyone help me? Email me if you have any suggestions: [email protected]

    Thank you!!

    Hi Sara,.

    I replied to your email, but just follow the Forum:

    Say that you have created two compositions using AEGP_CreateComp.  This gives you two AEGP_CompHs.  To nest a computer in another, you will first need to get the AEGP_ItemH for the nested model, so use the AEGP_GetItemFromComp.  You can now add the AEGP_ItemH of the model nested as a layer using AEGP_AddLayer.  That should do the trick.  And AEGP_ReorderLayer if necessary.

    See you soon,.

    Zac

  • How to create the recovery partition

    How to create a recovery for OSX on an existing SSD partition?

    What Mac OS X you are using?

    To boot from OS X Recovery, hold down the command (⌘) r immediately after start-up or that you restart your Mac. Release when you see the Apple logo.

    More information on the recovery of the operating system partition: On OS X Recovery - Apple Support

    If you want to create a bootable USB, here is a useful guide: create a bootable OS x - Apple support Installer

  • How to create a new profile on a MacBook?

    How to create a new user or COMP

    OS X Yosemite: Configure users on your Mac Try this.

  • How to create a '. '. The URL file"of a Web page I visit

    How to create a '. '. The URL file"of a Web page I visit

    Check these

    deskCut {web link}
    This extension adds desktop shortcut creation for the
    context menu for Windows, Linux and Mac.

    My CopyFixer {web link}
    Use Ctrl + C when nothing selected to copy the page title and the url in
    various (base model) format.

    Send the URL of the tab {web link}
    Send a list of URLS tab browser to email, webmail or the Clipboard

Maybe you are looking for

  • Feather of apple works well with the iPad air2

    I would use a pen to take notes and ratings on Adobe reader etc. will be (or is) the pen of Apple works well with iPad air2?

  • remove an old printer of the new iMac

    In the search for a new printer, reading the comments, I came across the suggestion to remove the etc. the old printer drivers before installing a new.   Some people have problems with their new printer, before doing this.  How this is done?   Is the

  • ValueFormatter custom WPF fails in 2015

    This code worked at MS 2013: public class MyGeneralValueFormatter: GeneralValueFormatter{ Back to Engineering.ToFormattedString (Convert.ToDouble (value), this.) Format, _units); } Protected Overrides UIElement VisualizeCore(value TData, ValuePresent

  • Generate an analog voltage with amplitude variations

    I want to generate a 0 - 5V analog voltage output that has a variable amplitude, as shown in the figure. The maximum voltage is 5V and low voltage a percentage of this, but I must not vary the amplitude during execution of VI.

  • WSUS vs SCCM

    I encountered this problem. I have many machines installed with WSUS or SCCM clients.But some machines is a not register for SCCM and WSUS servers. Please let know us what must I do to solve this problem.WSUS is used to push the patches to machines.