{"id":340,"date":"2025-10-31T03:00:00","date_gmt":"2025-10-30T19:00:00","guid":{"rendered":"http:\/\/pipingpig.com\/index.php\/2025\/10\/31\/smart3d-0685\/"},"modified":"2026-08-20T19:50:14","modified_gmt":"2026-08-20T11:50:14","slug":"smart3d-0685","status":"publish","type":"post","link":"https:\/\/www.pipingpig.com\/index.php\/2025\/10\/31\/smart3d-0685\/","title":{"rendered":"Smart 3D\u67e5\u8be2\u793a\u4f8b\u4ee3\u7801"},"content":{"rendered":"<div class=\"content\">\n<section style=\"text-align: center\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100023588\" data-s=\"300,640\" data-src=\"https:\/\/www.pipingpig.com\/wp-content\/uploads\/2026\/08\/0685_img_0000.png\" data-type=\"png\" src=\"https:\/\/www.pipingpig.com\/wp-content\/uploads\/2026\/08\/0685_img_0000.png\" \/><\/section>\n<section style=\"text-align: center\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100023589\" data-s=\"300,640\" data-src=\"https:\/\/www.pipingpig.com\/wp-content\/uploads\/2026\/08\/0685_img_0001.png\" data-type=\"png\" src=\"https:\/\/www.pipingpig.com\/wp-content\/uploads\/2026\/08\/0685_img_0001.png\" \/><\/section>\n<pre class=\"pp-code\"><code>public override DataTable Execute( string action, string argument)\n        {\n            try\n            {\n                \/\/ Create a record DataColumn list that will contain all the\n                \/\/ column DataColumns\n                List FieldColumnList = new List();\n                Column recFieldColumnOID = new Column(&quot;OID&quot;, typeof(System.String));\n                FieldColumnList.Add(recFieldColumnOID);\n                Column recFieldColumnName = new Column( &quot;name&quot;, typeof(System.String) );\n                FieldColumnList.Add( recFieldColumnName );\n                Column recFieldColumnDryWeight = new Column( &quot;Dry Weight&quot;, typeof(System.Double) );\n                FieldColumnList.Add(recFieldColumnDryWeight);\n                Column recFieldColumnTime = new Column( &quot;Date Created&quot;, typeof(System.DateTime) );\n                FieldColumnList.Add( recFieldColumnTime );\n                Column recApprovalState = new Column( &quot;Approval State&quot;, typeof(System.String) ) ;\n                FieldColumnList.Add( recApprovalState );\n                Column recFieldColumnDotNetLabel = new Column( &quot;DotNetLabel&quot;, typeof(System.String) );\n                FieldColumnList.Add( recFieldColumnDotNetLabel );\n                \/\/ create and initialize the Data Table with the Columns ( user added\n                \/\/ columns and returned properties from the Delegated Query)\n                m_DataTable = InitializeDataTable( FieldColumnList );\n                \/\/ if the Evaluate property is set to true that means we need to\n                \/\/ return the data table with only columns names to the designer\n                \/\/ so that the control can display the column names at the design time\n                \/\/ The Query Builder calls the Execute with Evaluate set to true\n                if( EvaluateOnly )\n                {\n                    return m_DataTable;\n                }\n                \/\/ loop through all the objects in the input objects\n                foreach ( BusinessObject oBO in InputObjects )\n                {\n                    double dryWeightVal = 0.0;\n                    \/\/ check if the Business Object supports the IJWeight.\n                    if( oBO.SupportsInterface( &quot;IJWeightCG&quot; ) )\n                    {\n                        PropertyValueDouble dblWeight = ( PropertyValueDouble )oBO.GetPropertyValue( &quot;IJWeightCG&quot;, &quot;DryWeight&quot; );\n                        if ( null != dblWeight.PropValue )\n                        {\n                            dryWeightVal = (double)dblWeight.PropValue;\n                        }\n                    }\n                    \/\/ data row to hold the data for current object\n                    DataRow currentRow = m_DataTable.NewRow();\n                    currentRow.SetField(&quot;OID&quot;, oBO.ObjectID.ToString());\n                    currentRow.SetField(&quot;name&quot;, oBO.ToString());\n                    currentRow.SetField(&quot;Dry Weight&quot;, dryWeightVal);\n                    \/\/ Removed *time* portion of date created since it is highly dependent on\n                    \/\/ the local time zone and will therefore not match the baseline for other zones.\n                    currentRow.SetField(&quot;Date Created&quot;, oBO.DateCreated.Date);\n                    currentRow.SetField(&quot;Approval State&quot;, oBO.ApprovalStatus.ToString());\n                    currentRow.SetField(&quot;DotNetLabel&quot;, &quot;[Equipment Properties]&quot;);\n                    \/\/ Execute the Delegated Query.\n                    System.Data.DataTable DelegatedDataTable = ExecuteDelegatedQuery(oBO);\n                    \/\/ add the new row with the value  to the record set\n                    if ( DelegatedDataTable != null )\n                    {\n                        if ( DelegatedDataTable.Rows.Count &gt;= 1 )\n                        {\n                            DataRow row = DelegatedDataTable.Rows[0];\n                            \/\/ merge the column value pair to data table, excluding the oid column\n                            foreach ( DataColumn col in row.Table.Columns )\n                            {\n                                if (col.ColumnName.ToLower() != &quot;oid&quot;)\n                                {\n                                    currentRow.SetField(col.ColumnName, row[col.ColumnName]);\n                                }\n                            }\n                        }\n                    }\n                    \/\/ add the new row to the master data table\n                    m_DataTable.Rows.Add(currentRow);\n                }\n                return m_DataTable;\n            }\n            catch ( Exception e )\n            {\n                MiddleServiceProvider.ErrorLogger.Log(0, typeof(ExampleQueryInterpreter).FullName, e.ToString(), string.Empty, (new StackTrace()).GetFrame(1).GetMethod().Name, string.Empty, string.Empty, -1);\n                throw;\n            }\n        }\n    }<\/code><\/pre>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><br \/><\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><br \/><\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><br \/><\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\">\u76f8\u5173\u9605\u8bfb\uff1a<\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><a class=\"normal_text_link\" data-itemshowtype=\"0\" data-linktype=\"2\" href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzAwMTk1MzQzNA==&amp;mid=2247495181&amp;idx=1&amp;sn=c2d7efd3ec09eb2d8087ba1a12d9f430&amp;scene=21#wechat_redirect\" style=\"margin: 0px;padding: 0px;text-decoration: none;cursor: default;max-width: 100%\" target=\"_blank\">Smart3D\u4e8c\u6b21\u5f00\u53d1\u8d44\u6e90\u7b80\u4ecb<\/a><\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><a class=\"normal_text_link\" data-itemshowtype=\"0\" data-linktype=\"2\" href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzAwMTk1MzQzNA==&amp;mid=2247494141&amp;idx=1&amp;sn=95d4ae941f9aa6d03be2cbb84061b972&amp;scene=21#wechat_redirect\" style=\"margin: 0px;padding: 0px;text-decoration: none;cursor: default;max-width: 100%\" target=\"_blank\">Intergraph Smart\u00ae 3D\u81ea\u5b9a\u4e49\u547d\u4ee4\u90e8\u7f72\u65b9\u5f0f\u53ca\u81ea\u5b9a\u4e49\u5de5\u5177\u6761\u5f00\u53d1\u7b80\u8ff0<\/a><\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><a class=\"normal_text_link\" data-itemshowtype=\"0\" data-linktype=\"2\" href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzAwMTk1MzQzNA==&amp;mid=2247495066&amp;idx=3&amp;sn=006afd896cc60c114b373b0421f517da&amp;scene=21#wechat_redirect\" style=\"margin: 0px;padding: 0px;text-decoration: none;cursor: default;max-width: 100%\" target=\"_blank\">Update\u547d\u4ee4\u4f18\u5316<\/a><\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><a class=\"normal_text_link\" data-itemshowtype=\"0\" data-linktype=\"2\" href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzAwMTk1MzQzNA==&amp;mid=2247507225&amp;idx=1&amp;sn=7a29eb9e94a898a0ae441ced3203a62a&amp;scene=21#wechat_redirect\" style=\"margin: 0px;padding: 0px;text-decoration: none;cursor: default;max-width: 100%\" target=\"_blank\">Smart 3D\u4e2d\u793a\u4f8b\u547d\u540d\u89c4\u5219<\/a><\/span><\/span><\/p>\n<p data-pm-slice=\"0 0 []\" style=\"margin: 0px;padding: 0px;max-width: 100%;clear: both;min-height: 1em;font-family: &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 17px;font-style: normal;font-weight: 400;letter-spacing: 0.544px;text-align: justify;text-indent: 0px;text-transform: none;word-spacing: 0px;white-space: normal;line-height: 1em;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;font-family: \u96b6\u4e66;visibility: visible\"><span style=\"margin: 0px;padding: 0px;max-width: 100%;visibility: visible\"><br \/><\/span><\/span><\/p>\n<section><span><br \/><\/span><\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>public override DataTable Execute( string action, strin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":338,"comment_status":"open","ping_status":"open","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":[9,28,15],"tags":[],"class_list":["post-340","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-smart3d","category-dev","category-15"],"_links":{"self":[{"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/posts\/340","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=340"}],"version-history":[{"count":5,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"predecessor-version":[{"id":8360,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/posts\/340\/revisions\/8360"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/media\/338"}],"wp:attachment":[{"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pipingpig.com\/index.php\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}