Trim around text

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
scarr
Posts: 4
Joined: Tue May 09, 2023 6:39 am
Answers: 0

Trim around text

Unread post by scarr »

Hi,

I have a sketch that has lots of random lines on what will be a A4 sheet, I want to place text over these lines and then trim away the ones that intersect the text, how do I do this?

Steve
User avatar
Glenn Schroeder
Posts: 1523
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1761
x 2132

Re: Trim around text

Unread post by Glenn Schroeder »

Hello, and welcome to the forum. Please clarify what you mean by "random lines." If you mean model edges, then I'm not aware of any way to hide them where they interfere with the text, except by using the "convert entities" sketch function to reproduce them where you want the lines, and then hide the actual lines.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
DanPihlaja
Posts: 853
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 813
x 983

Re: Trim around text

Unread post by DanPihlaja »

About the only way that I know if is to get creative with crosshatching a solid area to represent your white masking of the background of the text. Saving that as a block with the text in it and using that.
image.png
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
scarr
Posts: 4
Joined: Tue May 09, 2023 6:39 am
Answers: 0

Re: Trim around text

Unread post by scarr »

I have atached a screen shot that hopefully helps.
Capture.JPG
User avatar
matt
Posts: 1590
Joined: Mon Mar 08, 2021 11:34 am
Answers: 19
Location: Virginia
x 1219
x 2380
Contact:

Re: Trim around text

Unread post by matt »

You could explode the text into sketch elements, but that's messy. No, it's Messy.

I would avoid doing it in sketch. Use the text to make solid geometry, and then use the line sketch to break up the solid text into bodies. You can probably still get where you want to go using that method.
User avatar
Glenn Schroeder
Posts: 1523
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1761
x 2132

Re: Trim around text

Unread post by Glenn Schroeder »

Will this work for you? Sketch a rectangle around the text, use the Trim tool to remove the lines inside the rectangle, then delete the rectangle.

image.png
image.png
image.png
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2305
x 998
Contact:

Re: Trim around text

Unread post by zxys001 »

scarr wrote: Tue May 09, 2023 6:43 am Hi,

I have a sketch that has lots of random lines on what will be a A4 sheet, I want to place text over these lines and then trim away the ones that intersect the text, how do I do this?

Steve
One way you may be able to do this is to create a Broken-Out Section (solid... but maybe you have imported lines?)?

hmm... maybe create Block (with text) to mask/obscure?
Attachments
2023-05-09 09 19 14.png
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
User avatar
bnemec
Posts: 1946
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2552
x 1401

Re: Trim around text

Unread post by bnemec »

What is your end goal? As matt mentioned, this might be better done working with solid body(ies) than 2D elements.
scarr
Posts: 4
Joined: Tue May 09, 2023 6:39 am
Answers: 0

Re: Trim around text

Unread post by scarr »

bnemec wrote: Tue May 09, 2023 12:36 pm What is your end goal? As matt mentioned, this might be better done working with solid body(ies) than 2D elements.
Thanks everyone so far...

These are laser cut lines, I am trying to get a broken glass effect with text (not broken) in it. the resulting sketch will be saved as dxf and then into
inkscape for changes of colour so the cutter software works.

It does seen stange that solidworks dosn't treat text edges the same as other lines, I'm certainly no expert but love solidworks and find you can do most things with it.
User avatar
DanPihlaja
Posts: 853
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 813
x 983

Re: Trim around text

Unread post by DanPihlaja »

scarr wrote: Wed May 10, 2023 2:41 am Thanks everyone so far...

These are laser cut lines, I am trying to get a broken glass effect with text (not broken) in it. the resulting sketch will be saved as dxf and then into
inkscape for changes of colour so the cutter software works.

It does seen stange that solidworks dosn't treat text edges the same as other lines, I'm certainly no expert but love solidworks and find you can do most things with it.
You can dissolve the text, and then it will treat it like normal lines. But that is a one way process.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
sergio.monti
Posts: 36
Joined: Tue May 04, 2021 2:22 am
Answers: 1
x 48
x 21

Re: Trim around text

Unread post by sergio.monti »

Other solution could be to extrude the text - therefore you get a solid and the sketch text will be hidden - then edit the sketch containing the lines and use 'Convert Entities' command selecting the top surface of the text. You are then able to cut inner lines.
User avatar
SPerman
Posts: 2059
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2232
x 1878
Contact:

Re: Trim around text

Unread post by SPerman »

I think Matt's suggestion of using solids is the best, if I am understanding what you are looking for. Personally, I would do this in an assembly with the background as one part and the text overlay as another. Attached is an example as a multibody part. The "broken glass" feature needs a better solution. I think your geometry would perform better than my random collection of criss-cossing lines.
Attachments
TEXT.SLDPRT
(604.16 KiB) Downloaded 140 times
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
scarr
Posts: 4
Joined: Tue May 09, 2023 6:39 am
Answers: 0

Re: Trim around text

Unread post by scarr »

SPerman wrote: Wed May 10, 2023 9:36 am I think Matt's suggestion of using solids is the best, if I am understanding what you are looking for. Personally, I would do this in an assembly with the background as one part and the text overlay as another. Attached is an example as a multibody part. The "broken glass" feature needs a better solution. I think your geometry would perform better than my random collection of criss-cossing lines.
I think your version of SW is newer as it fails to load in my very old version (2010) :-(
User avatar
bnemec
Posts: 1946
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2552
x 1401

Re: Trim around text

Unread post by bnemec »

Solid modeling software works best working with solids. Sketches are for the sake of making solids (at least in history based parametric modeler). Extrude the text as one body, extrude the rest of the block as another body, use the random lines as curves to split the face of the block (will not split the text body). copy the text body and use the copy as a tool to cut from the main block (gets rid of the lines where the text would be). Boolean add the original text body to the main block body. What I'm not 100% certain about is if saving the model as dxf will get those split face lines or not. I could try it, but I'm guessing your version might behave differently than what I have.
User avatar
JSculley
Posts: 648
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 883

Re: Trim around text

Unread post by JSculley »

scarr wrote: Wed May 10, 2023 2:41 am Thanks everyone so far...

These are laser cut lines, I am trying to get a broken glass effect with text (not broken) in it. the resulting sketch will be saved as dxf and then into
inkscape for changes of colour so the cutter software works.

It does seen stange that solidworks dosn't treat text edges the same as other lines, I'm certainly no expert but love solidworks and find you can do most things with it.
Here's an efficient way to do this:

1. Extrude your text
image.png
2 Sketch and extrude a super-thin rectangle that runs through the text joining the letters together into a single body
image.png
3. In your lines sketch, use the 'Trim away inside' option of 'Power Trim'.
image.png
You select the single front face (thanks to the sketched rectangle extrusion) and then click and drag (top right to bottom left) a selection box around all the sketch lines at once. SW will think for a bit and then trim away all the line segments inside the face:
image.png
4. Use a Delete Body feature to eliminate the solid, show your original text sketch and you're done-ish.
image.png
I say done-ish because there will be some gaps in the lines anywhere they cross the thin rectangle that you may want to clean up but the laser will probably blend them together anyway.
len_1962
Posts: 85
Joined: Fri Apr 09, 2021 9:55 am
Answers: 1
Location: Mesa, Arizona
x 77
x 42
Contact:

Re: Trim around text

Unread post by len_1962 »

see pic has the instruction on it.

using solids saves alot of time, sketchs are not always the fastest way to get stuff, features baby!!
Attachments
stained glass for laser.SLDDRW
(424.23 KiB) Downloaded 141 times
stained glass instructions.jpg
stained glass for laser.SLDPRT
(858.73 KiB) Downloaded 110 times
User avatar
Frederick_Law
Posts: 1948
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1643
x 1471

Re: Trim around text

Unread post by Frederick_Law »

Do it in 3D.
Extrude different regions to different height. So you can see the edge when looking down on it.
LetterCut-01.jpg
LetterCut-02.jpg
LetterCut-03.jpg
LetterCut-04.jpg
You'll need to avoid all the ZTGs **
User avatar
AlexLachance
Posts: 2196
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2382
x 2025

Re: Trim around text

Unread post by AlexLachance »

scarr wrote: Wed May 10, 2023 2:41 am Thanks everyone so far...

These are laser cut lines, I am trying to get a broken glass effect with text (not broken) in it. the resulting sketch will be saved as dxf and then into
inkscape for changes of colour so the cutter software works.

It does seen stange that solidworks dosn't treat text edges the same as other lines, I'm certainly no expert but love solidworks and find you can do most things with it.
You can explode text so that it becomes lines and ellipses but then you lose the ability to modify the text.

I'd use a different layer for the broken glass effect and keep the part's outer limit with text in standard layer.

You can also do as Fred mentionned and get the desired result by extruding.
User avatar
bnemec
Posts: 1946
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2552
x 1401

Re: Trim around text

Unread post by bnemec »

Frederick_Law wrote: Wed Aug 23, 2023 3:28 pm ...You'll need to avoid all the ZTGs **
Will extruding as different bodies (uncheck the merge option) avoid the ZTGs?
User avatar
Frederick_Law
Posts: 1948
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1643
x 1471

Re: Trim around text

Unread post by Frederick_Law »

bnemec wrote: Wed Aug 23, 2023 4:50 pm Will extruding as different bodies (uncheck the merge option) avoid the ZTGs?
Yes, it will.

I did mine in IV, so I didn't even pay attention to ZTG UU
len_1962
Posts: 85
Joined: Fri Apr 09, 2021 9:55 am
Answers: 1
Location: Mesa, Arizona
x 77
x 42
Contact:

Re: Trim around text

Unread post by len_1962 »

Have you guys looked at my SW File?
No need to extrude different levels for the hatch pattern, just do a split face.
No need to convert text to geometry or any trimming, just extrude it tru and above the split face.
I had to make a drawing because the part file wouldn't create the DXF with the split lines but the drawing would as long as the slection was set to show all lines.
less time and frustration, I do this all the time for our Universal laser, good old model maker tips and tricks UU
image.png
image.png (3.85 KiB) Viewed 2865 times
len_1962
Posts: 85
Joined: Fri Apr 09, 2021 9:55 am
Answers: 1
Location: Mesa, Arizona
x 77
x 42
Contact:

Re: Trim around text

Unread post by len_1962 »

bnemec wrote: Wed Aug 23, 2023 4:50 pm Will extruding as different bodies (uncheck the merge option) avoid the ZTGs?
no need for seperate bodies if you extrude a solid body thru only if you cut extrude is the problem with ZTG, open my part file.

just trying to help out my fellow cheeze head UU
User avatar
AlexLachance
Posts: 2196
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2382
x 2025

Re: Trim around text

Unread post by AlexLachance »

len_1962 wrote: Thu Aug 24, 2023 10:13 am Have you guys looked at my SW File?
No need to extrude different levels for the hatch pattern, just do a split face.
No need to convert text to geometry or any trimming, just extrude it tru and above the split face.
I had to make a drawing because the part file wouldn't create the DXF with the split lines but the drawing would as long as the slection was set to show all lines.
less time and frustration, I do this all the time for our Universal laser, good old model maker tips and tricks UU image.png
That is a pretty nifty way to do it also!
Post Reply