iCAx开思工具箱

标题: 高手赐教:在DELMIA DPM中 GetItem("PPRProduct") 出错。 [打印本页]

作者: mk365    时间: 2008-7-16 20:02
标题: 高手赐教:在DELMIA DPM中 GetItem("PPRProduct") 出错。
在DELMIA  DPM中
用宏录制完装配仿真路径如下:
在vba编辑调试到
“Dim product1 As Product
   Set product1 = processDocument1.GetItem("PPRProduct")
”时,弹出“对象不支持该动作”,无法调用产品。望高手赐教!!
.........
Dim processDocument1 As ProcessDocument
Set processDocument1 = DELMIA.ActiveDocument

Dim fittingWorkbench1 As FittingWorkbench
Set fittingWorkbench1 = processDocument1.GetWorkbench("FittingWorkbench")

Dim shuttles1 As Shuttles
Set shuttles1 = fittingWorkbench1.Shuttles

Dim shuttle1 As Shuttle
Set shuttle1 = shuttles1.AddFromSel()

Dim group1 As Group
Set group1 = shuttle1.Group


Dim product1 As Product
Set product1 = processDocument1.GetItem("PPRProduct")
’后面就过不去了,不知道怎么解决


Dim products1 As Products
Set products1 = product1.Products

Dim product2 As Product
Set product2 = products1.Item("Item.1")

Dim products2 As Products
Set products2 = product2.Products
.........
作者: coury    时间: 2008-11-26 15:36
缺失Product 路径阿,Process节点下的Produc只是一个关系,但是么有把Product实例化!
作者: 南飞若燕    时间: 2013-12-3 20:05
你好 我也遇到同样的问题 请问怎么改呢  
作者: designergx    时间: 2014-3-24 16:31
我也碰到过,还有就是仿真后太大,怎么压缩




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3