lay_t_p,
sty_t_p,
ltp_t_p,
viw_t_p,
blk_p,
dwg_l;
FILE *tmpf;
fclose(dwgt);dwgt=fopen("dwg.tmp","rb");
ent_l=filelength(fileno(dwgt))-0x28;
fseek(dwgh,0x18,SEEK_SET);
filpcp(ent_l); /* tab_p */
filpcp(ent_l); /* blk_d_p */
filpcp(0); /* unknown */
filpcp(ent_l); /* dwg_l */
filpcp(0);filcpy(6); /* unknown */
filpcp(ent_l);filcpy(6); /* blk_t_p */
filpcp(ent_l);filcpy(6); /* lay_t_p */
filpcp(ent_l);filcpy(6); /* sty_t_p */
filpcp(ent_l);filcpy(6); /* ltp_t_p */
filpcp(ent_l);filcpy(6); /* vie_t_p */
filcpy(0x4AE); /* System Variable */
tmpf=dwgh; dwgh=dwgt;
fseek(dwgh,0,SEEK_SET);
filcpy(ent_l+0x28);
dwgh=tmpf;
fseek(dwgh,0x28,SEEK_CUR);
filecp();
fclose(dwgh);fclose(tmpf);fclose(dwgt);fclose(dwgf);
/* unlink("dwg.tmp"); */
}
void Dline(POINT pt1,POINT pt2)
{
char str[8]={0x01,0x04,0x28,0,0,0,0,0};
str[4]=D_Layer;
fwrite(str,8,1,dwgt);
fwrite(&pt1,16,1,dwgt);
fwrite(&pt2,16,1,dwgt);