# 我正在使用 getGeomExtents() 获取边界框，但得到的边界框范围过大，包含了不可见对象。

 1. [FAQ](/cn/faq)
2. »
3. [Vectorization and Visualization in Drawings](/faq/vectorization-and-visualization-drawings)

getGeomExtents() 会忽略实体和图层的可见性，其计算结果包含不可见实体。要获取可见几何体的范围，请参考我们论坛中的以下讨论主题：

[https://forum.opendesign.com/showthread.php?18480-Problem-computing-extents-for-model-space&amp;highlight=abstractViewPE](https://forum.opendesign.com/showthread.php?18480-Problem-computing-extents-for-model-space&highlight=abstractViewPE)

<https://forum.opendesign.com/showthread.php?16342-View-Extents-problem>
