🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16343

Re: [VB] Working with GeometricBounds

#16343
From: Guy Verville
Date: Thu, 25 Sep 2003 18:22
26 lines
1789 bytes
Well, thanks! But it's still not totaly what I want. I think I have difficulty to grasp the GeometricBounds elements... what they are really...

Bounds(0) and Bounds (2) go toghether
and Bounds (1) and (3) along. Right?

My Code is:

Set myPage = myDoc.Pages.Item(k)
	MyPageBounds=MyPage.Bounds
	'Place the asset in the Document
	CDN.Place myPage
	'Select the asset
	Set DocCDN = myID.Selection.Item(1)

	'Get the Margins of the pages
	MarginB=myPage.MarginPreferences.MarginBottom
	MarginL=myPage.MarginPreferences.MarginLeft
	MarginR=myPage.MarginPreferences.MarginRight
      'Get the bounds of my TextFrame
	myBounds = DocCDN.GeometricBounds

	myBounds(1) = myPageBounds(1) + MarginL
	myBounds(3) = myPageBounds(3)- MarginR
	DocCDN.GeometricBounds = myBounds

With this, I get the correct width, but it's place at point 0,0, top left of the page. So, I have to know the place it now aligned with the left margin, and aligned with the bottom margin.
Technical Details
Message-ID: <2ccd88b5.9@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd88b5.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,34141f6e382b2aea
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-25 11:38:30 PST
From: "Guy Verville" <taddeus@spamcop.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!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: Re: [VB] Working with GeometricBounds
Message-ID: <2ccd88b5.9@webx.la2eafNXanI>
Date: Thu, 25 Sep 2003 11:22:19 -0700
References: <2ccd88b5.-1@webx.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit