我想在我的设计中创建一个宏 get properties of part & amp;product。我需要获取 partnumber of part。当我在 Tree 中选择或用“Product selection”选择时。它使用相同的代码:
Dim objSel
Set objSel = Catia.ActiveDocument.Selection
parNo= objSel.Item(1).Value.PartNumber
但这并不方便。我想在选择任何对象 (Edge,plane,suce...) 时获取 PartNumber。无论如何,我怎样才能得到它?
Thanks & amp;Best regards,
如果要在程序集中进行选择,则可以使用Leafproduct
而不是Value
parNo = objSel.Item(1).LeafProduct.PartNumber
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(40条)