Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

PlacedItem() How to add art object onto an artboard?

$
0
0

As I nubie I continue to study-read-study but I am still having issues grasping the basic, proper syntax when creating a statement.  Using CS6 and VBS I have been able to open an artboard.  From there I want to add a file which has artwork on it.  I want it to be a PageItem (correct name?), on that artboard.

So my question is do I have to first explicitly first call out the application, then add a blank document, then add a blank layer, and then add blank PageItem to use PlacedItem()? Or, by somehow“calling out” the PlacedItem like ‘Appref.MyDoc.MyLayer.PageItem.Placeditem = ("S:\SOCAL\testdoc.dxf")’, I do not have to create a blank Object for each level of the hierarchy?  I know the above statement is incorrect, just trying to show what I am trying to do.  Hope I am making sense here. 

 

I learn better by seeing actual examples so here is what I have… the most basic script:

 

Set AppRef = CreateObject("Illustrator.Application")
AppRef.Open("S:\SOCAL\Myartboard.ai")

‘ so my artboard is open, how do I place my artwork onto that artboard using PlacedItem()?  The file is "S:\SOCAL\testdoc.dxf"
‘and (as some bonus help needed), what Property would I use to match the artwork to the extents of the artboard?


Viewing all articles
Browse latest Browse all 3671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>