Is there any way to get the position of a specified AcadAttribute in a specified title block in an existing drawing with C#?
Edit : My code is something like bellow,
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)
}
}
I want to insert an image exactly where the myAtt attribute is exists, and it is the reason of why i need the position of the AcadAttribute.