添加linetype问题.(dashed显示是实线)

添加linetype问题.(dashed显示是实线)

向线型表里添加dashed,没有虚线的效果,在linetype看到的dashed是实线,怎么处理,代码如下:
acdblinetypetable *plinetypetbl;
acdbobjectid linetypeid;
acdbhostapplicationservices()->workingdatabase()->getlinetypetable(plinetypetbl,acdb::kforwrite);
if (plinetypetbl->has(_t("dashed")))
{
acutprintf(_t("\n已经有了."));
}
else
{
acdblinetypetablerecord *plinetypetblrcd=new acdblinetypetablerecord;
plinetypetblrcd->setname(_t("dashed"));
acdbobjectid linetypercdid;
plinetypetbl->add(linetypercdid,plinetypetblrcd);
plinetypetblrcd->close();
}
plinetypetbl->close();
漂亮 ,来支持一下。
添加线型的代码不对,你所做的仅仅是在线形表增加了一种名字为 dashed 的线形而没有定义这个线形是什么,肯定就是默认的 continuous 线了 啊
楼上的指点一下嘛
acdbhostapplicationservices()->workingdatabase()->loadlinetypefile() 用这个函数试试
谢谢版主啊。。。。前提线文件形要存在啊
为了未来