Quantcast
Channel: Adobe Community : Discussion List - Deutsche Foren
Viewing all articles
Browse latest Browse all 13396

Illustrator Skriptfrage (setEntirePath)

$
0
0

Moin,

 

ich möchte mit einem Skript Linien in Adobe Illustrator erzeugen. Die Koordinaten dieser Linien sollen aus einer Excel Tabelle kommen. Meine Syntax lautet wie folgt:

Sub useSetEntirePath()
    Dim iapp As New Illustrator.Application
    Dim idoc As Illustrator.Document
    Dim ipath As Illustrator.PathItem

    Set idoc = iapp.ActiveDocument
    Set ipath = idoc.PathItems.Add
    'ipath.
SetEntirePath Array([{0,0}], [{100,100}])

        ipath.SetEntirePath Array([{Cells(i, 3).Value,-50}], [{Cells(i, 3).Value,50}])
    Set idoc = Nothing
    Set ipath = Nothing
End Sub

 

Mit der auskommentierten Zeile (also festen Werten) funktioniert alles, aber wenn ich auf Zellen referenziere, bekomme ich einen Laufzeitfehler. Auch, wenn ich die Referenz zuerst in eine Variable schreibe und diese dann angebe.
Weiß jemand bitte, wie ich da vorgehen könnte?

 

Danke und Gruß

boxleitnerb


Viewing all articles
Browse latest Browse all 13396

Trending Articles



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