MrMeMedesmo
Guest
Good morning.
I am looking for a solution to this problem, i.e. identifying the maximum volume that contains an irregular 3dsolid rotated in space, i.e. not the classic and simple prisma lined according to the uucs.
to better explain the purpose I attach the photos where:
- white color = 3dsolid reference
- red color = minimum prism containing the 3dsolid reference according to my goal
- colore verde = prisma minimo che contiene il 3dsolid di riferimento costruito con la seguente funzione:
(defun c: ()
(if (setq ss1 (ssget "_+.:e:s"(0 . "3dsolid")))))
(progn)
(setq solidobj (vlax-ename->vla-object (ssname ss1 0))
(vla-getboundingbox solidobj 'minext 'maxext)
(setq minext (vlax-safearray->list minext)
maxext (vlax-safearray->list maxext)
)
(command "_box" "_non" minext "_non" maxext)
)
)
(princ)
)
I thank everyone who can help solve the problem.
I am looking for a solution to this problem, i.e. identifying the maximum volume that contains an irregular 3dsolid rotated in space, i.e. not the classic and simple prisma lined according to the uucs.
to better explain the purpose I attach the photos where:
- white color = 3dsolid reference
- red color = minimum prism containing the 3dsolid reference according to my goal

- colore verde = prisma minimo che contiene il 3dsolid di riferimento costruito con la seguente funzione:(defun c: ()
(if (setq ss1 (ssget "_+.:e:s"(0 . "3dsolid")))))
(progn)
(setq solidobj (vlax-ename->vla-object (ssname ss1 0))
(vla-getboundingbox solidobj 'minext 'maxext)
(setq minext (vlax-safearray->list minext)
maxext (vlax-safearray->list maxext)
)
(command "_box" "_non" minext "_non" maxext)
)
)
(princ)
)

I thank everyone who can help solve the problem.