🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18276

Re: [VB] Grouping objects

#18276
From: Olav Kvern
Date: Sat, 12 Apr 2003 20:42
27 lines
1329 bytes
Bastie--

Even though the Layer parameter on the Groups.Add method is shown as optional, it must be accounted for. So all you need to do is:



Set myGroup = myDocument.Groups.Add(, myDocument.Pages.Item(PageNumber).PageItems) 




Next, the display won't always update to show the new group selection handles--deslect, then select again to see them.

You can flip the group across its horizontal center point using the Resize method (just as you can using the Free Transform tool). Here's how to do it:



myGroup.Resize -100, , idCenterAnchor, False, True, False 




Hope this helps!

Thanks,

Ole
Technical Details
Message-ID: <1de8b63d.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8b63d.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2222034421e12b13
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-12 14:07:42 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-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Grouping objects
Message-ID: <1de8b63d.0@WebX.la2eafNXanI>
Date: Sat, 12 Apr 2003 13:42:51 -0700
References: <1de8b63d.-1@WebX.la2eafNXanI>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit