Place a Specific Symbol into a Document
Hello! Does anyone know if you can place a specific Symbol into a document using Javascript? I attempted it with an Action but it does not record the name/selection of the symbol. The Symbol is named 4-40 in the Symbols Panel.
I grabbed the XML data from the symbol at it looks promising but was not sure how to script that.
<Group blendMode="normal" d:layerType="page" d:pageHeight="1080" d:pageWidth="1080" d:type="layer" d:userLabel="Artboard 1">
<Group d:type="layer" d:userLabel="Layer 1">
<sym4_40 x="540.098" y="540.341" ai:seqID="5" flm:instanceType="graphic"/>
Any suggesting would be welcome!
<?xml version="1.0" encoding="utf-8" ?>
<Graphic version="2.0" viewHeight="1080" viewWidth="1080" ai:appVersion="16.0.0.682" ATE:version="1.0.0" flm:version="1.0.0" d:using="" xmlns="http://ns.adobe.com/fxg/2008" xmlns:ATE="http://ns.adobe.com/ate/2009" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:flm="http://ns.adobe.com/flame/2008">
<Library>
<Definition name="sym4_40">
<Group d:type="layer" d:userLabel="temp">
<Group d:userLabel="4-40">
<Line xFrom="-9" xTo="9" ai:seqID="1">
<stroke>
<SolidColorStroke weight="2.25" caps="none" joints="miter" miterLimit="4"/>
</stroke>
</Line>
<Line yFrom="9" yTo="-9" ai:seqID="2">
<stroke>
<SolidColorStroke weight="2.25" caps="none" joints="miter" miterLimit="4"/>
</stroke>
</Line>
<Line xFrom="1.125" yFrom="1.125" xTo="-1.125" yTo="-1.125" ai:seqID="3">
<stroke>
<SolidColorStroke caps="square" joints="miter" miterLimit="10" color="#FFFFFF"/>
</stroke>
</Line>
<Line xFrom="-1.125" yFrom="1.125" xTo="1.125" yTo="-1.125" ai:seqID="4">
<stroke>
<SolidColorStroke caps="square" joints="miter" miterLimit="10" color="#FFFFFF"/>
</stroke>
</Line>
</Group>
</Group>
</Definition>
</Library>
<Group blendMode="normal" d:layerType="page" d:pageHeight="1080" d:pageWidth="1080" d:type="layer" d:userLabel="Artboard 1">
<Group d:type="layer" d:userLabel="Layer 1">
<sym4_40 x="540.098" y="540.341" ai:seqID="5" flm:instanceType="graphic"/>
</Group>
</Group>
<Private/>
</Graphic>
Thank you in advance!!