Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Bug in Proxies for Rigid Groups?

huetter_m
Explorer

Bug in Proxies for Rigid Groups?

huetter_m
Explorer
Explorer

I've been trying to suppress all the rigid groups in an assembly like so:

    for rigidGroup in rootComp.allRigidGroups:
        rigidGroup.isSuppressed = True

unfortunately this doesn't work for secondary occurrences of components.

minimal example here with two instances of a component and a rigid group comprising of the two subComponents:

huetter_m_0-1723124782305.png

this is the result after the script runs... the first "Rigid Group 2" is suppressed, while the Rigid Group 2 of the second occurrence Component1:2 does not get affected.

the iteration passes both rigid groups and I've actually checked, that the assemblyContext of them differ to the correct occurrence.

I've also tried to iterate over all of the occurrences and access the rigid group that way:

for occurrence in allOccurrences:
    for rigidGroup in occurrence.rigidGroups:
        rigidGroup.isSuppressed = True

same result. I then tried with this in the inner loop:

rigidGroup.nativeObject.createForAssemblyContext(occurrence).isSuppressed = True

which failed with:
RuntimeError: 3 : object does not belong to the occurrence's component

 

Any ideas?

0 Likes
Reply
259 Views
1 Reply
Reply (1)

huetter_m
Explorer
Explorer

Is this even the proper place to report bugs?

Is anyone from Autodesk here and reading this?

0 Likes