Use Frame Filters
In a Unicode database environment, loading frames gets all frames in all languages. This can cause conflicting names (because the frames have the same name but different locale attributes), and there may be too many to show in Creo Elements/Direct Drafting or Creo Elements/Direct Annotation. Frame filters allow you to reduce the number of frames that the users see. They have no effect in a non-Unicode database environment.
There are three frame filters shipped as part of Creo Elements/Direct Model Manager:
1. com.osm.biz.util.FilterMultiLocaleKeepSpecifiedLocale
Keep only the frames with the specified locale. Locale is specified using the 2-character ISO language definition. See the example (below).
2. com.osm.biz.util.FilterMultiLocaleKeepEnglish
If you have multiple frames with the same name but different locales, only the English locale frames will be passed through this filter (if there are any English frames).
3. com.osm.biz.util.FilterMultiLocaleKeepCurrent
If you have multiple frames with the same name but different locales, and one of those locales matches the locale that you're running in, that frame will be passed through this filter.
Frames with no locale are passed through this filter.
If there are no frames in your locale, all frames are passed through this filter.
Example
See wmconf.xml for the default configuration. This example shows the usage of a locale-specific filter (in this case, German):
<FrameFilters>
<LocaleFilter>
<FilterClass>com.osm.biz.util.FilterMultiLocaleKeepSpecifiedLocale</FilterClass>
<Parameters>
<Locale>de</Locale>
</Parameters>
</LocaleFilter>
</FrameFilters>
Was this helpful?