|
地板

楼主 |
发表于 2021-4-23 14:43:17
|
只看该作者
刚还有一个说,ReplaceReferencedDocument 的回帖,咋不显示了?
想请教两个个问题。
问题1:
Function MoveDocument( _
ByVal SourceDoc As System.String, _
ByVal DestDoc As System.String, _
ByVal FromChildren As System.Object, _
ByVal ToChildren As System.Object, _
ByVal Option As System.Integer _
) As System.Integer
FromChildren 和 ToChildren 是干啥用的? 我用“”试了一下,也没啥大问题。
问题2
装配体1,内有文件 零件1,零件2
零件2参考零件1
现在改零件1的名称为零件3。 就是用的这个MoveDocument
用ReplaceReferencedDocument处理装配体1,返回成功
打开文件,各种关系也对。(只是刚打开装配体1的时候左边零件列表栏里还是显示零件1,重建模型以后就显示零件3了)
这个零件2就不需要单独处理了,而且用用ReplaceReferencedDocument处理也返回错误。这是为啥?
|
|