[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Smart Pipe Symbols
Tip# ALSP802 By Tony Hotchkiss On 01-Aug-2002
3
Rated By 1 users Downloaded : 784
Categories : Standard Blocks
Software type : AutoCAD
Rename File To : pvsymbols.lsp, pvsymbols.dcl, pvsymbols.slb, pvsymbols.dwg
pvsymbol.lsp: A routine to insert piping symbols and automatically trim the line.

Robert Davis and Michael D'Attilio separately requested a routine to insert piping symbols with automatic trim. Many routines in textbooks and recent tips and tricks in Cadalyst insert piping symbols. However, these routines do not automatically trim the lines into which you insert the symbols. The solution presented here includes an AutoLISP file LSP), a dialog box file (DCL), a symbols library file (SLB), and a drawing file (DWG) that contains some symbols. This solution works by drawing lines in AutoCAD (figure 1) and then inserting symbols, as shown in figure 2. I am not an expert in piping symbols, so figure 2 does not make sense in an engineering application. However, it illustrates how the lines are trimmed when you insert the symbols.

How to Use PVSYMBOLS
Download the four files from the Code section of Cadalyst.com and save them in the AutoCAD Support directory. The Cadalyst Web site also explains how to load AutoLISP programs, so follow those instructions to load the PVSYMBOL. LSP file. A prompt tells you to enter PVS to start the program.

When you start the program, the dialog box in figure 3 appears. This initial dialog box shows the Air Line symbol. Notice that the selection Insert with Trim is checked. You can select any symbol from the symbols list and insert the symbol with or without trimming. When you select a symbol from the list, its picture appears at the top of the dialog box.



 

 

Average Rating:
3


User comments
Comment by Drew,Steve
Posted on 2009-02-05 14:15:04
Bea....UT FULL


Log In