Shrink trimmed srf reloaded

 From:  Michael Gibson
7983.10 In reply to 7983.1 
Hi Marco,

> I've written a modified version of the "shrinktrimmedsrf" command, that should simply select again all
> the input objects at the end of the job.
>
> Why it doesn't work ? Am i missing something ?

The way shrinktrimmedsrf works is that it deletes the input objects and inserts new objects that have been shrunk. The original input objects are no longer in the geometry database after the factory has run, that's why you are not getting them selected.

If you want to keep the input objects, you'd need to call factory.calculate() (like Karsten shows above) that just generates the output objects (which are not in the geometry database, you would need to add them in yourself if you want them to appear) and does not disturb the input objects. Basically running factory.commit() will make things behave the same as the regular ShrinkTrimmedSrf command, which removes the original object and replaces it with a new shrunken one.

Or did you mean you wanted to select the _output_ objects, not the input objects like you wrote?

- Michael