OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 10-12-2003, 14:03
Posts: n/a
Default working in millimeters

Using CorelDraw10 VBA, I wish to work in mm, not inches. Is there a way to do this. I tried altering the ruler units to mm and this changes the desktop rulers, but the VBA units still work in inches.( ie a unit of 1 produces 25.4mm)

Is there a way?

Reply With Quote
Old 10-12-2003, 18:33
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: working in millimeters

Just set the Unit property of Document object to the corresponding value:

ActiveDocument.Unit = cdrMillimeter
ActiveLayer.CreateRectangle2 0, 0, 210, 297
I hope this helps.
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
Save in CD11 is not working properly... ddonnahoe CorelDRAW/Corel DESIGNER VBA 1 29-10-2004 14:11
Round Corners - not always working vallentin Macros/Add-ons 1 15-03-2004 18:50
VBA help link not working dcsquare CorelDRAW/Corel DESIGNER VBA 1 06-04-2003 07:55
SaveAs function not working in PP11 Aneurysm Corel Photo-Paint VBA 2 03-03-2003 17:31
Image effects not working. kaliatech Corel Photo-Paint VBA 1 17-01-2003 13:51

All times are GMT -5. The time now is 09:48.

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