Article View: adobe.scripting.indesign
Article #18730Moving Line X & Y values - VB
From: Fiona Sheridan
Date: Thu, 27 Feb 2003 11:41
Date: Thu, 27 Feb 2003 11:41
23 lines
1616 bytes
1616 bytes
Hello. I have some data which I have to draw a line through. The line needs to be the same length as the data, which I calculate based on the width of each character. This line is then rotated. I currently use this script : box(1) = strY1 box(2) = strX1 box(3) = strY2 box(4) = strX2 Set myLine = activedoc.Lines.Add myLine.Geometricbounds = box myLine.Strokeweight = 1 myLine.rotationangle = 90 Each line should start at the same point on the left hand side (X and Y) and the X value to the right is also going to be the same for each line but the Y value will differ depnding on the length of the text. But when I rotate it each line starts in different places. Is there a way I could programme the line using the central point X and Y values and the length? Would this stop the problems with the movement? If not is there another way? Hope this makes sense!? Fee
Technical Details
Message-ID:
<1de80d62.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,74c0da3e0dec2267,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-02-27 04:08:08 PST From: "Fiona Sheridan" <fiona@pierhouse.co.uk> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Moving Line X & Y values - VB Message-ID: <1de80d62.-1@WebX.la2eafNXanI> Date: Thu, 27 Feb 2003 03:41:21 -0800 Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit