当前布局是否在模型空间
bool IsModelSpace() const;
例如:判断当前是否处在模型空间
BOOL IsModelSpace() { McDbObjectPointer<McDbLayout> spLayout(Mx::mcdbHostApplicationServices()->layoutManager()->currentLayoutId(),McDb::kForRead); if(spLayout.openStatus() != Mcad::eOk) return FALSE; if(spLayout->IsModelSpace() ) { return TRUE ; } return FALSE; }