Page 1 of 1

Select a path within a closed path

Posted: Fri Nov 18, 2022 2:19 pm
by schmitzdp
Hello,

Is it possible to select a closed path inside another closed path ?

Below is an example of what I want to do. We receive cutting files of this type (left) and I would like to modify the paths as shown on the right so that the file is ready to be milled (right).

Thanks

Image

Re: Select a path within a closed path

Posted: Fri Nov 18, 2022 2:37 pm
by JimmyHartington
You could select the Cut path.
Set artbox to selection.
Select object completely inside region which is the artbox with color cut.
Change color of the object.

If you still get the outside box selected, then resize the artbox to -1mm on each side before using it as a region.

Re: Select a path within a closed path

Posted: Fri Nov 25, 2022 12:11 pm
by schmitzdp
Thank you for this explanation which works with this first example.

Finally, this is what I would really like to do with letters.
Do you have an idea? ;)

Image

Re: Select a path within a closed path

Posted: Fri Nov 25, 2022 1:04 pm
by JimmyHartington
Can you supply a sample file, then I can give it a go?

Re: Select a path within a closed path

Posted: Tue Nov 29, 2022 9:23 am
by schmitzdp
Of course, here is my example file ;)
Thanks

https://www.schmitz.be/images/lettering.pdf

Re: Select a path within a closed path

Posted: Tue Nov 29, 2022 2:00 pm
by JimmyHartington
I have solution for your example. But it is not perfect.
Action list: https://d.pr/f/2Bej8Z+

As you can see it works.
Image
But only because there is 2 lines.

Since I use the bounding box of all the Cut colored objects there can be situations where a object is completely enclosed in the bounding box.

If I move the object a bit in your example, then it does not work.
Image

Your text in this case was a compound path, so I needed to split the path first to make it work.

Re: Select a path within a closed path

Posted: Tue Dec 06, 2022 4:22 pm
by schmitzdp
I understand. Indeed, when testing on a sample of cutting files, it does not work in all cases.

I am continuing my research. Thank you.

Re: Select a path within a closed path

Posted: Sun Dec 11, 2022 5:21 pm
by david.ayha
you can use this action.

ypu can edit to add your own values

Re: Select a path within a closed path

Posted: Thu Dec 15, 2022 4:05 pm
by schmitzdp
david.ayha wrote: Sun Dec 11, 2022 5:21 pm you can use this action.

ypu can edit to add your own values
Thank you for your suggestion.

The script I'm trying to make must work with different sizes of shapes.

Re: Select a path within a closed path

Posted: Thu Dec 15, 2022 7:58 pm
by JimmyHartington
Does it have to be completely automatic?

Our could a user select items and run the action list on user selection?
Because if that is the case then my action list should work, where the user needs to select items where the bounding box will make it work.

It could be done like in this video: https://d.pr/v/1jOWgC

Re: Select a path within a closed path

Posted: Fri Dec 16, 2022 7:36 am
by david.ayha
schmitzdp wrote: Thu Dec 15, 2022 4:05 pm
david.ayha wrote: Sun Dec 11, 2022 5:21 pm you can use this action.

ypu can edit to add your own values
Thank you for your suggestion.

The script I'm trying to make must work with different sizes of shapes.
I recommend you upload more PDF files, for try to create a standard action :D
cheers