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

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
查看: 12914|回复: 3
打印 上一主题 下一主题

[求助] 如何在指定的位置创建标注

[复制链接]
1
发表于 2013-10-10 14:01:37 | 显示全部楼层
我做的是在点上创建标注:
piFactAdv -> CreateTextOnGeometry (pSelection, Plane, &CATUcString , &piText);

pSelection就是创建标注的位置,我把CATPoint buildPath后:
CATPathElement* pPathElement = NULL;
                                        CATIBuildPath* pBuildPath = NULL;  

                                        HRESULT rc1 = spSpecPoint1-> QueryInterface(IID_CATIBuildPath,(void**)&pBuildPath);
                                        CATPathElement activePath = CATFrmEditor::GetCurrentEditor()->GetUIActiveObject();
                                        HRESULT rc2 = pBuildPath->ExtractPathElement(&activePath,&pPathElement);
                                        if(!!pBuildPath)
                                        {
                                                pBuildPath->Release();
                                                pBuildPath = NULL;
                                        }
                                        CATSO * pSelection = new CATSO(0);
                                        pSelection->AddElement(pPathElement,0);

生成pSelection,没试过其他几何元素的创建。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

GMT+8, 2025-7-19 09:47 , Processed in 0.020318 second(s), 12 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2025 www.iCAx.org

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