Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Version: Windchill 12.1
Use Case: Mapping of attributes from CAD drawing (Assosiation: Calculated)
Description:
We have different parameters/attributes defined in the CAD and in the Drawing - The attributes are mapped to the WTpart, but are only synced from the CAD part (as it is associated as Owner). Association: Calculated does not show up on any of the lists of mapping options.
Is it possible to set that the attributes should be mapped from a "Calculated"?
Is there another workaround (besides putting all the attributes/parameters in the CAD)?
Solved! Go to Solution.
Hi @JM_12529808
Here is an example of the correct mapping from WTP to CAD Model to Drawing
built@wt.epm.build.EPMBuildHistory~builtBy^wt.epm.EPMDocument~masterReference^wt.epm.EPMDocumentMaster~references@wt.epm.structure.EPMReferenceLink~referencedBy^com.aveng.DefaultEPMDocument~DRWDRW
use the internal CAD default type form type and attribute management where the IBA is added.
PertrH
You can create an alias attribute to map information from the CAD Drawing.
You have to just understand the links between WTPart to CAD model and from CAD model to reference drawing.
It is also not ideal, because there can be more iterations that shows the value.
try to find how to create a mapping for alias on a Knowledge base. . WTP to CADModel from CADModel to CADDrawing
PetrH
Hi PetrH
Thank you for responding.
Do I understand correctly that you suggest to have an attribute on the CAD part that is an Alias to a attribute on the Drawing?
I don't think that is possible in the implementation we currently have, as the CAD part and Drawing uses the same Subtype of EPM Document. If I were to implement your solution, it would require using two different subtypes; is that correctly understood?
I know we technically could keep all the attributes / parameters in the CAD and the use them on the drawing, but we would prefer not to.
Hi @JM_12529808
No, you can use same type.
There is a link reference that is used to reference CAD Model to CAD Drawing.
Alias attribute can handle it
Also I suggest to create the alias on the WTPart.
You just have to handle the mapping from the WTP to the CADModel then by reference to the Drawing.
PetrH
Hi PetrH
Thanks for the explanation - I have read quite extensively up on the alias mapping - which is a little hard to wrap ones head around at first.
I have arrived at setting up an Alias on the WTpart that was supposed to map from the "CAD Document"
It looks like this (mostly based on CS131355:
built@wt.epm.build.EPMBuildHistory~builtBy^com.company.DefaultEPMDocument~IBANameOfAttributeBut this still maps from the "CAD Part" and not the "CAD Document". As noted both "CAD Part" and "CAD Document" is of the same subtype. The only difference (besides the actual file) is the "Association" which for the "CAD Part" is owner and for the "CAD Drawing" is "Calculated".
Do you know any way that I can pinpoint the "CAD Document" instead of the "CAD Part"?
Hi @JM_12529808
Here is an example of the correct mapping from WTP to CAD Model to Drawing
built@wt.epm.build.EPMBuildHistory~builtBy^wt.epm.EPMDocument~masterReference^wt.epm.EPMDocumentMaster~references@wt.epm.structure.EPMReferenceLink~referencedBy^com.aveng.DefaultEPMDocument~DRWDRW
use the internal CAD default type form type and attribute management where the IBA is added.
PertrH
Hi @HelesicPetr
Thanks for the explanation - it works - a little to well 🙂 It gives a list of the same attribute for all the iterations. I have tried different flavors of your example, but none of them got only the latest reference. This CS270036 indicates that it is not possible - Do you know any way to fix this?
Thanks for all the help
Hi @JM_12529808
It is normal and common behavior. It works as it works.
There is no OOTB solution.
but you can create own DataUtility that do exactly what you need.
Yes you have to customize the system and write code.
PetrH
Thanks for the clarification - and your help in general.
calculated association is not persisted in the DB, hence this can't be achieved with alias https://www.ptc.com/en/support/article/CS21363
