Change Part Rev Approved Method

Hi All,
I am trying to change the PartRev.Approved flag to false using the method: Part.ChangePartRevApproved.
My problem is that I don’t know how to indicate which rev when I use the Part.GetByID method.

I see that PartRevSearch has some methods, including GetByID and Update. But it does not have a ChangePartRevApproved method.

What is the right way to use the ChangePartRevApproved method? Should I just use the PartRevSearch methods and an update table by query widget?

Thanks for your time!
Nate

There is a related, although unresolved post about this from a few years ago:

You would use the Part adapter. After the GetByID, check the PartData.PartRev table for the rev you want, set the RowMod to “U” and then run that method. Note that I see in the BO method that it looks for the FIRST modified PartRev,so you need to do this one at a time.

1 Like

Thanks for the reply!
How do you do this? Where can you see what the method does?

1 Like

A disassembler on the BO itself (not the contract) - ILSpy, DNSpy, .Net reflector, etc

1 Like