What is Match Vectors?
Match Vectors is a macro that allows a range of selected shapes to be moved, rotated and scaled based on the relative position, orientation, and size of two two-node lines specified by the user.
These two-node lines are referred to, respectively, as the Source vector and the Target vector.
A Source or Target vector is specified by selecting a two-node line, then clicking the Tag Selection button in the appropriate frame of the form. When that is done, the macro “tags” that shape to identify it as the chosen type of vector.
When the Match Vectors button is clicked, the macro determines the change of position, rotation, and proportional scaling that, if applied to the Source vector, would cause it to match the Target vector. It then applies that movement, rotation, and scaling to a duplicate of the Source vector. The range of objects that are currently selected is “carried along with” the duplicate of the Source vector, which is deleted after completion of the move/rotate/scale operation.
The concept just described is fairly simple, but it can be used in very powerful ways - and that is what Match Vectors is all about.
A Few Quick Video Demos:
For more videos - with written explanation, and in the context of the larger story of this macro - see the "JQ Match Vectors story (PDF with links to demo videos)" linked further down in this blog post.
Screenshot:
Getting Started with Match Vectors.
Written documentation for using Match Vectors is included in the .ZIP file linked later in this post, but a direct link to that documentation is also provided here:
Written documentation for Match Vectors (PDF)
During some of the development of this, I shared with some friends a series of entries that "tell the story" of Match Vectors in writing, with video demonstrations. The videos do not all show the userform in its complete form. They start off very simple, and additional controls are added as the story - and the macro - develop. That series of entries has been turned into a PDF document, with links in it to the demo videos (17 of them) on YouTube:
JQ Match Vectors story (PDF with links to demo videos)
Going through that document and viewing the videos can be good way to understand how Match Vectors works, and to see a variety of ways in which it can be used. Be aware, however, that a few things have changed since that was created, and so are different in the current version of the macro. Store and Recall were removed from the Vector Tuner panel, in large part because the original listboxes were replaced with comboboxes that, among other features, can store and recall values.
A Video Describing and Demonstrating the Special Features of My ComboBoxes:
Compatibility.
Match Vectors was put together in a CorelDRAW X7 environment, and should work in versions X7-2020.
OK, where's the macro?
JQ_Match_Vectors_Current.zip (most recently updated 2021-07-17).
That includes the .GMS file, a PDF file describing operation and use of the macro, and a simple icon that can be used on a CorelDRAW Toolbar.
Please note that, starting with the version released on 2020-05-03, this macro uses a different scheme for storing combobox value lists and some preferences in the Registry. If you have been using an older version of this macro, those "old" value lists and preferences will not be there when you use the newer version. If you want to "clean out" those old entries that are not used by the newer version of the macro, the best way to do so is to run the Remove_Match_Vectors_Registry_Entries sub, which will set the macro back to its default values.
谢谢你的工具,对我开发自己的工具有欺负启发
My macros are written in CorelDRAW X7.
In general, they also work with newer versions.
It is always possible for Corel to change CorelDRAW in a new version in a way that "breaks" some macros! That is not something that I can predict.
Hello my friend==========Are these tools support for old and new versions that will be released in the future?======================================Thank you very much, good luck