OberonPlace.com Forums  

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

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

Hello,
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.
Thanks,
Mike
Reply With Quote
  #2  
Old 03-05-2005, 16:56
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default

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

Code:
doc.Selection.GetBoundingBox x1, y1, w1, h1, True
Reply With Quote
  #3  
Old 03-05-2005, 17:03
CORNMEN
Guest
 
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.

Mike
Reply With Quote
Reply


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 18:09
Bounding lines around an object toy4mud CorelDRAW CS 2 04-11-2004 12:56
Sorting entries in the object manager dan CorelDRAW/Corel DESIGNER VBA 1 18-08-2004 23:16
Apply Outline - Scale with Image geopig CorelDRAW/Corel DESIGNER VBA 4 06-05-2004 08:23
Would you miss CorelScript object? Alex CorelDRAW/Corel DESIGNER VBA 32 04-02-2004 15:59


All times are GMT -5. The time now is 05:28.


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