Set annotative size to "NO" (use com ACAD 2014 Type Library)

时间:2015-06-30 13:25:15

标签: c# com autocad

I use com AutoCAD 2014 Type Library {D5C3CB6F-AA0A-4D45-B02D-CF2974EFD4BE}. Is it possible set annotative size to "NO"?

AutoCAD.AcadApplication app = new AutoCAD.AcadApplication();
var docs = app.Documents;
var doc = docs.Open(dwg.FullName);
int blockCount = doc.Blocks.Count;
for (int i = 0; i < blockCount; ++i)
{
  AutoCAD.AcadBlock block = doc.Blocks.Item(i);
  int entityCount = block.Count;
  for (int j = entityCount - 1; j >= 0; --j)
  {
    AutoCAD.AcadEntity entity = block.Item(j);
    var obj = doc.HandleToObject(entity.Handle);
    /* I try set annotative here */
    obj./*???Annotative???*/ = false;
  }
}

0 个答案:

没有答案