Article View: adobe.scripting.indesign
Article #17664Re: Get width and height of selected Rectangle [VB}
From: Olav Kvern
Date: Thu, 22 May 2003 01:27
Date: Thu, 22 May 2003 01:27
29 lines
1335 bytes
1335 bytes
Dennis-- You can't actually use the form: myY1 = myFrame.GeometricBounds(0) ...yet (what that gives you is the full GeometricBounds array). Instead, do this: myBounds = myFrame.GeometricBounds myY1 = myBounds(0) myX1 = myBounds(1) myY2 = myBounds(2) myX2 = myBounds(3) Also, if you want to consider the stroke weight in your calculation, use VisibleBounds rather than GeometricBounds. (I'm not sure what you're doing with the myStrokeWeight variable, so I thought I'd mention it.) Thanks, Ole
Technical Details
Message-ID:
<1de93496.4@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de93496.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,9b520f00cffeb790 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-21 18:38:29 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Get width and height of selected Rectangle [VB} Message-ID: <1de93496.4@WebX.la2eafNXanI> Date: Wed, 21 May 2003 18:27:19 -0700 References: <1de93496.-1@WebX.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit