Hi.
Can't you use this? When you are looping through the paragraph units (in the project and the translatable files, that is)...
// looping through the whole paragraph unit
foreach (var segmentPair in paragraphUnit.SegmentPairs)
{
// Determine what the confirmation status of the (currently processed) segment pair is...
ConfirmationLevel MyConfLevel = segmentPair.Properties.ConfirmationLevel;
// Determine what the lock status of the (currently processed) segment pair is...
bool MySegmntLockStatus = segmentPair.Properties.IsLocked;
//skip if locked and checkbox is set...
if (MySegmntLockStatus == true)
{}
else
{
//This is where you need to do what you need to do when segment inside document inside project is not locked
}
...
etc.
Make sure you have the required Sdl.FileTypeSupport.Framework.... included
Patrick