Bad objects, Duplicate Objects, and Audit in RhinoCommon

How do I go about having the functionality of the following commands in RhinoCommon? I would like to run these checks on the RhinoDoc object available to my rhino plugin.

  1. SelDup
  2. SelDupAll
  3. SelBadObjects
  4. Audit

To elaborate, I know I can run commands SelDup, SelDupAll, and SelBadObjects from my rhino plugin. They all select objects in the model. I am interested knowing if my model has any duplicate objects and bad objects so that I can run these commands to show those objects to the user.

For the Audit command, is there a way to access the text of the result?

Hi @Devang_Chauhan,

There are no RhinoCommon equivalents to the SelDup and SelDupAll commands.

For SelBadObjects, just iterate all of the objects in the document and check their RhinoObject.IsValid property.

The Audit command uses CRhinoDoc::Audit. So this could be exposed to RhinoCommon. But it’s currently only available to C++ plug-ins.

– Dale

1 Like

@dale Can you please add it to Rhino roadmap the RhinoCommon functionality to access the outcome of audit?

RH-86581 is fixed in Rhino 8 Service Release 19 Release Candidate