Article View: adobe.scripting.indesign
Article #9144Adding a graphicline
From: Gerd_Haeussler
Date: Mon, 11 Sep 2006 16:23
Date: Mon, 11 Sep 2006 16:23
19 lines
1057 bytes
1057 bytes
Hi,
how can i set the coordinates of a graphic line?
I tried it with the "geometricBounds" property, but the line always is located from top/left to bottom/right of the bounding box.
See the following example:
myDocument = app.documents.add();
myPage = myDocument.pages.item(0);
with(myPage){
var line = graphicLines.add();
line.geometricBounds = [0, 0, 100, 100];
var line2 = graphicLines.add();
line2.geometricBounds = [0, 100, 100, 0];
}
Thanks!
Gerd
Technical Details
Message-ID:
<3bc193a5.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,a39a5ea2627f9596 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Gerd_Haeussler@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news2.volia.net!news.germany.com!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Adding a graphicline Message-ID: <3bc193a5.-1@webcrossing.la2eafNXanI> Date: Mon, 11 Sep 2006 09:23:23 -0700 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit