Select a path within a closed path

Post Reply
schmitzdp
Member
Posts: 40
Joined: Thu Aug 06, 2020 1:36 pm

Select a path within a closed path

Post 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
User avatar
JimmyHartington
Advanced member
Posts: 278
Joined: Tue Mar 22, 2011 7:38 am

Re: Select a path within a closed path

Post 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.
schmitzdp
Member
Posts: 40
Joined: Thu Aug 06, 2020 1:36 pm

Re: Select a path within a closed path

Post 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
User avatar
JimmyHartington
Advanced member
Posts: 278
Joined: Tue Mar 22, 2011 7:38 am

Re: Select a path within a closed path

Post by JimmyHartington »

Can you supply a sample file, then I can give it a go?
schmitzdp
Member
Posts: 40
Joined: Thu Aug 06, 2020 1:36 pm

Re: Select a path within a closed path

Post by schmitzdp »

Of course, here is my example file ;)
Thanks

https://www.schmitz.be/images/lettering.pdf
User avatar
JimmyHartington
Advanced member
Posts: 278
Joined: Tue Mar 22, 2011 7:38 am

Re: Select a path within a closed path

Post 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.
schmitzdp
Member
Posts: 40
Joined: Thu Aug 06, 2020 1:36 pm

Re: Select a path within a closed path

Post 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.
david.ayha
Newbie
Posts: 5
Joined: Sat May 21, 2022 6:30 pm
Contact:

Re: Select a path within a closed path

Post by david.ayha »

you can use this action.

ypu can edit to add your own values
Attachments
Captura.JPG
Captura.JPG (32.72 KiB) Viewed 1724 times
Action.zip
(1.86 KiB) Downloaded 72 times
Visit my Youtube Channel https://tinyurl.com/prepress-world
schmitzdp
Member
Posts: 40
Joined: Thu Aug 06, 2020 1:36 pm

Re: Select a path within a closed path

Post 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.
User avatar
JimmyHartington
Advanced member
Posts: 278
Joined: Tue Mar 22, 2011 7:38 am

Re: Select a path within a closed path

Post 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
david.ayha
Newbie
Posts: 5
Joined: Sat May 21, 2022 6:30 pm
Contact:

Re: Select a path within a closed path

Post 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
Visit my Youtube Channel https://tinyurl.com/prepress-world
Post Reply