|
-
Jun 17th, 2008, 09:59 AM
#1
Thread Starter
New Member
CorelDraw Closed Curve Area
Hi All,
Does anyone know of a way to get vb to calculate the area of a closed curve in CorelDraw? I am using CorelDraw 12.
I know there are add-in CAD tools and that CorelDesigner has an area calculator button, but they require opening each individual file, selecting the curve and pressing a button.
This is my only hurdle left to automating data entry for approx 4000 drawings! But I can't seem to find a reasonable solution.
Graham H.
Last edited by atm0spheric; Jun 17th, 2008 at 10:08 AM.
-
Jun 17th, 2008, 02:09 PM
#2
Thread Starter
New Member
Re: CorelDraw Closed Curve Area
If no one knows of an easy way to calculate the closed curve area...I have a compromise solution, I think.
We can get VB to go through each CorelDraw file and run the macro containing the CAD tool that presents the needed area data in a form dialog box.
But is there anyway to extract data from a form dialog box without knowing anything about the box? Just that it is open and activated..
Graham H.
Last edited by atm0spheric; Jun 17th, 2008 at 03:05 PM.
-
Jun 17th, 2008, 07:53 PM
#3
Thread Starter
New Member
Re: CorelDraw Closed Curve Area
Got it figured. For anyone else with the problem..
To calculate the area of a closed curve, you must upgrade CorelDraw to X3. Then you can use:
dblSurface = ActiveShape.Curve.Area
If you don't have $700 bucks for X4 then there are Corel add-in tools that will get you the result but automation is impossible with these tools..
Graham H.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|