Adobe 26001360 Scripting Guide - Page 312
Document, Table 5.23, Document - Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 312 highlights
312 Visual Basic Reference visibilityVar.Kind = aiVisibility itemRef.VisibilityVariable = visibilityVar ' Create a text variable Dim textRef As Illustrator.TextFrame Set textRef = docRef.TextFrames.Add textRef.Contents = "Text Variable, dataset 1" textRef.Top = 400 textRef.Left = 200 Dim textVar As Illustrator.Variable Set textVar = docRef.Variables.Add textVar.Kind = aiTextual textRef.ContentVariable = textVar MsgBox "There are " & CStr(docRef.Variables.Count) & " variables" MsgBox "Creating new datasets." ' Create a dataset Dim ds1 As Illustrator.DataSet Set ds1 = docRef.DataSets.Add() ' Change data and create a 2nd dataset itemRef.Hidden = True textRef.Contents = "Text Variable, dataset 2" Dim ds2 As Illustrator.DataSet Set ds2 = docRef.DataSets.Add() ' Display datasets MsgBox "Switching to dataset 1" ds1.Display MsgBox "Switching to dataset 2" ds2.Display Document An Illustrator document. Documents are contained in the Application object. Table 5.23 Document - Properties Property R/O Value type What it is ActiveDataSet ActiveLayer ActiveView Application DataSet object The active DataSet object in the document Layer object The active Layer in the document R/O View object The document's current View R/O Application object The Illustrator Application object 12 Aug 03