![]() |
#1
|
|||
|
|||
![]()
Is the nudge enable from VBA anyway? The Macro recorder didn't help, and I could not find in help also, just rulers with V/Hunit, not the propertis, like nudge and it's multiplation and devide factor. But I need these...
|
#3
|
|||
|
|||
![]()
Thanks. In this case I must belive in next versions...
|
#4
|
|||
|
|||
![]()
Version 11, this and some similar line cause an error, frozen CDraw with errormessage Condition #5002-UNITS-1670:
Application.Rulers.HUnit = cdrPica If I set the ruler "by hand", the query reply 0 (= cdrTenthMicron by vba help) instead of 12. Repared in higher version? And, if we are here, what size and wich kind the cdrAgate and cdrTenthMicron? What for, if not available from user interface? And what is Q and H (unit)? -- I didn't find anything in help or elsewhere. |
#5
|
|||
|
|||
![]()
There is any other posibilities than CorelScriptTools.LengthConvert to convert a mesured value to another, for example 148.589135498735 mm to cicero? Or if not, what means 1 to 7 in place FromUnit and ToUnit parameters? I think 1 = inch, 2 = centimeters, 3 = points, but what the others exactly? And how to handle the other 9 (?) units?
|
#6
|
||||
|
||||
![]() Quote:
Quote:
Agate (or agate line) is a traditional printing unit which equals to 1/14th of an inch. Its name comes from the traditional type size called agate, which sets approximately 14 lines to the inch. This unit is still sometimes used in newspaper advertising, where an agate line is one column wide and 1/14" high. As for Q and H units, if I remember correctly these are used in metric font sizes (specifically in Japan). Frankly I don't know the difference but Q and H equal to 1/4 mm, so 12H font is 3 mm high (~8.5pt). If you want to read a bit about various measurement systems used in typography, you can do so here: http://www.oberonplace.com/dtp/fonts/point.htm Quote:
For example: Code:
Application.ConvertUnits(12, cdrMillimeter, cdrPoint) It looks like you are still with Draw 11, so using CorelScript is your easiest solution. The unit values for this method are as follows:
I hope this helps |
#7
|
|||
|
|||
![]()
Yes, helps a lot! Thanks for the quick and detailed answer. Maybe on next week I'll post a gms, a little game about basic geometry. Ah ok, not so scientific, it's just sizing evenly the selected shapes...
Quote:
But one more question. These makros (from 11) will be usable in 12 or higher versions? |
#8
|
||||
|
||||
![]() Quote:
Quote:
|
#9
|
|||
|
|||
![]()
I'm not a CorelDRAW expert, maybe, my wishes are reality now, just I didn't find the way. I wait just tinie things, but maybe, to much to here, and the 13 whislist is better place to write them. So I try to collect and write them with correct english, or make some codes to clear up what I mean.
|
#10
|
|||
|
|||
![]()
First I asked that unitconversion on another forum where said it's work fine, the only error is that works only with the 17 unit of CDR and doesn't convert Celsius to Fahrenheit, but... now its over :-) Here is a little gms what does. It converts 8 temperature units, like kelvin, Celsius, Fahrenheit and others. So, lets make multinational weather reports with cdr!
And, one of my wishes: would be nice in next cdr, if anyway vba were support controlarray... |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where to begin with CorelDRAW and VBA | shelbym | CorelDRAW/Corel DESIGNER VBA | 2 | 03-04-2007 09:15 |
delete vba project from cdr file | hotairballoon | CorelDRAW/Corel DESIGNER VBA | 1 | 18-05-2005 09:08 |
CD 10, VBA not returning true outline width | Webster | CorelDRAW/Corel DESIGNER VBA | 1 | 24-11-2004 17:09 |
VBA does not work with my CD 10 ! | jobar | CorelDRAW/Corel DESIGNER VBA | 1 | 24-08-2003 12:38 |
Detect if VBA is installed (an answer and a question) | reanan | CorelDRAW/Corel DESIGNER VBA | 3 | 04-12-2002 14:35 |