What is Weed Box?
Weed Box is a macro for creating "weed boxes" and, optionally, "weed lines" for work such as vinyl cutting.
It can help get from something like this:
to something like this:
See Weed Box in Use:
Basic Workflow.
Details: Weed Box & Lines Page.
Weed Box:
Weed Lines:
Define Weed LInes (Guidelines page)
Define Weed Lines (2-node Lines page)
Items in this section allow weed lines to be defined using "2-node lines". In this context, "2-node line" means, "a Curve shape consisting of a single line segment". When weed lines are created, these obey the same rules (for being trimmed, gapped, etc.) as the lines that are defined by guidelines - except that they don't "go on forever" the way that guidelines do, so they allow a different level of control.
Create creates the weed box and weed lines.
Details: Options Page.
Layer
Color
Line Width
Selection
Using the Comboboxes.
The boxes for numeric entry are comboboxes. The drop-down list for a combobox can contain values stored for convenient access. If a combobox is not locked, then when a value in that combobox is used by the macro, that value is added to the top of the list. If an existing value is used from the list, then that value is moved to the top of the list. Values can also be manually added to the list.Ctrl+clicking on a combobox sets that combobox to its default value.Right-clicking on a combobox brings up a menu of options for managing it.
These options may include:
Units of Distance.
For a combobox that represent a distance, values are applied by the macro in whatever units (inches, millimeters, etc.) are shown beside the combobox. Those units can be specified by the user through the right-click context menu.
If “Follow Horizontal Ruler Units” is chosen, then the units for the combobox are the same units that are in use in the document for the horizontal ruler. If those units are changed in the document, then the macro automatically changes the units in the combobox to match.
Although this documentation makes references to “the list” for the combobox, there is not necessarily only one list. The combobox maintains a separate list for any unit that is used in it. When units for the combobox are changed, then the list associated with those units is loaded. The number of decimal places, and also whether a list is locked or not, are things that are handled independently for each list.
A Video Describing and Demonstrating the Special Features of My ComboBoxes:
Weed Box Subs in the Macro Manager.
Compatibility.
Weed Box was put together in a CorelDRAW X7 environment, and should work in versions X7-2020.
OK, where's the macro?
JQ_Weed_Box_Current.zip (most recently updated 2021-07-15).
That includes the .GMS file and a simple icon that can be used on a CorelDRAW Toolbar.
Please note that, starting with the version released on 2020-05-04, 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_Weed_Box_Registry_Entries sub, which will set the macro back to its default values.
Another very handy macro. Thank you.
Hi, Would this one updated in 2021 still work in the 2023 version of CorelDraw?
I just checked to be sure, and yes, this still works in the most recent version of CorelDRAW.
Thank you Eskimo! I'll give it a try.