|
马上注册,查询更多机械资源,享用更多功能,轻松畅享机械设计招标网。
您需要 登录 才可以下载或查看,没有账号?注册
×
1.删除当前配置的所有属性
- Set swApp = Application.SldWorks
- Set Part = swApp.ActiveDoc
- ConfName = Part.GetActiveConfiguration.Name
- Set CusPropMgr = Part.Extension.CustomPropertyManager(ConfName)
- Vnamearr = CusPropMgr.GetNames
- If Not IsEmpty(Vnamearr) Then
- For Each Vnamearr2 In Vnamearr
- bRet = Part.DeleteCustomInfo2(ConfName, Vnamearr2)
- Next
- End If
复制代码 2.删除所有配置的所有属性
- Set swApp = Application.SldWorks
- Set Part = swApp.ActiveDoc
- CurCFGname = Part.GetConfigurationNames
- CurCFGnameCount = Part.GetConfigurationCount
- For i = 0 To CurCFGnameCount - 1
- Set CusPropMgr = Part.Extension.CustomPropertyManager(CurCFGname(i))
- Vnamearr = CusPropMgr.GetNames
- If Not IsEmpty(Vnamearr) Then
- For Each Vnamearr2 In Vnamearr
- bRet = Part.DeleteCustomInfo2(CurCFGname(i), Vnamearr2)
- Next
- End If
- Next
复制代码
|
|