You can assign an end connection to a valve or an inline instrument.

End connections display the type of connection (flanged, socket welded, or welded) for a valve or inline instrument in an AutoCAD P&ID drawing. The type of connection is tracked as a property. End connections inherit their graphical properties (such as layer, color, and line weight) from the valve or inline instrument with which they are inserted.