Question
Cannot link part and document with ConfigurableDescribeLink without document getting iterated.
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.7
We are trying to link a part and a document using Supplementary Link, subtype of Configurable Describe Link, with a stand-alone utility. When we do the link, the document always gets iterated. Is there a way to do it without the document getting iterated?
We have done similar link, using Reference Link and Describe Link, with no issues.
We have tried several fixes, but have found no solution.
Here are some of the errors that I faced using different solutions:
"WorkInProgressException: Part should be checked out and cannot be modified".
"Configurable Link should be Stored, not inserted."
And more...
The current code that I'm using is this:
theDocument = (WTDocument) ContentServerHelper.service.updateHolderFormat(theDocument);
thePart = (WTPart) PersistenceHelper.manager.refresh(thePart);
TypeIdentifier typeIdentifier = TypeIdentifierHelper.getTypeIdentifier(SUPPLEMENTARY_LINK_TYPE_DEFAULT_VALUE);
WTCollection configurableDescribeLink = ConfigurableLinkHelper.service.createConfigurableDescribeLink(
new ReferenceFactory().getReference(theDocument),
typeIdentifier,
CollectionsHelper.singletonWTList(thePart),
false);
This links the part and the document in "Supplementary Non-CAD Documents", but iterates the document.
We are trying to link a part and a document using Supplementary Link, subtype of Configurable Describe Link, with a stand-alone utility. When we do the link, the document always gets iterated. Is there a way to do it without the document getting iterated?
We have done similar link, using Reference Link and Describe Link, with no issues.
We have tried several fixes, but have found no solution.
Here are some of the errors that I faced using different solutions:
"WorkInProgressException: Part should be checked out and cannot be modified".
"Configurable Link should be Stored, not inserted."
And more...
The current code that I'm using is this:
theDocument = (WTDocument) ContentServerHelper.service.updateHolderFormat(theDocument);
thePart = (WTPart) PersistenceHelper.manager.refresh(thePart);
TypeIdentifier typeIdentifier = TypeIdentifierHelper.getTypeIdentifier(SUPPLEMENTARY_LINK_TYPE_DEFAULT_VALUE);
WTCollection configurableDescribeLink = ConfigurableLinkHelper.service.createConfigurableDescribeLink(
new ReferenceFactory().getReference(theDocument),
typeIdentifier,
CollectionsHelper.singletonWTList(thePart),
false);
This links the part and the document in "Supplementary Non-CAD Documents", but iterates the document.

