How to get the solving status of the part component in the assembly?

According to the API documentation, the property Solving::IComponent2 only applies to subassembly components, not part components. If you try to get the Solve as option of a part component, this property returns -1.

Is there any other method to get the solving status (rigid or flexible) for part components?

Source: Solving::IComponent2

How about, API mentors?:
@Gupta9665
@AmenJlili
@BigCrazyAl
@PeterBrinkhuis

You can use swComponent.IsEnvelope method to get the envelope state of the component (assy or part).

And solving state is to change between flexible or rigid for sub assemblies only. Use this parameter only if you want to change the state of an sub assembly, else you can leave it empty for the parts.