Here is a LISP routine that may help.
https://www.youtube.com/watch?v=G1ePdEzVCeY
;Create a section view
(defun c:SX (/ origOrthoMode pt1 pt2 pt3 pt4)
(setq origOrthoMode(getvar "orthomode"))
(setvar "orthomode" 1)
(setq origCmdEcho (getvar "cmdecho"))
(setvar "cmdecho" 0)
(setvar "expert" 5)ISO
; Save original UCS
;(command "ucs" "s" "tempUcs") ; saves ucs to "tempUcs"
; Save original View
(command "-view" "save" "temp1")
;Set UCS to View
(command "ucs" "v")
;Get points to define workplane
(setq pt1 (getpoint "\nWork plane pt1: "))
(setq pt2 (getpoint pt1 "\nWork plane pt2: "))
(setq sxOrig (trans pt2 1 0))
;Get points to define clip plane locations
(setq pt3 (getpoint "\nSection start: "))
(setq pt4 (getpoint pt3 "\nSection end: "))
(setq pt3 (trans pt3 1 0) pt4 (trans pt4 1 0)) ; translate points pt3 & pt4 from '1' (UCS) to '0' (WCS)
(command "ucs" "w")
(setvar "regenmode" 1)
(command "dview" "" "po" pt4 pt3 "cl" "f" (distance pt4 pt3) "cl" "b" 0 "")
; move ucs origin to middle of workplane line & sets to view
; this causes grips to be active in dview box because ucs origin is in box
(command "ucs" "or" (trans sxOrig 1 0))
(command "ucs" "v")
(COMMAND "ZOOM" "E")
; Restore original UCS
; (command "ucs" "r" "tempUcs") ; restores ucs to "tempUcs"
(setvar "orthomode" origOrthoMode)
(setvar "regenmode" 0)
(setvar "expert" 0)
(setvar "cmdecho" origCmdEcho)
(princ)
)
; End the section view
(defun c:ESX (/)
(command "ucs" "w")
(command "plan" "w")
(setvar "regenmode" 1)
; Restore original View
(command "-view" "restore" "temp1")
(princ)
)