zcmfk 发表于 2010-11-9 10:35:00

如何取得某图层的默认线型?

<p>&nbsp;&nbsp;&nbsp;&nbsp;<font size="3"> 各位学长,我又碰到新问题了。在岗位工作中,我需要根据图纸的某图层名来取得该图层的默认线型:</font></p>
<p><font size="3">&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;Dim acLyrTblRec As LayerTableRecord<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If acLyrTbl.Has(acEnt.Layer) = True Then &nbsp;_&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;acLyrTblRec = acTrans.GetObject(acLyrTbl(acEnt.Layer), OpenMode.ForWrite)</font></p>
<p><font size="3"></font>&nbsp;</p>
<p><font size="3">但我只能取得</font><font size="3">&nbsp; acLyrTblRec.LinetypeObjectId,却无法转化为线型名称,请各位帮忙!谢谢!</font></p>

雪山飞狐_lzh 发表于 2010-11-9 11:21:00

<p>dim lttr as LinetypeTableRecord&nbsp;= acTrans.GetObject(acLyrTblRec.LinetypeObjectId, OpenMode.ForWrite)</p>
<p>&nbsp;</p>
<p>lttr.name<br/>&nbsp;</p>

chpmould 发表于 2010-11-9 12:21:00

我也学习一下

zcmfk 发表于 2010-11-9 13:02:00

谢谢了。
页: [1]
查看完整版本: 如何取得某图层的默认线型?