SelectionSet sSet = acSSPrompt.Value;
ObjectId[] Ids = sSet.GetObjectIds();
for (int i = 0; i < Ids.Length; i++)
{
//Entity ent = Ids[i].GetObject(OpenMode.ForWrite) as Entity;
var mybom = new Object();
mybom = Ids[i].GetObject(OpenMode.ForWrite);
string bomName = string.Empty;
var BOM = new McadBOM();
//BOM = bommgr.GetBOMTable(mybom, out bomName) as McadBOM;
foreach (McadBOMItem bomItem in BOM.Items)
{
editor.WriteMessage(bomItem.Data);
}
}
这个选择集里的对象就是一个明细表,但是转换完后对象就是dll了