🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17742

Get width and height of selected Rectangle [VB}

#17742
From: Dennis Hillen
Date: Tue, 20 May 2003 23:32
6 lines
1434 bytes
Hi all,
I want to write a script that gets the dimensions of a selected Rectangle or TextFrame and then divide that Rectangle or TextFrame into so many down and so many across. Basically, I want to use the Step And Repeat function, but worked out from a drawn shape, with the user saying how many across and how many down and the amount of gap between them. (Actually, I think it would be a nice function to have as part of the program).
However, I am having trouble finding out how to get the original dimensions, and of course need to know the top left point of the frame to start placing the new frames.
I assume this has to come from the GeometricBounds, but how do you do it?
Appreciate all help.
Dennis
Technical Details
Message-ID: <1de93496.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!opentransit.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,9b520f00cffeb790,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-20 16:37:49 PST
From: "Dennis Hillen" <hillend@tcp.newsltd.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!opentransit.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Get width and height of selected Rectangle [VB}
Message-ID: <1de93496.-1@WebX.la2eafNXanI>
Date: Tue, 20 May 2003 16:32:10 -0700
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit