<tfoot id='0HEO9'></tfoot>
    <bdo id='0HEO9'></bdo><ul id='0HEO9'></ul>
<i id='0HEO9'><tr id='0HEO9'><dt id='0HEO9'><q id='0HEO9'><span id='0HEO9'><b id='0HEO9'><form id='0HEO9'><ins id='0HEO9'></ins><ul id='0HEO9'></ul><sub id='0HEO9'></sub></form><legend id='0HEO9'></legend><bdo id='0HEO9'><pre id='0HEO9'><center id='0HEO9'></center></pre></bdo></b><th id='0HEO9'></th></span></q></dt></tr></i><div id='0HEO9'><tfoot id='0HEO9'></tfoot><dl id='0HEO9'><fieldset id='0HEO9'></fieldset></dl></div>

    <small id='0HEO9'></small><noframes id='0HEO9'>

    1. <legend id='0HEO9'><style id='0HEO9'><dir id='0HEO9'><q id='0HEO9'></q></dir></style></legend>

        使用 C# 实现 Catia V5 自动化

        Use C# for Catia V5 Automation(使用 C# 实现 Catia V5 自动化)
          <bdo id='au1fZ'></bdo><ul id='au1fZ'></ul>
        • <small id='au1fZ'></small><noframes id='au1fZ'>

          <tfoot id='au1fZ'></tfoot>

                  <tbody id='au1fZ'></tbody>
                <i id='au1fZ'><tr id='au1fZ'><dt id='au1fZ'><q id='au1fZ'><span id='au1fZ'><b id='au1fZ'><form id='au1fZ'><ins id='au1fZ'></ins><ul id='au1fZ'></ul><sub id='au1fZ'></sub></form><legend id='au1fZ'></legend><bdo id='au1fZ'><pre id='au1fZ'><center id='au1fZ'></center></pre></bdo></b><th id='au1fZ'></th></span></q></dt></tr></i><div id='au1fZ'><tfoot id='au1fZ'></tfoot><dl id='au1fZ'><fieldset id='au1fZ'></fieldset></dl></div>
                  <legend id='au1fZ'><style id='au1fZ'><dir id='au1fZ'><q id='au1fZ'></q></dir></style></legend>
                  本文介绍了使用 C# 实现 Catia V5 自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想用编程语言 C# 为 Catia V5 编写宏/程序.

                  I want to write Macros/Programs for Catia V5 with the programming language C#.

                  如何通过 c#(和 Visual Studio)访问 Catia 应用程序.我搜索了一下,发现 Catia 提供了一个 API,Microsoft COM Technologie 为像 c# &蟒蛇.

                  How is it possible to access the Catia applicataion via c#(and Visual Studio). I searched a bit and found out that Catia provides an API, which the Microsoft COM Technologie provides for 'COM-languages' like c# & python.

                  这就是我想象的 C# 程序和 Catia 之间的连接/交互方式:

                  This is how I imagine the connection/interaction between a C# Programm and Catia:

                  C# - .NET <-双向集成-> COM <-> Catia API

                  对吗?

                  另外:如何在 Visual Studio 中设置所有内容,以便可以访问 Catia API(和代码完成等)

                  Also: How do I setup everything in Visual Studio , so that I can access the Catia API (and code completion etc.)

                  推荐答案

                  1) 在引用中添加INFITF typelib库,作为CATIA应用程序的接口

                  1) Add INFITF typelib library in reference which is interface to CATIA application

                  2) 像这样将CATIA定义为全局变量

                  2) Define CATIA as global variable as like

                     INFITF.Application CATIA;
                  

                  3) 将 catia 应用程序绑定到您的 CATIA 变量,如下所示

                  3) Bind the catia application to your CATIA variable as below statement

                     CATIA = (INFITF.Application)Marshal.GetActiveObject("Catia.Application");
                  

                  希望这可以帮助您入门.

                  Hope this would helps you to get started.

                  这篇关于使用 C# 实现 Catia V5 自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  C# Attributes and their uses(C# 属性及其用途)
                  C# - Getting all enums value by attribute(C# - 按属性获取所有枚举值)

                  • <tfoot id='UI1qP'></tfoot>
                      <bdo id='UI1qP'></bdo><ul id='UI1qP'></ul>

                        <tbody id='UI1qP'></tbody>
                    • <legend id='UI1qP'><style id='UI1qP'><dir id='UI1qP'><q id='UI1qP'></q></dir></style></legend>
                      <i id='UI1qP'><tr id='UI1qP'><dt id='UI1qP'><q id='UI1qP'><span id='UI1qP'><b id='UI1qP'><form id='UI1qP'><ins id='UI1qP'></ins><ul id='UI1qP'></ul><sub id='UI1qP'></sub></form><legend id='UI1qP'></legend><bdo id='UI1qP'><pre id='UI1qP'><center id='UI1qP'></center></pre></bdo></b><th id='UI1qP'></th></span></q></dt></tr></i><div id='UI1qP'><tfoot id='UI1qP'></tfoot><dl id='UI1qP'><fieldset id='UI1qP'></fieldset></dl></div>

                      <small id='UI1qP'></small><noframes id='UI1qP'>