Example #1
0
void DrawCmd::DrawArcTunnel( void )
{
    AcGePoint3d startPt, endPt, thirdPt;
    if( !PromptArcPt( _T( "弧线巷道" ), startPt, endPt, thirdPt ) ) return;

    // 3、创建图元
    ArcTunnel* pArcTunnel = new ArcTunnel( startPt, endPt, thirdPt );  // 弧线巷道

    // 4、初始化并提交到数据库
    if( !ArxUtilHelper::PostToModelSpace( pArcTunnel ) ) delete pArcTunnel;
}
Example #2
0
void DrawCmd::DrawArcTunnel( void )
{
	AcGePoint3d startPt, endPt, thirdPt;
	CString GEName = _T( "弧线巷道" );
	if( !PromptArcPt(GEName , startPt, endPt, thirdPt ) ) return;

	ArcTunnel* pArcTunnel = new ArcTunnel( startPt, endPt, thirdPt );  // 弧线巷道
	
	CheakLayerExit(GEName,7,AcDb::kLnWt030);
	pArcTunnel->setLayer(GEName);
	if( !ArxUtilHelper::PostToModelSpace( pArcTunnel ) ) delete pArcTunnel;
}