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
The rigid or flexible option is only available for sub assemblies, and not for parts. So there would be no API to get this for Parts. What is you end goal? Are you looking to get the flexible parts, and remove the state of flexible parts?
– Gupta9665I'm running a batch toggle command that excludes part/subassembly from BOM and another one that sets as envelope. It's a two state command: 1) If there's no selection, then it shows (by selection) all components set as excluded from BOM. 2) It toggles the exclusion state for pre selected components. For changing the envelope state the method CompConfigProperties6::IAssemblyDoc demands the parameter for solving state.
– Alexandre