Personalizzazione di base > Windchill Customization Basics > Customization Tutorial > Example: Create a modeled Object with Derived Attributes from modeled Master Class
  
Example: Create a modeled Object with Derived Attributes from modeled Master Class
Consider an example of a modeled type ext.ts.part.TSPart holding an attribute masterAtt1 that is derived from master attribute ext.ts.part.TSPartMaster>>masterAtt1.
derivedProperties={
@DerivedProperty(name="masterAtt1", derivedFrom="master>masterAtt1")
}
In the <WT_HOME>\codebase\LogicalAttributes.xml, create a new entry <Class name="ext.ts.part.TSPart">.
1. Add a Logical Form of the derived attribute.
2. Duplicate every entry from wt.part.WTPart which involve MBA|masterReference^WCTYPE|wt.part.WTPartMaster~MBA.
3. For those duplicated entries, replace wt.part.WTPartMaster with ext.ts.part.TSPartMaster. For example:
<Class name="ext.ts.part.TSPart">
<!-- custo derived attributes -->
<Property>
<LogicalForm>masterAtt1</LogicalForm>
<ExternalForm>MBA|masterReference^WCTYPE|ext.ts.part.TSPartMaster~MBA|masterAtt1</ExternalForm>
</Property>

<!-- duplicates from wt.part.WTPart which involve MBA|masterReference^WCTYPE|wt.part.WTPartMaster -->

<Property>
<LogicalForm>defaultTraceCode</LogicalForm>
<ExternalForm>MBA|masterReference^WCTYPE|ext.ts.part.TSPartMaster~MBA|defaultTraceCode</ExternalForm>
</Property>
...
</Class>
Customization Tutorial