/* 文件名称:SectionOpening.h 功 能:剖面门窗,门窗过梁声明 作 者:刘春峰 完成日期:2004年8月10日 */ #pragma once static BOOL g_bHatchGrider = TRUE; class CSectionOpening { public: CSectionOpening(void); ~CSectionOpening(void); BOOL InsertOpening(Entity §Wall1, XPoint ptres); BOOL ReplaceOpening(); XString m_sBlockName; private: BOOL GetHoleWidth(double &width, Entity §Wall2, const Entity §Wall1, const XPoint &ptres); BOOL GetHoleHigh(double &high, XPoint &ptFirst, XPoint &ptSecond, const Entity &entName); BOOL ComparePoint(const Entity §Wall1, const Entity §Wall2, const XPoint &ptFirst, const XPoint &ptSecond); BOOL BreakWall(Entity §Wall1, Entity §Wall2, XPoint ptFirst, XPoint ptSecond); BOOL OpenDrawingLib(XString &sBlockName); BOOL GetInsertPoint(XPoint &ptIns, double &holeAngle, const XPoint &ptFirst, const Entity §Wall2); BOOL InsertBlock(const XPoint &ptIns, const double &width, const double &high, const double &angle, const XString &sBlockName); BOOL ReplaceBlock(const XString &sBlockName, AcDbObjectId &idOld); BOOL WriteBlockName(); };