Handle deleted components without a purge

export
components

#1

Hi, I am searching a way to handle deleted components in SketchUp C API, but I cannot find a way to do that.

Of course, if the unused component of SketchUp is purged, the components do not appear in the skp file, but if I do not purge the unused components the components appear in the skp file, there is a way (a function or something) to know if the component is in use or not?

Tank’s a lot!
Cheers.


#2

SUComponentDefinitionRelease()

SUComponentDefinitionGetNumInstances()

SUComponentDefinitionGetNumUsedInstances()


#3

Thanks @DanRathbun I’m going to try with these functions.

There are any examples?


#4

Examples are all in the SDK package.