[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.
Draw pipe flanges
Tip# ALSP1002 By Tony Hotchkiss On 01-Oct-2002
Rated By 1 users Downloaded : 2127
Categories : Standard Blocks
Software type : AutoCAD
FLANGE.LSP and FLANGE.DCL draw piple flanges with both end and side views.

Stacy Mitchell requests an AutoLISP routine to draw pipe flanges with both end and side views. Depending on the view required, the input information includes flange thickness, flange inside and outside diameters, bolt circle diameter, number of holes, hole diameter, neck diameter, and the flange projection. Figure 1 shows typical plan and side views for the type of flange under consideration.

The AutoLISP solution is flange.lsp, which also has a dialog control language file called flange.dcl. The dialog control box lets you select either the plan view or the side view. The routine presents data entry boxes relative to the chosen view, as shown in figures 2 and 3. Data entry boxes are grayed out when they are not required.

How to use flange.lsp
Download the flange.lsp and flange.dcl files from the Get the Code page and save both files in the AutoCAD support directory. Select Load Applications from the AutoCAD Tools menu. In the Load Applications dialog box, select the flange.lsp file from the AutoCAD support directory and then select Close.



Average Rating:

User comments