有沒有什麼辦法可以獲取指定的AcadAttribute在C#中現有圖形中的指定標題塊中的位置?c#中的AutoCad塊的工作
編輯:我的代碼是像波紋管,
AcadBlock myBlock = myAcadDoc.Database.Blocks.Items(block_Name);
AcadAttribute myAtt;
foreach(AcadEntity entity in myBlock)
{
myAtt = entity as AcadAttribute;
if(myAtt == null) continue;
if(myAtt.TagString == "Specified_String")
{
//Now i want to insert an image exactly where the myAtt attribute is exists
myAcadDoc.Database.ModelSpace.AddRoster("My image path", myAtt.Position /*myAtt does not have Position property*/, 50.0, 0)
}
}
我想在邁亞特屬性的存在是爲了準確地插入圖像,這就是爲什麼我需要的AcadAttribute的位置的原因。
任何努力這麼遠? –
我有屬性作爲一個AcadAttribute,我已經檢查了它的所有屬性,但沒有一個返回該位置。 –
發佈你到目前爲止的內容。看看你正在採取什麼方法將是有益的。出於好奇,你通過Interop做這件事的任何理由? –