![]() |
#1
|
|||
|
|||
![]()
Hi.
Looking for a macro that will keep an eye on the size of the area despite the changes to the size of any side. Looking just like this: I'm using CorelDraw 12. ![]() Thanks for any answers. GrzJanik Last edited by grzjanik; 14-04-2011 at 09:45. |
#2
|
||||
|
||||
![]()
Hi.
I can't think of a way to do it live but calculations basing on a new entered width or height and the shapes current area should be easily doable using a proportion. ~John |
#3
|
|||
|
|||
![]()
Hi.
Thanks for replay. But I would like for this to take place dynamically when you change the size of one of the sides. When I change the height to width let the match automatically. GrzJanik. |
#4
|
||||
|
||||
![]()
I wrote this one for X3, it may or may not work for 12. I did test it with X5, and it works fine, a few items could be improved but it is a starting point.
The code and a GMS is posted. Fixed Area Macro -Shelby |
#5
|
||||
|
||||
![]()
Hi.
Pretty cool Shelby. I couldn't get it working on my rectangle until I converted to curves. Works ok but seems to get stuck sometimes when using handles. It would be nice to see this work with all shapes such as irregular and circles. ~John |
#6
|
|||
|
|||
![]()
Hi!
Unfortunately, this macro does not work in Corel 12. Does not report any errors, but nothing happens. But thank you all for your reply. I see that the Corel 12 is not possible to convert. ![]() Regards. ~GrzJanik |
#8
|
|||
|
|||
![]()
Thank you Shelby for trying to help, but the macro still does not work. It shows the following errors:
![]() ![]() Excuse me, but I do not know what to do and how to fix. Thanks for replay. ~GrzJanik |
#9
|
|||
|
|||
![]()
First I made only a fast look on the code line, where the error occurs. And I thought, that it looks similar to an error, which I shortly run across. The solution for me was ==> changing the code line to:
Code:
set area = s.ObjectData("Area") Code:
area = s.ObjectData("Area").Value Code:
Debug.Print TypeName(area) Debug.Print TypeName(s.ObjectData("Area")) Debug.Print TypeName(s.ObjectData("Area").Value) area = s.ObjectData("Area") guido Last edited by helpy; 27-05-2011 at 07:20. |
#10
|
|||
|
|||
![]()
Thanks for trying to help. Unfortunately, it is still the same error and same place. Can anyone suggest anything else?
Regards. GrzJanik |
![]() |
Tags |
area, lock, shape |
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 |
Measuring area of basic shape in meters squared | fungel | General | 6 | 03-03-2011 09:56 |
Cannot rotate a virtual shape with the same precision as a shape | runflacruiser | Macros/Add-ons | 1 | 19-01-2011 14:34 |
How to get and set the status of CAPs Lock & Nums Lock | aakkaarr | CorelDRAW/Corel DESIGNER VBA | 2 | 19-05-2010 16:59 |
Changing selection when two-shape group loses one shape | Joe | CorelDRAW/Corel DESIGNER VBA | 1 | 19-02-2009 02:50 |
Lock an Object who ... | Hernán | General | 2 | 08-04-2005 22:41 |