{"id":9886,"date":"2026-08-21T15:49:48","date_gmt":"2026-08-21T07:49:48","guid":{"rendered":"http:\/\/pipingpig.com\/index.php\/2026\/08\/21\/s3d%ef%bc%8ccodelist%e8%b5%8b%e5%80%bc%e7%a4%ba%e4%be%8b\/"},"modified":"2026-08-21T15:49:48","modified_gmt":"2026-08-21T07:49:48","slug":"s3d%ef%bc%8ccodelist%e8%b5%8b%e5%80%bc%e7%a4%ba%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.pipingpig.com\/index.php\/2026\/08\/21\/s3d%ef%bc%8ccodelist%e8%b5%8b%e5%80%bc%e7%a4%ba%e4%be%8b\/","title":{"rendered":"S3D\uff0cCodeList\u8d4b\u503c\u793a\u4f8b"},"content":{"rendered":"<p>\u5173\u952e\u8bcd\uff1a CodeList\uff0c\u8d4b\u503c\uff0c CodelistItem\uff0c PropertyInformation \uff0c SetPropertyValue\uff0c MetadataManager \u95ee\u9898\u63cf\u8ff0\uff1a\u4f7f\u7528 SetPropertyValue\u5bf9CodeList\u8d4b\u503c\u65f6\uff0c\u672a\u6210\u529f\u3002 \u95ee\u9898\u5904\u7406\uff1a SetPropertyValue\u670917\u79cd\u65b9\u6cd5\u91cd\u8f7d\uff0c\u9009\u62e9\u5408\u9002\u7684\u91cd\u8f7d\u65b9\u6cd5\uff0c\u662f\u8d4b\u503c\u6210\u529f\u7684\u5fc5\u8981\u6761\u4ef6\u3002 \u4e09\u79cd\u4e0d\u540c\u7b7e\u540d\uff0c\u8d4b\u503cCodeList\u7684\u65b9\u6cd5\u3002 \/\/\u7b2c\u4e00\u79cd\u65b9\u6cd5&#8211;&gt;public virtual void SetPropertyValue(PropertyValue oPropertyValue) var oPartOcc = ClientServiceProvider.SelectSet.SelectedObjects[ 0 ]; PropertyValueCodelist propertyValueCodelist = new PropertyValueCodelist ( &quot;IJFabricationInfo&quot; , &quot;FabricationRequirement&quot; , 15 ); oPartOcc.SetPropertyValue(propertyValueCodelist); transactionManager.Commit( &quot;A Method&quot; ); &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \/\/\u7b2c\u4e8c\u79cd\u65b9\u6cd5&#8211;&gt; public void SetPropertyValue(CodelistItem iValue, PropertyInformation oPropInfo) var oPartOcc = ClientServiceProvider.SelectSet.SelectedObjects[ 0 ]; PropertyValue parOccProperty_FabricationRequirement = oPartOcc.GetPropertyValue( &quot;IJFabricationInfo&quot; , &quot;FabricationRequirement&quot; ); PropertyInformation oPropertyInformation = parOccProperty_FabricationRequirement.PropertyInfo; \/\/Item =&gt; Item.Value == 15 Code\u503c\u662f15\u5bf9\u5e94\u7684By Pipe erector for loose material CodelistItem oCodelistItem = parOccProperty_FabricationRequirement.PropertyInfo.CodeListInfo.CodelistMembers.FirstOrDefault(Item =&gt; Item.Value == 15 ); oPartOcc.SetPropertyValue(oCodelistItem, oPropertyInformation); transactionManager.Commit( &quot;B Method&quot; ); &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \/\/\u7b2c\u4e09\u79cd\u65b9\u6cd5&#8211;&gt;public void SetPropertyValue(CodelistItem iValue, string sInterfaceName, string sPropertyName) var oPartOcc = ClientServiceProvider.SelectSet.SelectedObjects[ 0 ]; \/\/\u83b7\u5f97\u5143\u6570\u636e MetadataManager metadata = MiddleServiceProvider.SiteMgr.ActiveSite.ActivePlant.PlantCatalog.MetadataMgr; CodelistInformation oCodelistInformation = metadata.GetCodelistInfo( &quot;FabricationRequirement&quot; , &quot;CMNSCH&quot; ); \/\/Code\u503c\u662f15\u5bf9\u5e94\u7684By Pipe erector for loose material CodelistItem oCodelistItem = oCodelistInformation.GetCodelistItem( 15 ); oPartOcc.SetPropertyValue(oCodelistItem, &quot;IJFabricationInfo&quot; , &quot;FabricationRequirement&quot; ); transactionManager.Commit( &quot;C Method&quot; );<\/p>\n<p><video controls preload=\"metadata\" style=\"width:100%;max-width:860px;border-radius:8px\" src=\"https:\/\/www.pipingpig.com\/wp-content\/uploads\/2026\/08\/ersrc_v\/37_S3D\uff0cCodeList\u8d4b\u503c\u793a\u4f8b.mp4\"><\/video><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u952e\u8bcd\uff1a CodeList\uff0c\u8d4b\u503c\uff0c CodelistItem\uff0c PropertyInformation \uff0c S [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9885,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-9886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/posts\/9886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/comments?post=9886"}],"version-history":[{"count":0,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/posts\/9886\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/media\/9885"}],"wp:attachment":[{"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/media?parent=9886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/categories?post=9886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/tags?post=9886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}