Mat Kirkland delivers a small but powerful routine that will detect AutoCAD Civil 3D surfaces in a given drawing file. You'll probably want to use this as part of a larger routine. Mat's function requires one argument, and that is a reference to an ActiveX document which at the most basic level can be obtained with the function (vla-get-activedocument (vlax-get-acad-object)). If one or more surfaces are found, this function returns a grouped pair, where the first element is an integer representing the number found, and the second element is a list of the Vla-Objects found |