There is Shape.CreateParallelCurves(int count, double distance) method, and ShapeRange.CreateParallelCurves methods.
Those are great methods but there are some inconveniences.
1. You can't create parallel curves for virtual shape located on virtual layer
2. Because this methods works on shapes they trigger all things associated with shapes - logging actions etc. So it's not so fast.
3. You can't create virtual parallel curve for calculation purposes only, they added to document and you must delete them after use, and turn on optimizations to prevent undo logging, drawing etc.
Maybe somebody can share working algorithm for calculating parallel bezier curves mathematically for corel subpaths and segments?
Hi,
At the time of this post, it supports 9 versions of Coreldraw (X4-though 2020). But not 2021 quite yet. It launches an EXE through VBA. I suspect that EXE was created using C+ or C++. Not sure.
Also this feature does curves. Sometimes macro gives a glitchy result, but undoing, then tweaking the nodes solves that.
Jeff
Thanks Jeff
Silly me - I deleted my 2020 version of CD to save disk space! So should I wait for an update of CADtool that will work in CD 2021?
Or do some of the functions work, particularly the offset macro?
Jeremy
You'd need to wait for the 2021 macro installer, for the entire macro to work in 2021.
I think it can be done in any Corel version, using VBA to automate on the next mechanism: create curve contour, break it apart, determine the first and the last node of the initial curve, find the less distanced nodes of the contour curve for both cases and then, break apart on them. Some fine tuning at the end to make the code find the nodes on the same curve side...
Do you mean the 2021 installer for the Macro App or the 2021 installer for CDR? I have already installed CDR 2021 but I don't know where to look for the 2021 installer for CAD tools 5 or how to get notified when it is available. And I'm not just after the offset function but all the other tools as well ...