找回密码 注册 QQ登录
开思网工业级高精度在线3D打印服务

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
12
返回列表 发新帖
打印 上一主题 下一主题

【求助】谁能提供catia二次开发的入门级教程?

[复制链接]
11
发表于 2004-6-30 19:06:09 | 只看该作者
acoka wrote:
   
  俺们这用excell登记cmd的名字啦,help啦,icon的名字什么的  
  然后执行macro,就生成workbench的FW了  
  实际上做workbench就是把自己的命令的ID,按caa规定的格式写的东西用 TIE 建关联(这里只用TIE,而不用BOA)

恩,看来你们做的是比较成熟的。能不能提供点具体的做法?十分感谢。
另外,楼上的这位说的我也知道。别偷笑,呵呵。
12
发表于 2004-7-1 12:47:24 | 只看该作者
据我所知
没有DS的开发伙伴的合同,根本不卖你caa,买了caa.肯定会有个开发顾问派过来,问他就可以的呀
你们那没有?
13
发表于 2004-7-1 19:41:50 | 只看该作者
真实郁闷啊,我也在找开发文档 啊
CAA的在线文档看的太郁闷 了
14
发表于 2004-7-2 13:25:25 | 只看该作者
cms_nuaa wrote:
   
  恩,看来你们做的是比较成熟的。能不能提供点具体的做法?十分感谢。  
  另外,楼上的这位说的我也知道。别偷笑,呵呵。

  
全部的source不能给你,我们这1个人从设计到测试做了1个月,算到cost大约7千美元呢
  
。。。
    ConfigName = Excel.ActiveWorkbook.ActiveSheet.Name
    MyPath = Excel.ActiveWorkbook.Path + "\" + FWName + "\" + ConfigName + "CreationWbench.m" + "\LocalInterfaces\" + ConfigName + "Configuration.h"
  
    Open MyPath For Output As #FileNum
  
    WBName = ConfigName + "CreationWkb"
   &nbsprint #FileNum, "// Copyright WSH 2004"
   &nbsprint #FileNum, ""
   &nbsprint #FileNum, "NewAccess( CATCmdWorkbench, pWorkbench, " + WBName + " );"
   &nbsprint #FileNum, "SetWorkbenchPriority( pWorkbench, 150 );"
   &nbsprint #FileNum, ""
    Print #FileNum, "////////////////////////////////////////////////////////////////"
    Print #FileNum, "/// ToolBar"
    Print #FileNum, ""
  
    ContName = ""
    SubContName = ""
  
    ContObjName = ""
    ContObjPnt = ""
  
    SubContObjName = ""
    SubContObjPnt = ""
  
    CmdObjName = ""
    CmdObjPnt = ""
  
    RootChildObjPrePnt = ""
    ContChildObjPrePnt = ""
    SubContChildObjPrePnt = ""
  
    IsToolVar = True
    RootChildFlg = True
    ContChildFlg = True
    SubContChildFlg = True
  
    For i = FirstRow To LastRow
        If Cells(i, CLASSIFICATION_Col) = Type_Tool Or Cells(i, CLASSIFICATION_Col) = Type_Both Then
            If Cells(i, CONTAINER_Col) <> "" Then
                If Cells(i, CONTAINER_Col) <> ContName Then
  
                    ContChildFlg = True
                    SubContChildFlg = True
  
                    ContName = Cells(i, CONTAINER_Col)
                    SubContName = ""
                    rc = AddContainer("pWorkbench", RootChildObjPrePnt, ConfigName, ContCnt, i, IsToolVar, RootChildFlg, 1)
  
                Else
                    If Cells(i, SUB_CONTAINER_Col) <> "" Then
                        If Cells(i, SUB_CONTAINER_Col) <> SubContName Then
  
                            SubContChildFlg = True
  
                            SubContName = Cells(i, SUB_CONTAINER_Col)
                            rc = AddSubContainer(RootChildObjPrePnt, ContChildObjPrePnt, ConfigName, SubContCnt, i, ContChildFlg, 2)
  
                        Else
                            CmdHdrId = Cells(i, HEADER_ID_Col)
                            rc = AddCommand(ContChildObjPrePnt, SubContChildObjPrePnt, CmdHdrId, ConfigName, CmdCnt, SubContChildFlg, 3)
  
                        End If
                    Else
                        CmdHdrId = Cells(i, HEADER_ID_Col)
                        rc = AddCommander(RootChildObjPrePnt, ContChildObjPrePnt, CmdHdrId, ConfigName, CmdCnt, ContChildFlg, 2)
  
                    End If
                End If
            Else
  
                ContChildFlg = True
  
                ContName = Cells(i, CMD_SEP_Col)
                SubContName = ""
                rc = AddContainer("pWorkbench", RootChildObjPrePnt, ConfigName, ContCnt, i, IsToolVar, RootChildFlg, 1)
  
                CmdHdrId = Cells(i, HEADER_ID_Col)
                rc = AddCommander(RootChildObjPrePnt, "", CmdHdrId, ConfigName, CmdCnt, ContChildFlg, 2)
  
            End If
        End If
    Next i
  
。。。
15
发表于 2004-7-2 19:31:40 | 只看该作者
acoka 无私帮助让我十分感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2024-12-23 19:15 , Processed in 0.026411 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表