Custom Line Styles in Drawings (Zig-zag)
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Custom Line Styles in Drawings (Zig-zag)
I'm wondering about creating a custom line style, similar to AutoCAD, by modifying this file:
<install_dir>\SOLIDWORKS\lang\<language>\Swlines.lin
I don't see how to include shapes, symbols, text, etc. into the formatting. Is there a trick that I'm not seeing, or am I limited to only creating linetypes that consist of dashes, spaces, lines?
<install_dir>\SOLIDWORKS\lang\<language>\Swlines.lin
I don't see how to include shapes, symbols, text, etc. into the formatting. Is there a trick that I'm not seeing, or am I limited to only creating linetypes that consist of dashes, spaces, lines?
Austin
- DanPihlaja
- Posts: 849
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 812
- x 980
Re: Custom Line Styles in Drawings (Zig-zag)
Pretty sure you are limited to length of solid segment and length of break....Austin Schukar wrote: ↑Thu Mar 31, 2022 2:46 pm I'm wondering about creating a custom line style, similar to AutoCAD, by modifying this file:
<install_dir>\SOLIDWORKS\lang\<language>\Swlines.lin
I don't see how to include shapes, symbols, text, etc. into the formatting. Is there a trick that I'm not seeing, or am I limited to only creating linetypes that consist of dashes, spaces, lines?
https://solid-blog.pl/tworzenie-wlasneg ... h/?lang=en
although I have been entirely wrong before...
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: Custom Line Styles in Drawings (Zig-zag)
That's the conclusion that I've come to as well. Here's to hoping that some wizard can set us straight.DanPihlaja wrote: ↑Thu Mar 31, 2022 3:54 pm Pretty sure you are limited to length of solid segment and length of break....
https://solid-blog.pl/tworzenie-wlasneg ... h/?lang=en
although I have been entirely wrong before...
Austin
Re: Custom Line Styles in Drawings (Zig-zag)
I thought that a Revision Cloud may be useful to try this. However, its only controls are minimum arc radius and Line Style, also defined as linear-only types of gaps and dashes.
I've made similar 'constructs' where a straight line is drawn on a layout layer which I later turn to hidden, then I sketch a series of parallel lines across it and define each as equal length. You could make this a library block, which could be inserted, exploded and then and dragging its ends would lengthen it, but it would have the same number of zigs and zags, only larger or with a more obtuse angle between them, depending on its relations applied.
You could instead, not explode it and line multiples of these up to make a longer line. Maybe explode the end blocks where you'd like to trim it.
This is still not what you want, but a kludge that is difficult to manage and repeat.
I've made similar 'constructs' where a straight line is drawn on a layout layer which I later turn to hidden, then I sketch a series of parallel lines across it and define each as equal length. You could make this a library block, which could be inserted, exploded and then and dragging its ends would lengthen it, but it would have the same number of zigs and zags, only larger or with a more obtuse angle between them, depending on its relations applied.
You could instead, not explode it and line multiples of these up to make a longer line. Maybe explode the end blocks where you'd like to trim it.
This is still not what you want, but a kludge that is difficult to manage and repeat.
- DanPihlaja
- Posts: 849
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 812
- x 980
Re: Custom Line Styles in Drawings (Zig-zag)
Tom G wrote: ↑Fri Apr 01, 2022 1:25 pm I thought that a Revision Cloud may be useful to try this. However, its only controls are minimum arc radius and Line Style, also defined as linear-only types of gaps and dashes.
I've made similar 'constructs' where a straight line is drawn on a layout layer which I later turn to hidden, then I sketch a series of parallel lines across it and define each as equal length. You could make this a library block, which could be inserted, exploded and then and dragging its ends would lengthen it, but it would have the same number of zigs and zags, only larger or with a more obtuse angle between them, depending on its relations applied.
You could instead, not explode it and line multiples of these up to make a longer line. Maybe explode the end blocks where you'd like to trim it.
This is still not what you want, but a kludge that is difficult to manage and repeat.
Well, on that note, you cold probably draw in 1 zig and 1 zag, then pattern it...or whatever... (click on the pic below for the GIF file)
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
Re: Custom Line Styles in Drawings (Zig-zag)
The AutoCAD zig-zag is a marriage of two files. The .lin file and a corresponding .shp (shape) file. SW only mimics the .lin part.Austin Schukar wrote: ↑Thu Mar 31, 2022 2:46 pm I'm wondering about creating a custom line style, similar to AutoCAD, by modifying this file:
<install_dir>\SOLIDWORKS\lang\<language>\Swlines.lin
I don't see how to include shapes, symbols, text, etc. into the formatting. Is there a trick that I'm not seeing, or am I limited to only creating linetypes that consist of dashes, spaces, lines?
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: Custom Line Styles in Drawings (Zig-zag)
Just curious where you would use this? I can' think of anytime I've wanted to do this on a drawing in SolidWorks.....maybe AutoCAD for doing break views I guess.
Jason
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: Custom Line Styles in Drawings (Zig-zag)
Good question. Really is just personal preference. I use Crop View quite a bit, and really prefer something like CATIA's clipped view linetype for the clipped borders. Something like this...It's just what I'm used to seeing, that's all. AFAIK the only border options for cropped views in SW are: None, solid, and jagged. Detail view allows you to set a border linetype, lineweight, etc. and it's curious that they don't allow it for cropped views as well?jcapriotti wrote: ↑Fri Apr 01, 2022 6:01 pm Just curious where you would use this? I can' think of anytime I've wanted to do this on a drawing in SolidWorks.....maybe AutoCAD for doing break views I guess.
Austin
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: Custom Line Styles in Drawings (Zig-zag)
I've gathered as much, a bit unfortunate. It was pretty trivial to set up all of our own line types in AutoCAD with the system lin/shp files. I did see, though, that SW Electrical could customize linetypes a bit more than general SW. That was just at a glance, so I could be wrong.
Austin
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: Custom Line Styles in Drawings (Zig-zag)
Thanks for the suggestion, Tom. I don't mind utilizing a kludge in this caseTom G wrote: ↑Fri Apr 01, 2022 1:25 pm I thought that a Revision Cloud may be useful to try this. However, its only controls are minimum arc radius and Line Style, also defined as linear-only types of gaps and dashes.
I've made similar 'constructs' where a straight line is drawn on a layout layer which I later turn to hidden, then I sketch a series of parallel lines across it and define each as equal length. You could make this a library block, which could be inserted, exploded and then and dragging its ends would lengthen it, but it would have the same number of zigs and zags, only larger or with a more obtuse angle between them, depending on its relations applied.
You could instead, not explode it and line multiples of these up to make a longer line. Maybe explode the end blocks where you'd like to trim it.
This is still not what you want, but a kludge that is difficult to manage and repeat.
Austin
- Glenn Schroeder
- Posts: 1522
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1759
- x 2132
Re: Custom Line Styles in Drawings (Zig-zag)
Something like this?Austin Schukar wrote: ↑Mon Apr 04, 2022 1:04 pm Good question. Really is just personal preference. I use Crop View quite a bit, and really prefer something like CATIA's clipped view linetype for the clipped borders. Something like this...It's just what I'm used to seeing, that's all. AFAIK the only border options for cropped views in SW are: None, solid, and jagged. Detail view allows you to set a border linetype, lineweight, etc. and it's curious that they don't allow it for cropped views as well?
"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"
Re: Custom Line Styles in Drawings (Zig-zag)
In one previous use, I wanted to indicate that a series of systems were connected to the same linear pipe header, without the additional load of the complete assembly from which to crop or break the view. Each system was a subassembly, and included an enveloped partial representation of the continuous header. I created zig-zag cuts at the header's ends, twice to show in both plan and front views. The sheets containing system views only showed that subassembly.
That is, I placed the Zig-Zag inside the solid body, to appear in its view. There's always more than one way to achieve desired results in context.
It was also a reaction to the drawing limitation that a Break view cannot be open-ended, but must also show the far end of the view, AFAIK using 2018. I did not want to show the irrelevant extent end in a break view detailing a 'middle part', so I represented what I desired by another means.
This may sound tedious, but it was far more productive than viewing the very large assembly in drawings where it was not necessary.
That is, I placed the Zig-Zag inside the solid body, to appear in its view. There's always more than one way to achieve desired results in context.
It was also a reaction to the drawing limitation that a Break view cannot be open-ended, but must also show the far end of the view, AFAIK using 2018. I did not want to show the irrelevant extent end in a break view detailing a 'middle part', so I represented what I desired by another means.
This may sound tedious, but it was far more productive than viewing the very large assembly in drawings where it was not necessary.
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: Custom Line Styles in Drawings (Zig-zag)
This is also another use-case that I ran into, just last week (Break view limitation). Good point!Tom G wrote: ↑Mon Apr 04, 2022 2:06 pm In one previous use, I wanted to indicate that a series of systems were connected to the same linear pipe header, without the additional load of the complete assembly from which to crop or break the view. Each system was a subassembly, and included an enveloped partial representation of the continuous header. I created zig-zag cuts at the header's ends, twice to show in both plan and front views. The sheets containing system views only showed that subassembly.
That is, I placed the Zig-Zag inside the solid body, to appear in its view. There's always more than one way to achieve desired results in context.
It was also a reaction to the drawing limitation that a Break view cannot be open-ended, but must also show the far end of the view, AFAIK using 2018. I did not want to show the irrelevant extent end in a break view detailing a 'middle part', so I represented what I desired by another means.
This may sound tedious, but it was far more productive than viewing the very large assembly in drawings where it was not necessary.
Austin
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: Custom Line Styles in Drawings (Zig-zag)
Hey Glenn, I do know about the Jagged option, and while it may seem silly, I like the looks of a more 'organized' break/outline to the view. Jagged, to me, is not desirable. Hope that makes sense
Austin
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: Custom Line Styles in Drawings (Zig-zag)
@Austin Schukar ASME Y14.3 standard seems to go with the jagged option for broken view edges.
Of course, oddly enough, SolidWorks gives you the option you want on "Break Views"
Of course, oddly enough, SolidWorks gives you the option you want on "Break Views"
Jason