I've learned how to make my own line ends / arrow heads. However CorelDraw puts them at the end of the list of built in line ends.
Is there a way to change the order of the line ends?
OR
Is there a way to delete all the built in line ends and only use the ones I like?
Thanks
John
MeridenJohn said:Is there a way to delete all the built in line ends and only use the ones I like?
You can delete an arrowhead through the Outline Pen dialog:
If you really want to get rid of ALL of the arrowheads, then you can do it with a VBA macro.
Sub delete_all_arrowheads() Do Until Application.ArrowHeads.Count = 0 Application.ArrowHeads.Remove 1 Loop End Sub
If you ever want to get back to the full set of standard arrowheads, you could do so by deleting the arrows.end file to which grogo refers. Doing so would lose any custom arrowheads you had in there.
Eskimo - did you test this code? It seems to cause a problem if run it and then tried to edit the end style.
grogo said:Eskimo - did you test this code? It seems to cause a problem if run it and then tried to edit the end style.
Yes, I did test it. Are you referring to seeing this when you click "Options" in the Outline Pen dialog? Or to something different?
After deleting all arrowheads, I followed up by creating a custom arrowhead, because the question I was trying to address was, "Is there a way to delete all the built in line ends and only use the ones I like?". Once an arrowhead was available, clicking "Options" no longer produced that error.
To delete "all but one" of the arrowheads, then this code could be used:
Sub delete_all_but_one_arrowhead() Do Until Application.ArrowHeads.Count = 1 Application.ArrowHeads.Remove 2 Loop End Sub
Right, it happens when I do that. The new code works fine. Here's another thing I ran into. I tried running this for deleting the line styles but something went wrong.
Sub delete_all_linestyles() Do Until Application.OutlineStyles.Count = 0 Application.OutlineStyles.Remove 1 LoopEnd Sub
I've never tried using a macro to delete line styles.
Those are defined in a file named linestyles.dot that is found in one of the CorelDRAW install folders, e.g., C:\Program Files\Corel\CorelDRAW Graphics Suite 2018\Draw.
That's plain text, so you can edit it manually if you wish.