OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 03-05-2005, 15:21
Posts: n/a
Default How to get the size of an object including the outline.

I'm trying to create a script to import a coreldraw file,
size the page to fit the imported objects,
and publish the objects to a pdf.

I need to get the size of the imported objects including the
outline in order to properly set the page size.

dim x1,y1,w1,h1
doc.selection.getboundingbox x1,y1,w1,h1

It seems I've had this problem in the past, but I can't remember
the solution.
Reply With Quote
Old 03-05-2005, 15:56
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4

The fifth optional parameter of Shape.GetBoundingBox can be set to True to get the bounding box of the object including the outline:

doc.Selection.GetBoundingBox x1, y1, w1, h1, True
Reply With Quote
Old 03-05-2005, 16:03
Posts: n/a
Default Re: How to get the size of an object including the outline

Thanks for the quick reply.
I know I've done that before.

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD 10, VBA not returning true outline width Webster CorelDRAW/Corel DESIGNER VBA 1 24-11-2004 17:09
Bounding lines around an object toy4mud CorelDRAW CS 2 04-11-2004 11:56
Sorting entries in the object manager dan CorelDRAW/Corel DESIGNER VBA 1 18-08-2004 22:16
Apply Outline - Scale with Image geopig CorelDRAW/Corel DESIGNER VBA 4 06-05-2004 07:23
Would you miss CorelScript object? Alex CorelDRAW/Corel DESIGNER VBA 32 04-02-2004 14:59

All times are GMT -5. The time now is 06:52.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com