Im looking for a macro function that will let me grab one or multiple lines, and have them extend to meet where they would intersect on another object or line. Similar to how the extend / trim function works in Autocad. In this image, the lines would need to extend inward to meet the arc.
You can find intersection points using the segment object and extends your lines to this points, to find this points first you need find the angular coefficient of then lines, next you extends your lines to border of bouncing box of your arc, getting intersect point,then reduce your line to this points
Thank you, but that is a lot more complicated than I am trying to do here. Looking to grab a handful of lines, grab a target object, and have those lines extend in a straight line to the target object and stop at the point where they intersect. The target object is just a guide and gets deleted, not interested in plotting points on it (especially if it is not an outline, and is still a shape)
It's not complicated, when I talk about points I'm referring to Cartesian coordinates, it's just a virtual location in your document
I understand Cartesian coordinates... before windows and mouse support, thats how we had to plot things inside of CAD. How does this work when the angles are all different like in my image above? Im not creating a new document and not looking to re-draw a file, just converting these files specifically from imperial to metric gradations. And different groups and distances each time. In my workflow calculating out the angles needed here would take more time than doing each one individually using Dynamic Guides as Eskimo suggested above. Not the only time I could have used this command in Corel, just the specific application needed at the moment. There is the opposite command, oddly called Virtual Segment Delete instead of trim.
Bryan@TeamADW said:just converting these files specifically from imperial to metric gradations
Would you care to expand on exactly what you are trying to accomplish? What you are starting with, and the result you need to obtain from it? If we understood the nature of the problem, then we might be able to suggest a different way to approach it.
Would it be sufficient, for example, if you had a tool that could change the length of each of those two-node lines?
It is an odd task. I design and digitally print custom gauge faces for vehicles. For all of those vehicles, I have a set of line art and numbers that match the factory layout. When I convert one of my patterns to metric, I have to import the gradation marks, and then I apply the specific colors, weights, and layout to the gradation marks. In this particular pattern, certain lines had to be extended slightly to match my imperial pattern. So in the example photo above, I drew a circle that represented the boundary of where the lines had to extend inward for a particular portion of the gradation (this particular artwork has 5 groups for this). All of this is typically happening inside of a symbol, which can also restrict tool use in corel since it dislikes complicated nesting files. I also have to keep a layer order and setup for spot color printing, since these are done on a CMYKWG printer.
I understand what you are wishing for. I'm familiar with that sort of "extend" capability from my own CAD experience. I just don't have a ready-made equivalent of that in CorelDRAW.
However, I do have a macro that includes some tools for manipulating two-node lines:
#25 - Macro - "Match Vectors".
Here's a video where I start with some dial ticks, and then:
The "reverse" was required there because the Vector Tuner tools in Match Vectors always retain the position of the Start Node of a two-node line when modifying that line. I reversed the lines as necessary, depending on the direction in which I wanted the change in length to happen.