找回密码 注册 QQ登录
一站式解决方案

iCAx开思网

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

[讨论] 有些尺寸将被隐藏。

[复制链接]
跳转到指定楼层
1
发表于 2015-4-16 17:19:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 ning58 于 2015-4-16 17:28 编辑


完全自己用API方法编制的程序,运行结果提示如上图。




Function Create2View(SwDraw As DrawingDoc, AsmPrt, ConfName, View1, X1, Y1, View2, X2, Y2, oScale, RegExp As RegExp)
   Dim ViewName, SwView As View, SwView1 As View
     ViewName = "Front"
     ViewName = "前视"
         ''
         With SwDraw
             ''''
             Set SwView = .CreateDrawViewFromModelView3(AsmPrt, "*" & ViewName, X1 / 1000, Y1 / 1000, 0)       ''
             SwView.SetName2 View1
             ''
             Set SwView1 = .CreateUnfoldedViewAt3(X2 / 1000, Y2 / 1000, 0, False)            '
             SwView1.SetName2 View2
             ''
             ''
             .InsertModelAnnotations3 0, swInsertDimensionsMarkedForDrawing, True, True, True, False
             ''
             .InsertModelAnnotations3 0, swInsertDimensions, True, True, True, False
             ''Debug.Print SwView.Name,

             SwView.ScaleDecimal = 1 / oScale
             SwView.ReferencedConfiguration = ConfName
             SwView1.ReferencedConfiguration = ConfName
             'Stop
         End With
         ''
         If Not RegExp Is Nothing Then
            delDim SwDraw, SwView, RegExp
         End If
         With SwDraw
            .ForceRebuild3 True
            .ViewZoomtofit
         End With
End Function

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

GMT+8, 2024-9-23 20:19 , Processed in 0.020730 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

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