Hello there,
Is there a PML function or a method of VOLM object to check if a volume is contained within another one?
Hello there,
Is there a PML function or a method of VOLM object to check if a volume is contained within another one?
Hello, below is an example PML code using PML1 style collection and "exclusive within"
Select an object as CE, then run the code below.
After that, the !result array will contain the VOLM elements that fully enclose your CE.
!result = array()
var !array1 collect all volm within volume ce
!array1.remove(!array1.findfirst(!!ce.string()))
-- handle if ce is also a volm element
handle any
endhandle
do !x values !array1
var !array2 collect ce exclusive within volume $!x
if !array2.size().eq(1) then
!result.append(!x)
endif
enddo
q var !result