- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello friends;
How can I get the Total volumes of a 3Dsolid object or objects with the message box?
I bought the Quantities, but how can I get the Volumes?
Thanks in advance to the helper.
this.Hide();
Editor ed = aCap.DocumentManager.MdiActiveDocument.Editor;
Adb.TypedValue[] filitre = new Adb.TypedValue[1];
filitre.SetValue(new Adb.TypedValue((int)Adb.DxfCode.Start, "3DSOLID"), 0);
SelectionFilter acSelFtr = new SelectionFilter(filitre);
var selection = ed.GetSelection(acSelFtr);
if (selection.Status != PromptStatus.OK)
{
ed.WriteMessage("\n\nKatı obje (3DSOLID) Bulunamadı.\n");
return;
}
if (selection.Status == PromptStatus.OK)
{
SelectionSet acsset = selection.Value;
MessageBox.Show("seçilen 3dsolid sayısı: " +
acsset.Count.ToString());
}
Solved! Go to Solution.