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.
|