Piping Drawings
Piping Isometrics
P & I Diagrams
2D Piping
3D Piping Models
AutoLISP Programs
Piping Training
Equipment Drawings
Tubular Exchanger
Jib Crane
About Me
My Resume
Contact Me
Cross Country Piping
Satish Lele
satish.lele@gmail.com

VBA Program

Program for Drawing Process & Instrumentation Diagrams

AutoCAD Package is prepared in such a manner that it can be easily customized. Program for Drawing Process & Instrumentation Diagrams is such a customized program in my PROGRAMS for PIPING Series, for AutoCAD Release 12 onwards. The program is based on AutoLISP and symbols or blocks are created as and when required and then inserted. Bill of Material is created by a VBA program, which creates a table in MS Excel. In case of valves, the pipe line is cut in that portion. Since blocks are created each time, there is a lot of saving of Disk space. Since the program is written in AutoLISP, it can be even modify further. The different pipe lines are arranged on different layers. This is a menu driven program. Special Dialogue Boxes are created to make the program more user friendly.

Two different menus are available pi and picon.
  1. pi : We can select items through pull down menu
  2. picon : We can select items through pull down and then through icon menu

Pull Down Menu to Create Lines : The lines are arranged on different layers, and the layer name is same as line number. The line number is generally in format : Size-Service-Line Number-Spec. The existing lines are shown in the list box.

Pull Down Menu to Create Lines Pull Down Menu to Create Lines
  1. New Line Number : We can add new lines to the box by typing in New Line Number and select add. New layer is created, and it is displayed in list box.
  2. Edit Line Number : To edit an existing line number, we select a line number from list box, enter a new line number and select edit line number. The old number in list box is replaced by new number.
  3. Delete Line Number : To delete an existing line number, we select a line number from list box, and it is deleted.
  4. Draw Line : We can draw lines on a particular layer using this option. For this we have to either select a line number from list box, or type in a new line number.

Pull Down Menu to insert Instruments : We can insert Instruments in the lines. We select an Instrument to be inserted. We are then asked to select where it is to be inserted.

FLOW INSTRUMENTS
Pull Down Menu to insert Flow Instruments
OR
Pull Down Menu to insert Flow InstrumentsPull Down Menu to insert Flow Instruments by Icons

PANEL INSTRUMENTS
Pull Down Menu to insert Panel Instruments
OR
Pull Down Menu to insert Panel InstrumentsPull Down Menu to insert Panel Instruments by Icons

SAFETY INSTRUMENTS
Pull Down Menu to insert Safety Instruments
OR
Pull Down Menu to insert Safety InstrumentsPull Down Menu to insert Safety Instruments by Icons

CONTROL INSTRUMENTS
Pull Down Menu to insert Control Instruments
OR
Pull Down Menu to insert Control InstrumentsPull Down Menu to insert Control Instruments by Icons


Pull Down Menu to insert valves : To insert a valve in a line, we select a valve to be inserted. We are then asked to select a line at left insertion point on that line. The line is cut and valve is inserted in the line. Valve is put on the layer of the line.

COMMON VALVES
Pull Down Menu to insert Common valves AND Pull Down Menu to insert Common valves
OR
Pull Down Menu to insert Commomn valves by Icons

UNCOMMON VALVES
Pull Down Menu to insert Uncommon valves AND Pull Down Menu to insert Uncommon valves
OR
Pull Down Menu to insert Uncommomn valves by Icons

SPECIAL VALVES
Pull Down Menu to insert Special valves AND Pull Down Menu to insert Special valves
OR
Pull Down Menu to insert Special valves by Icons

PISTON OPERATED VALVES
Pull Down Menu to insert Piston Operated valves AND Pull Down Menu to insert Piston Operated valves
OR
Pull Down Menu to insert Piston Operated valves by Icons

JACKETED VALVES
Pull Down Menu to insert Jacketed valves valves AND Pull Down Menu to insert Jacketed valves
OR
Pull Down Menu to insert Jacketed valves by Icons

MOTORIZED VALVES
Pull Down Menu to insert Motorized valves AND Pull Down Menu to insert Motorized valves
OR
Pull Down Menu to insert Motorized valves by Icons


EQUIPMENTS
Pull Down Menu to insert Equipments
REACTORS
Pull Down Menu to insert Reactors
OR
Pull Down Menu to insert Reactors by Icons

PUMPS
Pull Down Menu to insert Pumps
OR
Pull Down Menu to insert Pumps by Icons

COMPRESSORS
Pull Down Menu to insert Compressors
OR
Pull Down Menu to insert Compressors by Icons

FEEDERS
Pull Down Menu to insert Feeders
OR
Pull Down Menu to insert Feeders by Icons

HEAT EXCHANGERS
Pull Down Menu to insert Heat Exchangers
OR
Pull Down Menu to insert Heat Exchangers by Icons

TOWERS / COLUMNS
Pull Down Menu to insert Column / Towers
OR
Pull Down Menu to insert Colums / Towers by Icons

TANKS
Pull Down Menu to insert Tanks
OR
Pull Down Menu to insert Tanks by Icons

DRIVES
Pull Down Menu to insert Drives
OR
Pull Down Menu to insert Drives by Icons

MISCELLANEOUS EQUIPMENTS
Pull Down Menu to insert Misceleneous Equipments
OR
Pull Down Menu to insert Misceleneous Equipments by Icons


Pull Down Menu to insert Steam Fittings : We can insert Steam Fittings in the drawing. We slect a Steam Fittings to be inserted. We are then asked to select a line at left insertion point where it is to be inserted. Steam Fittings is put on the layer of the line.

Pull Down Menu to insert Steam Fittings
OR
Pull Down Menu to insert Steam Fittings by Icons


Pull Down Menu to insert Pipe Fittings : We can insert Pipe Fittings in the drawing. We select a Pipe Fitting to be inserted. We are then asked to select a line at left insertion point where it is to be inserted. Pipe Fitting is put on the layer of the line.

Pull Down Menu to insert Pipe Fittings
OR
Pull Down Menu to insert Pipe Fittings by Icons


Pull Down Menu to insert Strainers : We can insert strainers in the drawing. We select a strainer to be inserted. We are then asked to select a line at left insertion point where it is to be inserted. Strainer is put on the layer of the line.

Pull Down Menu to insert Strainers
OR
Pull Down Menu to insert Strainers by Icons