QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

查看: 1457|回复: 0
收起左侧

[求助] 自定义属性

[复制链接]
发表于 2008-10-19 18:04:43 | 显示全部楼层 |阅读模式 来自: 中国北京

马上注册,结识高手,享用更多资源,轻松玩转三维网社区。

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

x
下面的代码可以给文件添加自定义属性,但添加时文件如Part1必须在SE中关闭,请问如果想给SE中当前打开的文件添加属性该如何修改?谢谢6 f0 I5 k: `, J; Q. G' O% V
Dim objPropertySets As SolidEdgeFileProperties.PropertySets
- q! H+ h. l/ Q  ]& F. j9 k/ k$ s" ]* HDim objProperties As SolidEdgeFileProperties.Properties
4 U& Q+ R" V6 I8 l1 w4 g5 i7 k$ J5 kDim objProperty As SolidEdgeFileProperties.Property6 {4 b) `- [  _
3 q, Z% s' C8 B5 q6 v
Set objPropertySets = New SolidEdgeFileProperties.PropertySets
0 }! n% Q( v0 W% I8 Y2 Y8 YCall objPropertySets.Open("C:\Part1.par", False)- {. G9 a; S! J9 [$ r
Set objProperties = objPropertySets.Item("Custom")
( n% }# k5 A9 ~; C/ t/ |( F% p% S  |. \Set objProperty = objProperties.Add("My Custom Property", "My Custom Value")
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则


Licensed Copyright © 2016-2020 http://www.3dportal.cn/ All Rights Reserved 京 ICP备13008828号

小黑屋|手机版|Archiver|三维网 ( 京ICP备2023026364号-1 )

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