查看单个帖子
旧 2009-04-21, 05:09 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 用c#怎么填充hatch,高手给段代码吧!!谢谢

用c#怎么填充hatch,高手给段代码吧!!谢谢
www.dimcax.com
用c#怎么填充hatch,高手给段代码吧!!谢谢
我现在在用c#填充,但不会,请高手,指点!!
database db = hostapplicationservices.workingdatabase; transaction trans = db.transactionmanager.starttransaction(); hatch hatch = new hatch(); objectidcollection objidcollection = new objectidcollection(); objidcollection.add( object_id ); hatch.sethatchpattern(hatchpatterntype.predefined, "solid"); hatch.colorindex = 4; blocktable btable = (blocktable)trans.getobject(db.blocktableid, openmode.forread); blocktablerecord btrecord = (blocktablerecord)trans.getobject(db.currentspaceid, openmode.forwrite); btrecord.appendentity(hatch); trans.addnewlycreateddbobject(hatch, true); hatch.associative = true; hatch.color = (color)color.fromrgb(252, 184, 82); hatch.appendloop(hatchlooptypes.external, objidcollection); trans.commit();
谢谢! 用c#如何把填充样式装入到当前文档中? 特别是自定义的样式!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)