Here is a section generated using 3 point method. You didn't specify how to create section so this is for a start.
(defun c:ssect ( / e eo lay p1 p2 p3 rego)
(setq e (car (entsel "\nSelect 3d solid >")))
(cond
((and e)
(setq eo (vlax-ename->vla-object e))
(cond
((= (vlax-get eo 'ObjectName) "AcDb3dSolid")
(setq lay (vla-get-layer eo))
(setq p1 (getpoint "\nFirst point of section plane >"))
(setq p2 (getpoint "\nSecond point of section plane >"))
(setq p3 (getpoint "\nThird point of section plane >"))
(command "_.section" e "" p1 p2 p3)
(setq rego (setq eo (vlax-ename->vla-object (entlast))))
(vlax-put rego 'Layer lay)
)
)
)
)
(princ)
)
Miljenko Hatlak

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.