Trim around text
Trim around text
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
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
- Glenn Schroeder
- Posts: 1523
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1761
- x 2132
Re: Trim around text
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"
Ray Wylie Hubbard in his song "Mother Blues"
- DanPihlaja
- Posts: 853
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 813
- x 983
Re: Trim around text
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.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
Re: Trim around text
I have atached a screen shot that hopefully helps.
Re: Trim around text
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.
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.
Blog: http://dezignstuff.com
- Glenn Schroeder
- Posts: 1523
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1761
- x 2132
Re: Trim around text
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.
"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"
Ray Wylie Hubbard in his song "Mother Blues"
- zxys001
- Posts: 1077
- Joined: Fri Apr 02, 2021 10:08 am
- Location: Scotts Valley, Ca.
- x 2305
- x 998
- Contact:
Re: Trim around text
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?
"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
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
Re: Trim around text
What is your end goal? As matt mentioned, this might be better done working with solid body(ies) than 2D elements.
Re: Trim around text
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.
- DanPihlaja
- Posts: 853
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 813
- x 983
Re: Trim around text
You can dissolve the text, and then it will treat it like normal lines. But that is a one way process.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.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
-
- Posts: 36
- Joined: Tue May 04, 2021 2:22 am
- x 48
- x 21
Re: Trim around text
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.
Re: Trim around text
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
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: Trim around text
I think your version of SW is newer as it fails to load in my very old version (2010) :-(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.
Re: Trim around text
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.
Re: Trim around text
Here's an efficient way to do this: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.
1. Extrude your text 2 Sketch and extrude a super-thin rectangle that runs through the text joining the letters together into a single body 3. In your lines sketch, use the 'Trim away inside' option of 'Power Trim'. 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:
4. Use a Delete Body feature to eliminate the solid, show your original text sketch and you're done-ish. 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.
Re: Trim around text
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!!
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 for laser.SLDPRT
- (858.73 KiB) Downloaded 110 times
- Frederick_Law
- Posts: 1948
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1643
- x 1471
Re: Trim around text
Do it in 3D.
Extrude different regions to different height. So you can see the edge when looking down on it. You'll need to avoid all the ZTGs
Extrude different regions to different height. So you can see the edge when looking down on it. You'll need to avoid all the ZTGs
- AlexLachance
- Posts: 2196
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2382
- x 2025
Re: Trim around text
You can explode text so that it becomes lines and ellipses but then you lose the ability to modify the text.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.
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.
Re: Trim around text
Will extruding as different bodies (uncheck the merge option) avoid the ZTGs?
- Frederick_Law
- Posts: 1948
- Joined: Mon Mar 08, 2021 1:09 pm
- Location: Toronto
- x 1643
- x 1471
Re: Trim around text
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
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
- AlexLachance
- Posts: 2196
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2382
- x 2025
Re: Trim around text
That is a pretty nifty way to do it also!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 image.png