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 01-05-2010, 03:26
iceage3
Guest
 
Posts: n/a
Default Can i get more precise Position of Objects in CorelDRAW X4?

The default use of method PositionX or PositionY will return a number with four digits, how can i get a more precise number ? Six digits or more?
Reply With Quote
  #2  
Old 01-05-2010, 09:36
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default PositionX

If the PositionX has been set with more than 4 digits PositionX should return more. The following:
Code:
Sub MyPosition()
    ActiveShape.PositionX = 1.654321
    MsgBox ActiveShape.PositionX
End Sub
Returns: 1.65432283464567

-Shelby
Reply With Quote
  #3  
Old 01-05-2010, 10:54
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hmmm. It returns many more than four digits for me, set or not.

You could also use methods: getposition or getboundingbox to get your x position

-John
Reply With Quote
  #4  
Old 01-05-2010, 19:32
iceage3
Guest
 
Posts: n/a
Default

Thanks a lot, shelbym, runflacruiser
I found that i set my document unit to cdrMillimeter, if I set document unit to cdrInch, we'll get a extremely precise number
So, i can get a precise number from cdrInch uint mode and transfer it to millimeters
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
How to transform CorelDRAW objects directly? Brancci General 1 24-06-2009 13:30
Position inch to mm GoodLook CorelDRAW/Corel DESIGNER VBA 2 11-11-2008 00:47
Position Question bprice CorelDRAW/Corel DESIGNER VBA 1 11-10-2008 20:39
Text position CWCN CorelDRAW/Corel DESIGNER VBA 2 22-09-2008 22:40
Amateur questions on objects in CorelDRAW Granite Golem General 3 19-08-2004 07:51


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


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