44 lines
945 B
C++
44 lines
945 B
C++
#include "stdafx.h"
|
|
#include "CThunderProofNetDraw2d.h"
|
|
#include "AecDbEwEquipment.h"
|
|
|
|
ACRX_CONS_DEFINE_MEMBERS(CThunderProofNetDraw2d, AecDbXDraw, 0);
|
|
|
|
CThunderProofNetDraw2d::CThunderProofNetDraw2d()
|
|
{
|
|
}
|
|
|
|
CThunderProofNetDraw2d::~CThunderProofNetDraw2d()
|
|
{
|
|
}
|
|
|
|
Acad::ErrorStatus CThunderProofNetDraw2d::Edit()
|
|
{
|
|
AcDbObjectId id;
|
|
GetAttach(id);
|
|
|
|
AcDbEntity* pEnt(NULL);
|
|
if (Acad::eOk == acdbOpenAcDbEntity(pEnt, id, AcDb::kForWrite))
|
|
{
|
|
double dEntL = 0.0, dEntW = 0.0;
|
|
AcDbExtents ext;
|
|
AcGePoint3d ptIns;
|
|
AcGeVector3d vtDir;
|
|
|
|
AecDbEwEquipment* pEqu = AecDbEwEquipment::cast(pEnt);
|
|
if (!pEqu)
|
|
{
|
|
return Acad::eOk;
|
|
}
|
|
pEqu->getGeomExtents(ext);
|
|
dEntL = ext.maxPoint().x - ext.minPoint().x;
|
|
dEntW = ext.maxPoint().y - ext.minPoint().y;
|
|
pEqu->GetInsert(ptIns, vtDir);
|
|
|
|
double dTopW = 0, dBomW = 0, dH = 0, dSpace = 0, dt = 0, dL = 0, dSH = 0;
|
|
CString sSteelGr = _T(""), sProvider = _T("");
|
|
|
|
}
|
|
return Acad::eOk;
|
|
}
|