Assign an Option Set
Load the com.ptc.windchill.option.model.RegistreOptionSetLink object in the Windchill database using Windchill loader. With this association, the option set can be associated with OptionSetAssignable objects such as WTPatMaster, PDMLinkProduct, WTLibrary. It can then be used as the assigned option set.
XML Format
<csvRegisterOptionSet handler="com.ptc.windchill.option.load.Loader.registerOptionSet" >
<csvname>option set name</csvname>
<csvoptionSetContainerPath>container of the option set</csvoptionSetContainerPath>
</csvRegisterNavigationFilterTemplate >
Table 19. Attributes for csvRegisterOptionSet
Attribute
Description
Required or Optional?
csvname
Option set name
Required
csvstate
Lifecycle state
Optional
csvoptionSetContainerPath
Path to the context where the option set resides
Optional
csvOptionSetAssignableClass
Class name for the option set assignable, for example, wt.pdmlink.PDMLinkProduct or wt.part.WTPartMaster
Optional
csvOptionSetAssignableNumber
Number for the assignable, for example, part number
Optional
Example
<csvRegisterOptionSet handler="com.ptc.windchill.option.load.Loader.registerOptionSet">
<csvname>Colour Pallet</csvname>
</csvRegisterOptionSet>
這是否有幫助?