Adobe 26001360 Scripting Guide - Page 350
GroupItems, Table 5.55, GroupItems - Properties, GroupItems - Methods
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 350 highlights
350 Visual Basic Reference Dim appRef As New Illustrator.Application Dim triangleGroup As Illustrator.GroupItem 'Create a new group in the active document. This will be the group the holds 'the new triangle art Set triangleGroup = appRef.ActiveDocument.GroupItems.Add 'Create a triangle and add text. All new art are created inside a group Dim trianglePath As Illustrator.PathItem Dim captionText As Illustrator.TextFrame Set trianglePath = triangleGroup.PathItems.Add trianglePath.SetEntirePath Array(Array(100, 100), Array(300, 100), _ Array(200, Math.Tan(1.0471975) * 100 + 100)) Set captionText = triangleGroup.TextFrames.Add captionText.Position = Array(100, 100) captionText.Contents = "A triangle" GroupItems Create a group item from a vector grahics file. Table 5.55 GroupItems - Properties Property R/O Value type What it is Application Count Parent R/O Application object The Illustrator Application object R/O Long The number of objects in the collection R/O Document Object The document that contains this GroupItems object Table 5.56 GroupItems - Methods Method Returns Add() CreateFromFile( ImageFile as String) Index(item As GroupItem) GroupItem object GroupItem object Long What it does Creates a new object Creates a GroupItem from a vector graphics file Returns the index position of the object within the collection 12 Aug 03