{"id":612,"date":"2019-11-19T13:37:00","date_gmt":"2019-11-19T05:37:00","guid":{"rendered":"http:\/\/localhost:8080\/?p=612"},"modified":"2019-11-19T13:37:00","modified_gmt":"2019-11-19T05:37:00","slug":"c-solidworks-%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91-api-%e5%ae%9e%e4%be%8b%ef%bc%9a%e5%88%9b%e5%bb%ba%e4%b8%ad%e5%bf%83%e7%82%b9%e4%bd%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/blog.ke-zhi.com\/?p=612","title":{"rendered":"C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212; \u5b9e\u4f8b\uff1a\u521b\u5efa\u4e2d\u5fc3\u70b9\u4f4d\u7f6e"},"content":{"rendered":"<h1> <a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/p\/12897452.html\" target=\"_blank\" rel=\"nofollow noopener\"> <span>C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212; \u5b9e\u4f8b\uff1a\u521b\u5efa\u4e2d\u5fc3\u70b9\u4f4d\u7f6e<\/span> <\/a> <\/h1>\n<p>\u5728\u5b9e\u9645\u751f\u4ea7\u9700\u8981\u4e2d\uff0c\u6709\u4e9b\u60c5\u51b5 \u6211\u4eec\u9700\u8981\u77e5\u9053\u67d0\u4e2a\u8def\u5f84\u4e0a\u6574\u4f53\u7684\u4e2d\u5fc3\u70b9\uff0c\u5982\u6c34\u7ba1\uff0c\u7535\u963b\u4e1d\u8fd9\u4e9b\uff0c\u53ef\u80fd\u9700\u8981\u4ece\u8def\u5f84\u7684\u4e2d\u70b9\u5f00\u59cb\u8fdb\u884c\u653e\u7f6e\uff0c\u8fd9\u4e2a\u5b9e\u4f8b\u6211\u4eec\u6765\u770b\u5982\u4f55\u8fdb\u884c\u4e2d\u70b9\u7684\u8ba1\u7b97\u4e0e\u6807\u8bb0\u3002\u6211\u4eec\u9ed8\u8ba4\u8def\u5f84\u90fd\u662f\u662f\u76f4\u7ebf\u548c\u5706\u5f27\u7ec4\u6210\uff0c\u5747\u76f8\u5207(\u8f85\u52a9\u4e2d\u5fc3\u7ebf\u4e0d\u5305\u542b\u5728\u8def\u5f84\u957f\u5ea6\u5185)\u3002<\/p>\n<ol>\n<li>\uff0c\u95ee\u9898\uff1a\u5982\u4f55\u627e\u5230\u4e0b\u9762\u8def\u5f84\u7684\u4e2d\u5fc3\u70b9\u5728\u54ea\u91cc\uff1f\u8fdb\u884c\u6807\u8bc6\uff0c\u65b9\u4fbf\u52a0\u5de5\u3002<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20191119131746430.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>2\uff0c\u601d\u8def\uff1a<\/p>\n<ol>\n<li>\u5148\u5f97\u5230\u6307\u5b9a\u8349\u56fe\u4e2d\u7684\u6240\u6709\u201c\u7ebf\u6bb5\u201d\uff0c\u628a\u4e2d\u5fc3\u7ebf\u6392\u9664\u6389\u4e4b\u540e\uff0c\u904d\u5386\u5e76\u7edf\u8ba1\u51fa\u5b83\u4eec\u7684\u957f\u5ea6\uff0c\u4ece\u800c\u5f97\u5230\u603b\u957fL\u3002\u5e76\u4e14\u8fd8\u8981\u5f97\u5230\u4e00\u6574\u4e32\u7684\u201c\u7ebf\u6bb5\u201d\u987a\u5e8f\u3002\u53ef\u4ee5\u8003\u8651 \u94fe \u76f8\u5173\u7684\u6570\u636e\u7ed3\u6784<\/li>\n<li>\u4ece\u8d77\u70b9\u6216\u8005\u7ec8\u70b9\u5f00\u59cb\uff0c\u5bf9\u6bcf\u4e00\u6bb5\u8fdb\u884c\u904d\u5386\uff0c\u53bb\u627e\u5230\u4e2d\u70b9\u6240\u5728\u7684\u201c\u7ebf\u6bb5\u201d\uff0c \u76f4\u5230\u627e\u5230\u4e2d\u70b9\u4e4b\u540e\uff0c\u901a\u8fc7\u201c\u7ebf\u6bb5\u201d \u7684\u53c2\u8003\u8fdb\u884c\u8ba1\u7b97\u3002<\/li>\n<li>\u753b\u51fa\u4e2d\u70b9\uff0c\u6216\u8005\u80fd\u6807\u8bc6\u4e2d\u70b9\u4f4d\u7f6e\u7684\u8f85\u52a9\u7ebf\u3002<\/li>\n<\/ol>\n<p>3\uff0c\u4ee3\u7801\uff1a\u8fd9\u91cc\u5f88\u4e45\u524d\u5199\u7684\uff0c\u6ca1\u6709\u5199\u4ec0\u4e48\u6ce8\u91ca\uff0c\u5e76\u4e14\u6c34\u5e73\u4e5f\u5f88\u83dc\uff0c\u4f30\u8ba1\u5f88\u591a\u4eba\u770b\u4e0d\u592a\u61c2\u3002<\/p>\n<pre><code>      public void CreateHeaterCenter(string heaterPathName)\n        {\n            ISketchPoint startPoint = null;\n            ISketchPoint endPoint = null;\n            List&lt;SegmentData&gt; list = new List&lt;SegmentData&gt;();\n            List&lt;SegmentData&gt; list2 = new List&lt;SegmentData&gt;();\n            List&lt;SegmentData&gt; list3 = new List&lt;SegmentData&gt;();\n            List&lt;SegmentData&gt; list4 = new List&lt;SegmentData&gt;();\n            _swApp.ActivateDoc(_swPartModel.GetTitle());\n            _swPartModel.ShowNamedView2(\"*Front\", 1);\n\n            ISketchArc arc;\n            double length;\n            list2.Clear();\n            list.Clear();\n            _swPartModel.Extension.SelectByID2(heaterPathName, \"SKETCH\", 0.0, 0.0, 0.0, true, 0, null, 0);\n            _swPartModel.ViewZoomToSelection();\n            ISelectionMgr iSelectionManager = _swPartModel.ISelectionManager;\n\n            IFeature feature = iSelectionManager.GetSelectedObject6(1, 0);\n\n            ISketch sketch = feature.GetSpecificFeature2();\n\n            Array array = sketch.GetSketchSegments();\n\n            Array array2 = sketch.GetSketchPoints2();\n            foreach (ISketchSegment segment in array)\n            {\n                ISketchSegment segment2 = segment;\n                segment2.Select(true);\n                if (!segment2.ConstructionGeometry)\n                {\n                    if (segment2.GetType() == 0)\n                    {\n                        ISketchLine line = (ISketchLine)segment2;\n                        startPoint = line.IGetStartPoint2();\n                        endPoint = line.IGetEndPoint2();\n                    }\n                    if (segment2.GetType() == 1)\n                    {\n                        arc = (ISketchArc)segment2;\n                        startPoint = arc.IGetStartPoint2();\n                        endPoint = arc.IGetEndPoint2();\n                    }\n                    SegmentData item = new SegmentData(segment2, startPoint, endPoint);\n                    list.Add(item);\n                }\n                _swPartModel.ClearSelection2(true);\n            }\n            for (int i = 0; i &lt; list.Count; i++)\n            {\n                int num9 = 0;\n                list2.Add(list[0]);\n                list.Remove(list[0]);\n                for (int m = 0; m &lt; list.Count; m++)\n                {\n                    list2[0].Segment.Select(false);\n                    list[m].Segment.Select(false);\n                    if ((Math.Round(list2[0].StartPoint.X, 5) == Math.Round(list[m].StartPoint.X, 5)) &amp;&amp; (Math.Round(list2[0].StartPoint.Y, 5) == Math.Round(list[m].StartPoint.Y, 5)))\n                    {\n                        num9++;\n                    }\n                    if ((Math.Round(list2[0].EndPoint.X, 5) == Math.Round(list[m].EndPoint.X, 5)) &amp;&amp; (Math.Round(list2[0].EndPoint.Y, 5) == Math.Round(list[m].EndPoint.Y, 5)))\n                    {\n                        num9++;\n                    }\n                    if ((Math.Round(list2[0].EndPoint.X, 5) == Math.Round(list[m].StartPoint.X, 5)) &amp;&amp; (Math.Round(list2[0].EndPoint.Y, 5) == Math.Round(list[m].StartPoint.Y, 5)))\n                    {\n                        num9++;\n                    }\n                    if ((Math.Round(list2[0].StartPoint.X, 5) == Math.Round(list[m].EndPoint.X, 5)) &amp;&amp; (Math.Round(list2[0].StartPoint.Y, 5) == Math.Round(list[m].EndPoint.Y, 5)))\n                    {\n                        num9++;\n                    }\n                    _swPartModel.ClearSelection2(true);\n                    if (num9 == 2)\n                    {\n                        list.Add(list2[0]);\n                        list2.Remove(list2[0]);\n                        break;\n                    }\n                }\n                if (num9 == 1)\n                {\n                    list2[0].Segment.Select(true);\n                    break;\n                }\n            }\n            int num = 0;\n            for (int j = 0; j &lt; list.Count; j++)\n            {\n                list2[num].Segment.Select(true);\n                list[j].Segment.Select(false);\n                if ((Math.Round(list2[num].StartPoint.X, 5) == Math.Round(list[j].StartPoint.X, 5)) &amp;&amp; (Math.Round(list2[num].StartPoint.Y, 5) == Math.Round(list[j].StartPoint.Y, 5)))\n                {\n                    list2.Add(list[j]);\n                    list.Remove(list[j]);\n                    num++;\n                    j = -1;\n                }\n                else if ((Math.Round(list2[num].EndPoint.X, 5) == Math.Round(list[j].EndPoint.X, 5)) &amp;&amp; (Math.Round(list2[num].EndPoint.Y, 5) == Math.Round(list[j].EndPoint.Y, 5)))\n                {\n                    list2.Add(list[j]);\n                    list.Remove(list[j]);\n                    num++;\n                    j = -1;\n                }\n                else if ((Math.Round(list2[num].EndPoint.X, 5) == Math.Round(list[j].StartPoint.X, 5)) &amp;&amp; (Math.Round(list2[num].EndPoint.Y, 5) == Math.Round(list[j].StartPoint.Y, 5)))\n                {\n                    list2.Add(list[j]);\n                    list.Remove(list[j]);\n                    num++;\n                    j = -1;\n                }\n                else if ((Math.Round(list2[num].StartPoint.X, 5) == Math.Round(list[j].EndPoint.X, 5)) &amp;&amp; (Math.Round(list2[num].StartPoint.Y, 5) == Math.Round(list[j].EndPoint.Y, 5)))\n                {\n                    list2.Add(list[j]);\n                    list.Remove(list[j]);\n                    num++;\n                    j = -1;\n                }\n            }\n            _swPartModel.ClearSelection();\n            _swPartModel.Extension.SelectByID2(heaterPathName, \"SKETCH\", 0.0, 0.0, 0.0, false, 0, null, 0);\n            _swPartModel.EditSketch();\n            foreach (ISketchPoint point3 in array2)\n            {\n                point3.Select(false);\n                if (point3.Type == 1)\n                {\n                    _swPartModel.EditDelete();\n                }\n            }\n            double num2 = 0.0;\n            foreach (SegmentData data2 in list2)\n            {\n                data2.Segment.Select(false);\n                length = data2.Segment.GetLength();\n                num2 += length;\n            }\n            _swPartModel.ClearSelection();\n            double num4 = num2 \/ 2.0;\n            length = 0.0;\n            int num5 = 0;\n            double num6 = 0.0;\n            for (int k = 0; k &lt; list2.Count; k++)\n            {\n                list2[k].Segment.Select(false);\n                length += list2[k].Segment.GetLength();\n                if (num4 &lt; length)\n                {\n                    num5 = k;\n                    double num7 = Math.Abs((double)(length - num4));\n                    num6 = (list2[num5].Segment.GetLength() - num7) \/ list2[num5].Segment.GetLength();\n                    break;\n                }\n            }\n            _swPartModel.ClearSelection();\n            if (list2[num5].Segment.GetType() == 0)\n            {\n                double num13 = 0.0;\n                double x = list2[num5].StartPoint.X;\n                double y = list2[num5].StartPoint.Y;\n                double num16 = list2[num5].EndPoint.X;\n                double num17 = list2[num5].EndPoint.Y;\n                if ((Math.Round(num16, 6) == Math.Round(list2[num5 - 1].StartPoint.X, 6)) &amp;&amp; (Math.Round(num17, 6) == Math.Round(list2[num5 - 1].StartPoint.Y, 6)))\n                {\n                    num16 = list2[num5].StartPoint.X;\n                    num17 = list2[num5].StartPoint.Y;\n                    x = list2[num5].EndPoint.X;\n                    y = list2[num5].EndPoint.Y;\n                }\n                else if ((Math.Round(num16, 6) == Math.Round(list2[num5 - 1].EndPoint.X, 6)) &amp;&amp; (Math.Round(num17, 6) == Math.Round(list2[num5 - 1].EndPoint.Y, 6)))\n                {\n                    num16 = list2[num5].StartPoint.X;\n                    num17 = list2[num5].StartPoint.Y;\n                    x = list2[num5].EndPoint.X;\n                    y = list2[num5].EndPoint.Y;\n                }\n                double pointX = x + ((num16 - x) * num6);\n                double pointY = y + ((num17 - y) * num6);\n                _swPartModel.SetAddToDB(true);\n                if (_swPartModel.CreatePoint2(pointX, pointY, 0.0) != null)\n                {\n                    _swPartModel.SketchAddConstraints(\"sgFixed\");\n                }\n                if (x == num16)\n                {\n                    num13 = 1.5707963267948966;\n                }\n                if (y == num17)\n                {\n                    num13 = 3.1415926535897931;\n                }\n                if ((x != num16) &amp;&amp; !(y == num17))\n                {\n                    num13 = Math.Atan((num17 - y) \/ (num16 - x));\n                }\n                if (num13 &gt; 3.1415926535897931)\n                {\n                    num13 -= 3.1415926535897931;\n                }\n                ISketchSegment segment3 = _swPartModel.ICreateLine2(pointX + (0.005 * Math.Cos(num13 + 1.5707963267948966)), pointY + (0.005 * Math.Sin(num13 + 1.5707963267948966)), 0.0, pointX + (0.005 * Math.Cos(num13 + 4.71238898038469)), pointY + (0.005 * Math.Sin(num13 + 4.71238898038469)), 0.0);\n                _swPartModel.SketchAddConstraints(\"sgFIXED\");\n                segment3.ConstructionGeometry = true;\n                _swPartModel.SetAddToDB(false);\n                _swPartModel.ClearSelection2(true);\n                _swPartModel.InsertSketch2(true);\n            }\n            if (list2[num5].Segment.GetType() == 1)\n            {\n                arc = (ISketchArc)list2[num5].Segment;\n                startPoint = arc.IGetStartPoint2();\n                endPoint = arc.IGetEndPoint2();\n                ISketchPoint point4 = arc.IGetCenterPoint2();\n                int rotationDir = arc.GetRotationDir();\n                double num21 = 0.0;\n                double num22 = 0.0;\n                double num23 = list2[num5].Segment.GetLength();\n                double radius = arc.GetRadius();\n                double num25 = (num6 * num23) \/ radius;\n                double num26 = startPoint.X;\n                double num27 = startPoint.Y;\n                double num28 = endPoint.X;\n                double num29 = endPoint.Y;\n                double num30 = point4.X;\n                double num31 = point4.Y;\n                if ((Math.Round(num28, 6) == Math.Round(list2[num5 - 1].StartPoint.X, 6)) &amp;&amp; (Math.Round(num29, 6) == Math.Round(list2[num5 - 1].StartPoint.Y, 6)))\n                {\n                    num26 = endPoint.X;\n                    num27 = endPoint.Y;\n                    rotationDir = -1 * rotationDir;\n                }\n                else if ((Math.Round(num28, 6) == Math.Round(list2[num5 - 1].EndPoint.X, 6)) &amp;&amp; (Math.Round(num29, 6) == Math.Round(list2[num5 - 1].EndPoint.Y, 6)))\n                {\n                    num26 = endPoint.X;\n                    num27 = endPoint.Y;\n                    rotationDir = -1 * rotationDir;\n                }\n                if ((num30 != num26) &amp;&amp; !(num31 == num27))\n                {\n                    num21 = Math.Atan((num31 - num27) \/ (num30 - num26));\n                }\n                if (Math.Round(num30, 8) == Math.Round(num26, 8))\n                {\n                    if (Math.Round(num31, 8) &gt; Math.Round(num27, 8))\n                    {\n                        num21 = 4.71238898038469;\n                    }\n                    else if (Math.Round(num31, 8) &lt; Math.Round(num27, 8))\n                    {\n                        num21 = 1.5707963267948966;\n                    }\n                }\n                else if (Math.Round(num31, 8) == Math.Round(num27, 8))\n                {\n                    if (Math.Round(num30, 8) &gt; Math.Round(num26, 8))\n                    {\n                        num21 = 3.1415926535897931;\n                    }\n                    else if (Math.Round(num30, 8) &lt; Math.Round(num26, 8))\n                    {\n                        if (rotationDir &gt; 0)\n                        {\n                            num21 = 0.0;\n                        }\n                        else\n                        {\n                            num21 = 6.2831853071795862;\n                        }\n                    }\n                }\n                if ((Math.Round(num30, 8) &lt; Math.Round(num26, 8)) &amp;&amp; (Math.Round(num31, 8) &lt; Math.Round(num27, 8)))\n                {\n                    num22 = num21 + (rotationDir * num25);\n                }\n                else if ((Math.Round(num30, 8) &lt; Math.Round(num26, 8)) &amp;&amp; (Math.Round(num31, 8) &gt; Math.Round(num27, 8)))\n                {\n                    num22 = (6.2831853071795862 + num21) + (rotationDir * num25);\n                }\n                else if ((Math.Round(num30, 8) &gt; Math.Round(num26, 8)) &amp;&amp; (Math.Round(num31, 8) &gt; Math.Round(num27, 8)))\n                {\n                    num22 = (3.1415926535897931 + num21) + (rotationDir * num25);\n                }\n                else if ((Math.Round(num30, 8) &gt; Math.Round(num26, 8)) &amp;&amp; (Math.Round(num31, 8) &lt; Math.Round(num27, 8)))\n                {\n                    num22 = (3.1415926535897931 + num21) + (rotationDir * num25);\n                }\n                else if (Math.Round(num30, 8) == Math.Round(num26, 8))\n                {\n                    num22 = num21 + (rotationDir * num25);\n                }\n                else if (Math.Round(num31, 8) == Math.Round(num27, 8))\n                {\n                    num22 = num21 + (rotationDir * num25);\n                }\n                num22 = Math.Round(num22, 6);\n                double num32 = num30 + (radius * Math.Cos(num22));\n                double num33 = num31 + (radius * Math.Sin(num22));\n                bool flag29 = true;\n                if (_swPartModel.Extension.SelectByID2(\"\", \"SKETCHPOINT\", num32, num33, 0.0, false, 0, null, 0))\n                {\n                    ISketchPoint point5 = iSelectionManager.GetSelectedObject6(0, 1);\n\n                    if ((point5 != null) &amp;&amp; ((Math.Round(point5.X, 6) == Math.Round(num32, 6)) &amp;&amp; (Math.Round(point5.Y, 6) == Math.Round(num33, 6))))\n                    {\n                        flag29 = false;\n                    }\n                }\n                _swPartModel.SetAddToDB(true);\n                if (flag29 &amp;&amp; (_swPartModel.CreatePoint2(num32, num33, 0.0) != null))\n                {\n                    _swPartModel.SketchAddConstraints(\"sgFIXED\");\n                    _swPartModel.ICreateLine2(num30, num31, 0.0, num32, num33, 0.0).ConstructionGeometry = true;\n                }\n                _swPartModel.SetAddToDB(false);\n                _swPartModel.ClearSelection2(true);\n                _swPartModel.InsertSketch2(true);\n            }\n\n            \n        }\n   <\/code><\/pre>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20191119132900647.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>&nbsp;\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/2019111913320127.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20191119133242543.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>CAD\u4e2d\u9a8c\u8bc1\u6b63\u786e \uff1a<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/img-blog.csdnimg.cn\/20191119133548591.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3plbmdxaDAzMTQ=,size_16,color_FFFFFF,t_70\"><\/p>\n<p>\u6e90\u4ee3\u7801\u4e0b\u8f7d:<\/p>\n<p><a href=\"https:\/\/gitee.com\/painezeng\/CSharpAndSolidWorks\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/gitee.com\/painezeng\/CSharpAndSolidWorks<\/a><\/p>\n<p>          posted @<br \/>\n<span>2019-11-19 13:37<\/span>&nbsp;<br \/>\n<a href=\"https:\/\/www.cnblogs.com\/solidworksapi\/\" target=\"_blank\" rel=\"nofollow noopener\">painezeng<\/a>&nbsp; \u9605\u8bfb(<br \/>\n<span>218<\/span>)&nbsp; \u8bc4\u8bba(<br \/>\n<span>0<\/span>)&nbsp;<br \/>\n<a href=\"https:\/\/i.cnblogs.com\/EditPosts.aspx?postid=12897452\" rel=\"nofollow noopener\" target=\"_blank\">\u7f16\u8f91<\/a>&nbsp;<br \/>\n<a href=\"\" target=\"_blank\" rel=\"nofollow noopener\">\u6536\u85cf<\/a>&nbsp;<br \/>\n<a href=\"\" target=\"_blank\" rel=\"nofollow noopener\">\u4e3e\u62a5<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C# SolidWorks \u4e8c\u6b21\u5f00\u53d1 API &#8212; \u5b9e\u4f8b\uff1a\u521b\u5efa\u4e2d\u5fc3\u70b9\u4f4d\u7f6e \u5728\u5b9e\u9645\u751f\u4ea7\u9700\u8981\u4e2d\uff0c\u6709\u4e9b\u60c5\u51b5 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":613,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,5],"tags":[7,6,8],"series":[],"class_list":["post-612","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solidworks-","category-solidworks","tag-api","tag-solidworks","tag-8"],"views":144,"_links":{"self":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=612"}],"version-history":[{"count":0,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=\/wp\/v2\/media\/613"}],"wp:attachment":[{"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=612"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/blog.ke-zhi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}