View Full Version : dont know if this is possible
RedRobMol
8th Jul 2005, 01:21 pm
I need to draw trunking and cable trays onto building layouts and the standard is a double line set to the actual width of the tray with various lines within it |/|/|/|/| for instance.
Is it possible to create a linetype that has this in it and the width of the double line can be changed because editing and drawing this is time consuming in the current manner.
Apologies if I havent described this clearly, but I hope you can help.
It should probably be known that I know nothing about lisp routines.
rjt205
8th Jul 2005, 04:08 pm
Not sure what you mean but, what if you made a block of what you described and either scale different x/y values or if your using 2006 edit the block (if there is only one in your drawing).
westcad
9th Jul 2005, 12:48 am
I need to draw trunking and cable trays onto building layouts and the standard is a double line set to the actual width of the tray with various lines within it |/|/|/|/| for instance.
Is it possible to create a linetype that has this in it and the width of the double line can be changed because editing and drawing this is time consuming in the current manner.
Apologies if I havent described this clearly, but I hope you can help.
It should probably be known that I know nothing about lisp routines.
Have you tried mline (multilines) They may be what you need.
Cadmando
11th Aug 2005, 10:05 am
:shock: 8)
Take a look at this great website http://www.cadtutor.net/michael/archive.html
If the link works correctly scroll to the very bottom and there should be a link to creating your own line type.
Hope this is of help. o:)
sab423
16th Aug 2005, 06:21 am
I would recommend creating a rectangle with a length of lets say 3 feet and width of 12 inches then adding a associative hatch pattern. Then turn the rectangle and hatch pattern into a wblock. Now when you need a cable tray insert the block and have it explode when inserted. Then all you need to do is stretch the cable tray to the length and width you need and the hatch pattern will fill in.
I do similar drawings with cable trays all the time. I have a couple blocks premade to certain widths and all I have to do is stretch the cable tray to the length I need.
Hope this helps.
Scott 8)
christ0j
17th Aug 2005, 08:48 pm
Here is a lisp that I use to draw wiremold. The command is WM.
defun-q C:WM ()
(setvar "CMDECHO" 0)
(command "layer" "m" "wmold" "c" "cyan" "" "")
(command "linetype" "load" "wiremold" "cam.lin" "")
(command "dimscale" "1")
(setq X (getvar "DIMSCALE"))
(initget 1)
(setq PT (getpoint "\nStart Point: ")
)
(command "PLINE" PT "W" 0 0)
(setq PT1 PT
)
(while
(setq PT (getpoint PT "\nNext Point: ")
)
(setq PT2 PT
)
(command PT)
) ;while
(command) (initget 4)
(setq ELAST (entlast)
WID (* 0.0625 X)
PT1 (reverse (cdr (reverse PT1)))
)
(setq PT3 ( getpoint PT1 "\nOffset Direction? ")
PT3 (reverse (cdr (reverse PT3)))
)
(command "OFFSET" WID (list ELAST PT1) PT3 "")
(command "OFFSET" (/ WID 2) (list ELAST PT1) PT3 "")
(setq ELAST1 (entlast)
)
(command "PEDIT" ELAST1 "W" WID "")
(command "CHANGE" ELAST1 "" "P" "LT" "WIREMOLD" ""))
You will need to add the linetype to your lin file.
WIREMOLD,Wiremold -- -- -- -- --
A,.25,-.25
Maybe this will get you started.
direct3d
19th Aug 2005, 01:23 am
I would recommend creating a rectangle with a length of lets say 3 feet and width of 12 inches then adding a associative hatch pattern.
I do a lot of work using this method for trays as I found the multiline were not as flexible as the Hatched rectangle.
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.