乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 42|回复: 1

[综合讨论] Solidworks API - Programmatica

[复制链接]

3

主题

11

帖子

8

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-8 21:20:20 | 显示全部楼层 |阅读模式
I am selecting dimensions in a part file for an operation.  After the operation is complete, I run a "swPart.HideDimension" (so I don't select them twice), which works properly.
 
To recover when I'm done, I need to programmatically loop through all the dimensions in the part and un-hide them.  I have searched and searched and cannot find the trick.  Lots of drawing stuff, no part stuff.
 
Is it annotation, or something else?
 
Thank you.
回复

使用道具 举报

3

主题

11

帖子

8

银币

初来乍到

Rank: 1

铜币
15
发表于 2022-7-8 22:49:46 | 显示全部楼层
I got it.
 
Shortened....
 
Set swDispDim = swFeat.GetFirstDisplayDimension
  While Not swDispDim Is Nothing
    Set swAnn = swDispDim.GetAnnotation
    swAnn.Visible = swAnnotationVisible
    Set swFeat = swFeat.GetNextFeature
  Wend
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-6-8 06:00 , Processed in 0.400233 second(s), 67 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表