{"id":1106868,"date":"2025-01-08T16:44:19","date_gmt":"2025-01-08T08:44:19","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1106868.html"},"modified":"2025-01-08T16:44:22","modified_gmt":"2025-01-08T08:44:22","slug":"python%e5%a6%82%e4%bd%95%e9%a2%84%e8%a7%88catia%e9%9b%b6%e4%bb%b6%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1106868.html","title":{"rendered":"Python\u5982\u4f55\u9884\u89c8catia\u96f6\u4ef6\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071137\/986b30ae-ff43-4f4f-a6fa-510c5e04ad04.webp\" alt=\"Python\u5982\u4f55\u9884\u89c8catia\u96f6\u4ef6\u5e93\" \/><\/p>\n<p><p> <strong>\u8981\u9884\u89c8Catia\u96f6\u4ef6\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u811a\u672c\u901a\u8fc7\u4e0eCatia\u8f6f\u4ef6\u7684\u4ea4\u4e92\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u65b9\u6cd5\uff1a\u901a\u8fc7COM\u63a5\u53e3\u4e0eCatia\u4ea4\u4e92\u3001\u4f7f\u7528pycatia\u5e93\u3001\u89e3\u6790Catia\u6587\u4ef6\u3002\u672c\u6587\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528pycatia\u5e93\u6765\u9884\u89c8Catia\u96f6\u4ef6\u5e93\u3002<\/strong><\/p>\n<\/p>\n<p><p>Pycatia\u662f\u4e00\u4e2a\u7528\u4e8e\u4e0eCatia V5\u8fdb\u884c\u4ea4\u4e92\u7684Python\u5e93\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u7ec4API\uff0c\u4f7f\u7528\u6237\u80fd\u591f\u901a\u8fc7Python\u811a\u672c\u63a7\u5236Catia\u3002\u8fd9\u4f7f\u5f97\u81ea\u52a8\u5316\u4efb\u52a1\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\uff0c\u5e76\u4e14\u53ef\u4ee5\u5bf9\u96f6\u4ef6\u5e93\u8fdb\u884c\u64cd\u4f5c\u548c\u9884\u89c8\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u5b89\u88c5Pycatia<\/h2>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4f7f\u7528Pycatia\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u5b89\u88c5\u5b83\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7pip\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pycatia<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001\u8fde\u63a5Catia<\/h2>\n<\/p>\n<p><p>\u5728Python\u811a\u672c\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u9700\u8981\u8fde\u63a5\u5230Catia\u5e94\u7528\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u8fdb\u884c\u8fde\u63a5\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pycatia import catia<\/p>\n<h2><strong>\u8fde\u63a5\u5230Catia\u5e94\u7528\u7a0b\u5e8f<\/strong><\/h2>\n<p>catia = catia()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2aCatia\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9e\u4f8b\uff0c\u540e\u7eed\u7684\u64cd\u4f5c\u5c06\u57fa\u4e8e\u8fd9\u4e2a\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u6253\u5f00\u96f6\u4ef6\u6587\u4ef6<\/h2>\n<\/p>\n<p><p>\u4e3a\u4e86\u9884\u89c8Catia\u96f6\u4ef6\u5e93\u4e2d\u7684\u96f6\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u6253\u5f00\u4e00\u4e2a\u96f6\u4ef6\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u6253\u5f00\u4e00\u4e2a\u96f6\u4ef6\u6587\u4ef6\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6253\u5f00\u96f6\u4ef6\u6587\u4ef6<\/p>\n<p>part_path = &#39;C:\\\\path\\\\to\\\\your\\\\part.CATPart&#39;<\/p>\n<p>document = catia.documents.open(part_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u4f60\u9700\u8981\u5c06<code>part_path<\/code>\u66ff\u6362\u4e3a\u4f60\u8981\u6253\u5f00\u7684\u96f6\u4ef6\u6587\u4ef6\u7684\u5b9e\u9645\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u83b7\u53d6\u96f6\u4ef6\u4fe1\u606f<\/h2>\n<\/p>\n<p><p>\u4e00\u65e6\u6253\u5f00\u4e86\u96f6\u4ef6\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u83b7\u53d6\u96f6\u4ef6\u7684\u5404\u79cd\u4fe1\u606f\uff0c\u4f8b\u5982\u96f6\u4ef6\u540d\u79f0\u3001\u51e0\u4f55\u7279\u5f81\u3001\u53c2\u6570\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u96f6\u4ef6\u6587\u6863<\/p>\n<p>part_document = document.part<\/p>\n<h2><strong>\u83b7\u53d6\u96f6\u4ef6\u540d\u79f0<\/strong><\/h2>\n<p>part_name = part_document.name<\/p>\n<p>print(f&#39;\u96f6\u4ef6\u540d\u79f0: {part_name}&#39;)<\/p>\n<h2><strong>\u83b7\u53d6\u96f6\u4ef6\u7684\u51e0\u4f55\u7279\u5f81<\/strong><\/h2>\n<p>bodies = part_document.bodies<\/p>\n<p>for body in bodies:<\/p>\n<p>    print(f&#39;\u51e0\u4f55\u7279\u5f81: {body.name}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u904d\u5386\u96f6\u4ef6\u5e93<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u96f6\u4ef6\u5e93\u6587\u4ef6\u5939\uff0c\u5e76\u4e14\u60f3\u8981\u904d\u5386\u5e76\u9884\u89c8\u6240\u6709\u96f6\u4ef6\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<h2><strong>\u96f6\u4ef6\u5e93\u8def\u5f84<\/strong><\/h2>\n<p>library_path = &#39;C:\\\\path\\\\to\\\\your\\\\library&#39;<\/p>\n<h2><strong>\u904d\u5386\u96f6\u4ef6\u5e93\u4e2d\u7684\u6240\u6709\u96f6\u4ef6\u6587\u4ef6<\/strong><\/h2>\n<p>for file_name in os.listdir(library_path):<\/p>\n<p>    if file_name.endswith(&#39;.CATPart&#39;):<\/p>\n<p>        part_path = os.path.join(library_path, file_name)<\/p>\n<p>        document = catia.documents.open(part_path)<\/p>\n<p>        # \u83b7\u53d6\u96f6\u4ef6\u4fe1\u606f<\/p>\n<p>        part_document = document.part<\/p>\n<p>        part_name = part_document.name<\/p>\n<p>        print(f&#39;\u96f6\u4ef6\u540d\u79f0: {part_name}&#39;)<\/p>\n<p>        # \u83b7\u53d6\u51e0\u4f55\u7279\u5f81<\/p>\n<p>        bodies = part_document.bodies<\/p>\n<p>        for body in bodies:<\/p>\n<p>            print(f&#39;\u51e0\u4f55\u7279\u5f81: {body.name}&#39;)<\/p>\n<p>        # \u5173\u95ed\u6587\u6863<\/p>\n<p>        document.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516d\u3001\u83b7\u53d6\u96f6\u4ef6\u53c2\u6570<\/h2>\n<\/p>\n<p><p>Catia\u96f6\u4ef6\u901a\u5e38\u5305\u542b\u4e00\u4e9b\u53c2\u6570\uff0c\u4f8b\u5982\u5c3a\u5bf8\u3001\u6750\u6599\u5c5e\u6027\u7b49\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u83b7\u53d6\u96f6\u4ef6\u53c2\u6570\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u96f6\u4ef6\u53c2\u6570<\/p>\n<p>parameters = part_document.parameters<\/p>\n<p>for parameter in parameters:<\/p>\n<p>    print(f&#39;\u53c2\u6570\u540d\u79f0: {parameter.name}, \u53c2\u6570\u503c: {parameter.value}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e03\u3001\u53ef\u89c6\u5316\u96f6\u4ef6<\/h2>\n<\/p>\n<p><p>\u5c3d\u7ba1Pycatia\u5e93\u4e3b\u8981\u7528\u4e8e\u4e0eCatia\u8fdb\u884c\u6570\u636e\u4ea4\u4e92\uff0c\u4f46\u5b83\u672c\u8eab\u5e76\u4e0d\u63d0\u4f9b\u53ef\u89c6\u5316\u529f\u80fd\u3002\u7136\u800c\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Catia\u7684\u5185\u7f6e\u529f\u80fd\u6765\u663e\u793a\u96f6\u4ef6\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u663e\u793a\u96f6\u4ef6\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u663e\u793a\u96f6\u4ef6<\/p>\n<p>catia.visible = True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4f7fCatia\u5e94\u7528\u7a0b\u5e8f\u53ef\u89c1\uff0c\u5e76\u663e\u793a\u5f53\u524d\u6253\u5f00\u7684\u96f6\u4ef6\u3002<\/p>\n<\/p>\n<p><h2>\u516b\u3001\u81ea\u52a8\u5316\u4efb\u52a1<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528Python\u811a\u672c\u548cPycatia\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u81ea\u52a8\u5316\u4e00\u4e9b\u5e38\u89c1\u7684\u4efb\u52a1\uff0c\u4f8b\u5982\u6279\u91cf\u5904\u7406\u96f6\u4ef6\u6587\u4ef6\u3001\u751f\u6210\u62a5\u544a\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u751f\u6210\u96f6\u4ef6\u62a5\u544a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<h2><strong>\u521b\u5efa\u62a5\u544a\u6587\u4ef6<\/strong><\/h2>\n<p>report_file = &#39;part_report.csv&#39;<\/p>\n<p>with open(report_file, &#39;w&#39;, newline=&#39;&#39;) as csvfile:<\/p>\n<p>    fieldnames = [&#39;\u96f6\u4ef6\u540d\u79f0&#39;, &#39;\u51e0\u4f55\u7279\u5f81&#39;, &#39;\u53c2\u6570\u540d\u79f0&#39;, &#39;\u53c2\u6570\u503c&#39;]<\/p>\n<p>    writer = csv.DictWriter(csvfile, fieldnames=fieldnames)<\/p>\n<p>    writer.writeheader()<\/p>\n<p>    # \u904d\u5386\u96f6\u4ef6\u5e93\u4e2d\u7684\u6240\u6709\u96f6\u4ef6\u6587\u4ef6<\/p>\n<p>    for file_name in os.listdir(library_path):<\/p>\n<p>        if file_name.endswith(&#39;.CATPart&#39;):<\/p>\n<p>            part_path = os.path.join(library_path, file_name)<\/p>\n<p>            document = catia.documents.open(part_path)<\/p>\n<p>            # \u83b7\u53d6\u96f6\u4ef6\u4fe1\u606f<\/p>\n<p>            part_document = document.part<\/p>\n<p>            part_name = part_document.name<\/p>\n<p>            # \u83b7\u53d6\u51e0\u4f55\u7279\u5f81<\/p>\n<p>            bodies = part_document.bodies<\/p>\n<p>            for body in bodies:<\/p>\n<p>                body_name = body.name<\/p>\n<p>                # \u83b7\u53d6\u96f6\u4ef6\u53c2\u6570<\/p>\n<p>                parameters = part_document.parameters<\/p>\n<p>                for parameter in parameters:<\/p>\n<p>                    writer.writerow({<\/p>\n<p>                        &#39;\u96f6\u4ef6\u540d\u79f0&#39;: part_name,<\/p>\n<p>                        &#39;\u51e0\u4f55\u7279\u5f81&#39;: body_name,<\/p>\n<p>                        &#39;\u53c2\u6570\u540d\u79f0&#39;: parameter.name,<\/p>\n<p>                        &#39;\u53c2\u6570\u503c&#39;: parameter.value<\/p>\n<p>                    })<\/p>\n<p>            # \u5173\u95ed\u6587\u6863<\/p>\n<p>            document.close()<\/p>\n<p>print(f&#39;\u62a5\u544a\u5df2\u751f\u6210: {report_file}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ee3\u7801\u5c06\u904d\u5386\u96f6\u4ef6\u5e93\u4e2d\u7684\u6240\u6709\u96f6\u4ef6\u6587\u4ef6\uff0c\u83b7\u53d6\u6bcf\u4e2a\u96f6\u4ef6\u7684\u540d\u79f0\u3001\u51e0\u4f55\u7279\u5f81\u4ee5\u53ca\u53c2\u6570\uff0c\u5e76\u5c06\u8fd9\u4e9b\u4fe1\u606f\u5199\u5165CSV\u62a5\u544a\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h2>\u4e5d\u3001\u9519\u8bef\u5904\u7406<\/h2>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u4e0eCatia\u4ea4\u4e92\u7684Python\u811a\u672c\u65f6\uff0c\u5904\u7406\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u9519\u8bef\u5904\u7406\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    # \u5c1d\u8bd5\u8fde\u63a5\u5230Catia\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p>    catia = catia()<\/p>\n<p>except Exception as e:<\/p>\n<p>    print(f&#39;\u65e0\u6cd5\u8fde\u63a5\u5230Catia: {e}&#39;)<\/p>\n<p>    exit(1)<\/p>\n<p>try:<\/p>\n<p>    # \u5c1d\u8bd5\u6253\u5f00\u96f6\u4ef6\u6587\u4ef6<\/p>\n<p>    document = catia.documents.open(part_path)<\/p>\n<p>except Exception as e:<\/p>\n<p>    print(f&#39;\u65e0\u6cd5\u6253\u5f00\u96f6\u4ef6\u6587\u4ef6: {e}&#39;)<\/p>\n<p>    exit(1)<\/p>\n<p>try:<\/p>\n<p>    # \u5c1d\u8bd5\u83b7\u53d6\u96f6\u4ef6\u4fe1\u606f<\/p>\n<p>    part_document = document.part<\/p>\n<p>    part_name = part_document.name<\/p>\n<p>except Exception as e:<\/p>\n<p>    print(f&#39;\u65e0\u6cd5\u83b7\u53d6\u96f6\u4ef6\u4fe1\u606f: {e}&#39;)<\/p>\n<p>    exit(1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528try-except\u5757\uff0c\u6211\u4eec\u53ef\u4ee5\u6355\u83b7\u5e76\u5904\u7406\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u4ece\u800c\u4f7f\u811a\u672c\u66f4\u52a0\u5065\u58ee\u548c\u53ef\u9760\u3002<\/p>\n<\/p>\n<p><h2>\u5341\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u4f7f\u7528Pycatia\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728Python\u811a\u672c\u4e2d\u4e0eCatia\u8fdb\u884c\u4ea4\u4e92\uff0c\u4ece\u800c\u5b9e\u73b0\u96f6\u4ef6\u5e93\u7684\u9884\u89c8\u548c\u81ea\u52a8\u5316\u64cd\u4f5c\u3002<\/strong>\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528Pycatia\u5e93\u3001\u8fde\u63a5Catia\u5e94\u7528\u7a0b\u5e8f\u3001\u6253\u5f00\u96f6\u4ef6\u6587\u4ef6\u3001\u83b7\u53d6\u96f6\u4ef6\u4fe1\u606f\u3001\u904d\u5386\u96f6\u4ef6\u5e93\u3001\u83b7\u53d6\u96f6\u4ef6\u53c2\u6570\u3001\u751f\u6210\u62a5\u544a\u7b49\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528Python\u4e0eCatia\u8fdb\u884c\u4ea4\u4e92\u3002\u5982\u679c\u4f60\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5efa\u8bae\uff0c\u6b22\u8fce\u968f\u65f6\u4e0e\u6211\u8054\u7cfb\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8bbf\u95eeCATIA\u96f6\u4ef6\u5e93\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528CATIA\u7684API\u63a5\u53e3\u6765\u5b9e\u73b0\u5bf9CATIA\u96f6\u4ef6\u5e93\u7684\u8bbf\u95ee\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u4e86CATIA\uff0c\u5e76\u4e14\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528Python\u5e93\u5982pywin32\uff0c\u8fde\u63a5\u5230CATIA\u5e94\u7528\u7a0b\u5e8f\u3002\u901a\u8fc7API\u63d0\u4f9b\u7684\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u6d4f\u89c8\u96f6\u4ef6\u5e93\u4e2d\u7684\u6240\u6709\u96f6\u4ef6\uff0c\u5e76\u63d0\u53d6\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<p><strong>\u662f\u5426\u9700\u8981\u7279\u5b9a\u7684\u5e93\u6216\u5de5\u5177\u6765\u9884\u89c8CATIA\u96f6\u4ef6\u5e93\uff1f<\/strong><br \/>\u4e3a\u4e86\u9884\u89c8CATIA\u96f6\u4ef6\u5e93\uff0c\u63a8\u8350\u4f7f\u7528pywin32\u5e93\uff0c\u8fd9\u662f\u4e00\u4e2a\u7528\u4e8eWindows\u7684Python\u5e93\uff0c\u53ef\u4ee5\u4e0eCOM\u5bf9\u8c61\u8fdb\u884c\u4ea4\u4e92\u3002\u6b64\u5916\uff0c\u4e86\u89e3CATIA\u7684API\u6587\u6863\u5c06\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u5982\u4f55\u64cd\u4f5c\u96f6\u4ef6\u5e93\u3002<\/p>\n<p><strong>\u9884\u89c8CATIA\u96f6\u4ef6\u5e93\u7684\u6b65\u9aa4\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u5e76\u914d\u7f6e\u4e86Python\u548c\u76f8\u5173\u5e93\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528Python\u811a\u672c\u8fde\u63a5\u5230CATIA\u3002\u5728\u8fde\u63a5\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528API\u65b9\u6cd5\u83b7\u53d6\u96f6\u4ef6\u5e93\u7684\u8def\u5f84\uff0c\u5e76\u904d\u5386\u5176\u4e2d\u7684\u96f6\u4ef6\u3002\u6700\u540e\uff0c\u901a\u8fc7\u7f16\u5199\u4ee3\u7801\uff0c\u63d0\u53d6\u5e76\u5c55\u793a\u6240\u9700\u7684\u96f6\u4ef6\u4fe1\u606f\uff0c\u5982\u540d\u79f0\u3001\u7c7b\u578b\u548c\u5c3a\u5bf8\u7b49\u3002<\/p>\n<p><strong>\u5982\u4f55\u89e3\u51b3\u5728\u4f7f\u7528Python\u9884\u89c8CATIA\u96f6\u4ef6\u5e93\u65f6\u9047\u5230\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u9884\u89c8CATIA\u96f6\u4ef6\u5e93\u65f6\uff0c\u5e38\u89c1\u95ee\u9898\u53ef\u80fd\u5305\u62ec\u8fde\u63a5\u5931\u8d25\u6216\u6743\u9650\u4e0d\u8db3\u3002\u786e\u4fdd\u4f60\u7684Python\u811a\u672c\u5728\u62e5\u6709\u8db3\u591f\u6743\u9650\u7684\u73af\u5883\u4e2d\u8fd0\u884c\uff0c\u5e76\u4e14CATIA\u5e94\u7528\u7a0b\u5e8f\u5df2\u7ecf\u6253\u5f00\u5e76\u5904\u4e8e\u53ef\u64cd\u4f5c\u72b6\u6001\u3002\u5982\u679c\u9047\u5230\u7279\u5b9a\u7684\u9519\u8bef\u4fe1\u606f\uff0c\u53ef\u4ee5\u67e5\u9605CATIA\u7684API\u6587\u6863\u6216\u76f8\u5173\u793e\u533a\u8bba\u575b\u4ee5\u83b7\u53d6\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u9884\u89c8Catia\u96f6\u4ef6\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u811a\u672c\u901a\u8fc7\u4e0eCatia\u8f6f\u4ef6\u7684\u4ea4\u4e92\u6765\u5b9e\u73b0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u65b9\u6cd5\uff1a\u901a\u8fc7COM\u63a5 [&hellip;]","protected":false},"author":3,"featured_media":1106874,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1106868"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1106868"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1106868\/revisions"}],"predecessor-version":[{"id":1106878,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1106868\/revisions\/1106878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1106874"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1106868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1106868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1106868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}