You’re encountering a classic requirement-to-CAD linking issue that involves all three focus areas: linking mechanism, indexing, and object reference validation. Here’s the comprehensive solution:
Requirement-to-CAD Linking Configuration:
The linking service uses a separate object registry that must be synchronized with your CAD objects. First, verify the linking registry is properly configured:
LinkRegistry registry = RequirementLinkHelper.getRegistry();
boolean isRegistered = registry.isRegistered("wt.part.WTPart");
// Should return true
If false, you need to register the WTPart type with the linking service.
Indexing Issues Resolution:
The problem isn’t just the search index - it’s the linking service’s internal index. The requirement linking service maintains its own object cache that needs synchronization:
windchill ext.requirement.RequirementLinkService -reindex
windchill ext.requirement.RequirementLinkService -syncRegistry
Run both commands to rebuild the linking service’s object registry and synchronize it with the current CAD object database.
Object Reference Validation Fix:
The critical issue is the object reference format mismatch. Your error shows ‘OR:’ format (Object Reference) but Windchill 11.2 M030 should use ‘VR:’ format (Versioned Reference) for parts. Update the linking service configuration:
// In RequirementLinkConfig.xml
<objectReferenceResolver class="wt.vc.VersionedReferenceResolver">
<supportedTypes>
<type>wt.part.WTPart</type>
</supportedTypes>
</objectReferenceResolver>
The linking service was using the legacy ObjectReferenceResolver instead of VersionedReferenceResolver, causing it to generate incorrect object references that the validation step couldn’t resolve.
Complete Implementation:
- Stop the Windchill method server
- Update RequirementLinkConfig.xml to use VersionedReferenceResolver
- Register WTPart type with the linking service if not already registered
- Restart the method server
- Run the reindex and syncRegistry commands
- Clear the linking service cache: `windchill ext.requirement.RequirementLinkService -clearCache
- Test linking on a few parts to verify resolution
Verification Steps:
After implementing the fix, verify each component:
- Check that new links use VR: format in the database
- Confirm the linking registry shows WTPart as registered
- Verify the object reference resolver is using the versioned resolver
- Test linking with both newly created and existing CAD objects
The root cause is that the requirement linking service wasn’t updated to use the correct object reference format for your Windchill version. Once you switch to the VersionedReferenceResolver and synchronize the linking registry, your requirement-to-CAD traceability should work correctly.
This draft is based on general Windchill knowledge. It has not been verified against your specific version and environment. Practitioners: verify the steps and share your experience below.