Constant thickness dashed line - waterproofing

Constant thickness dashed line - waterproofing

adriaGMU8Z
Explorer Explorer
6,662 Views
14 Replies
Message 1 of 15

Constant thickness dashed line - waterproofing

adriaGMU8Z
Explorer
Explorer

How can I get this result?

The aim is to stroke one single polyline and get two thin lines and thicker dashed line at the center.

My closest attempt has been to s construct a multiline with its lines in different layers (different weights), however the weight of the central line is dependant on the scale of the viewport, consequently its width is smaller or larger than the two thin lines in each presentation that it appears in.

Any clues?

Thanks!

 

 

dashed.jpg

0 Likes
Accepted solutions (1)
6,663 Views
14 Replies
Replies (14)
Message 2 of 15

TheCADnoob
Mentor
Mentor

I would be tempted to create a line type. 

 

Another method to consider would be to use somthing like lee macs multi-polyline lisp http://www.lee-mac.com/mpline.html and then change the middle line width after creating it. (PEDIT and change width)

 

To create the line use the MKSHAPE command and the MKLTYPE command (Requires express tools - no LT)

 

CADnoob Linetype help.PNG

 

Below is a screencast where i created another line type but the method should be about the same. 

 

 

Screencast will be displayed here after you click Post.

22d47664-ad08-430a-a8da-b3cd55d906a5

 

CADnoob

EESignature

0 Likes
Message 3 of 15

Kent1Cooper
Consultant
Consultant

@TheCADnoob wrote:

I would be tempted to create a line type. 

....

22d47664-ad08-430a-a8da-b3cd55d906a5

 


 

If you choose that two-shapes approach in a linetype, you can greatly reduce the jiggity effect at curves by using the approach >here< [that's about embedded Text, but the principle is the same for other shapes].

Kent Cooper, AIA
Message 4 of 15

munyc
Community Visitor
Community Visitor

Hi!

stumbled across your post looking for a waterproofing line like that. Did you get it resolved?

0 Likes
Message 5 of 15

adriaGMU8Z
Explorer
Explorer
Somehow, I am currently drawing it using 3 manually offseted lines the side lines being a regular polyline and the central line being a dashed multiline, i set the thickness of this central line using the properties dashboard. The visual output is very good however it is a bit tedious.

0 Likes
Message 6 of 15

Kent1Cooper
Consultant
Consultant

@adriaGMU8Z wrote:
... I am currently drawing it using 3 manually offseted lines the side lines being a regular polyline and the central line being a dashed multiline, i set the thickness of this central line using the properties dashboard. The visual output is very good however it is a bit tedious.

The tedium can be reduced, with something like this [untested]:

(defun C:TEST (/ thk pl plobj)
  (setq thk (getdist "\nDrawn thickness of waterproofing membrane: "))
  (setvar 'plinewid 0)
  (prompt "\nDraw center-line path of membrane section.")
  (command-s "_.pline")
  (setq pl (entlast) plobj (vlax-ename->vla-object pl))
  (vla-offset plobj (/ thk 2))
  (vla-offset plobj (/ thk -2))
  (command "_.chprop" pl "" "_ltype" "dashed" "")
    ;; [does not require the linetype to be already loaded]
  (entmod (append (entget pl) (list (cons 43 thk)))); middle-one width
  (princ)
)

That is in simplest terms.  It could be enhanced, for instance to save your membrane thickness and offer it as default, to save the current PLINEWID System Variable value [in case it's not 0] and restore it afterwards, etc.

 

If you want to first draw one of the edges rather than the middle, that can be done, though it will require a User pick of the side to which to OFFSET the initial Polyline.

Kent Cooper, AIA
0 Likes
Message 7 of 15

Serhii_Leshchenko
Contributor
Contributor

Recently I came across this linetype. I don't know how our team got it, but it is very handy (I don't have .lin file, just dwg). I was trying to export it to .lin, but it didn't worked. I think it is not a shape, it bends like a spline 

 

Message 8 of 15

s.proch
Enthusiast
Enthusiast

@Serhii_Leshchenko would you like to share the dwg file? 🙂

0 Likes
Message 9 of 15

Serhii_Leshchenko
Contributor
Contributor
Accepted solution

Here it is

Message 10 of 15

adbaco
Community Visitor
Community Visitor

This line works really good, thank you very much for sharing.

If you enable "linetype generation" it works with polylines at corners.

0 Likes
Message 11 of 15

s.proch
Enthusiast
Enthusiast

Thanks a lot! This is very good!

0 Likes
Message 12 of 15

munyc
Community Visitor
Community Visitor

Hello! The file only contained a continuous line circle when I open it (AC LT 2024 Mac). Can you please help?

0 Likes
Message 13 of 15

adriaGMU8Z
Explorer
Explorer
You can draw any polyline and use "matchprop" to copy the properties
Message 14 of 15

justinMY7R3
Explorer
Explorer

Hello,

 

Im wondering if this will not work in auto cad LT for Mac? We can download the file, but cannot copy the object or see the line type. 

 

Thank you

0 Likes
Message 15 of 15

s.proch
Enthusiast
Enthusiast

I just tried opening the file in ACAD LT (Windows) and the line type shows fine! You might need to re-assign the line type in Layer Properties Manager.

0 Likes