@@ -3168,7 +3168,7 @@ private void AddAttributeData( AttributeFamilyType attribute, UANode uaNode )
31683168
31693169 AddEnumerationFieldDefinition ( attribute , uaNode ) ;
31703170
3171- AddOptionSetFieldDefintion ( attribute , uaNode ) ;
3171+ AddOptionSetFieldDefinition ( attribute , uaNode ) ;
31723172
31733173 AttributeType nodeIdAttribute = AddModifyAttribute ( attribute . Attribute , "NodeId" , "NodeId" ,
31743174 new Variant ( uaNode . DecodedNodeId ) ) ;
@@ -3392,7 +3392,7 @@ private void AddEnumerationFieldDefinition(AttributeFamilyType attribute, UANode
33923392 {
33933393 AttributeType fieldAttribute = new AttributeType ( new System . Xml . Linq . XElement ( defaultNS + "Attribute" ) ) ;
33943394
3395- fieldAttribute . RecreateAttributeInstance ( enumFieldSource ) ;
3395+ RecreateAttributeInstance ( enumFieldSource , fieldAttribute ) ;
33963396 fieldAttribute . Name = fieldDefinition . Name ;
33973397
33983398 // Remove the Name
@@ -3418,7 +3418,7 @@ private void AddEnumerationFieldDefinition(AttributeFamilyType attribute, UANode
34183418 }
34193419 }
34203420
3421- private void AddOptionSetFieldDefintion ( AttributeFamilyType attribute , UANode uaNode )
3421+ private void AddOptionSetFieldDefinition ( AttributeFamilyType attribute , UANode uaNode )
34223422 {
34233423 UADataType optionSetNode = uaNode as UADataType ;
34243424 if ( optionSetNode != null &&
@@ -3434,7 +3434,7 @@ private void AddOptionSetFieldDefintion( AttributeFamilyType attribute, UANode u
34343434 AttributeType optionSetFields = new AttributeType (
34353435 new System . Xml . Linq . XElement ( defaultNS + "Attribute" ) ) ;
34363436
3437- optionSetFields . RecreateAttributeInstance ( optionSetFieldDefinition as AttributeFamilyType ) ;
3437+ optionSetFields . RecreateAttributeInstance ( optionSetFieldDefinition ) ;
34383438 optionSetFields . Name = "OptionSetFieldDefinition" ;
34393439 optionSetFields . AdditionalInformation . Append ( OpcUaTypeOnly ) ;
34403440
@@ -3452,6 +3452,7 @@ private void AddOptionSetFieldDefintion( AttributeFamilyType attribute, UANode u
34523452 "Value" , "Int32" , new Variant ( fieldDefinition . Value ) ) ;
34533453
34543454 RemoveUnwantedAttribute ( valueAttribute , "NodeId" ) ;
3455+ RemoveUnwantedAttribute ( fieldAttribute , "IsAbstract" ) ;
34553456 RemoveUnwantedAttribute ( fieldAttribute , "ValidBits" ) ;
34563457 RemoveUnwantedAttribute ( fieldAttribute , "NodeId" ) ;
34573458
0 commit comments