⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arxclip.h

📁 这是书上的代码
💻 H
字号:
//arxhide.h

#include<aced.h>
#include<string.h>

#include<adslib.h>
#include<dbents.h>
#include <stdio.h>
#include <math.h>
#include <dbgroup.h>

const double DELTA = 0.000001;

struct resbuf *entitem(struct resbuf *rchain,int gcode)

{
	 struct resbuf *eb;
	 for(eb=rchain;eb!=NULL;eb=eb->rbnext) {
		 if(eb->restype==gcode)
			 return eb;
	 }
	 return NULL;
}

void getype(ads_name ent,char type[10])//获得实体的类型

{
	struct resbuf *eb,*ebuf;
	ebuf=acdbEntGet(ent);
	eb=entitem(ebuf,0);
	strcpy(type,eb->resval.rstring);
	ads_relrb(ebuf);
}

//函数原型
AcDbEntity *selectEntity(AcDbObjectId &eId,ads_name ent,AcDb::OpenMode openMode);
int inwindow(ads_point pt,ads_point boundarypt,ads_name windowent);


AcDbObjectId createLine(AcGePoint3d startPt,AcGePoint3d endPt);
void windowclip(int hide_clip);
static void sort_points(AcGePoint3dArray pts,AcGePoint3dArray post_pts);
void windowcliping();
void windowhide();

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -