下图为NXOpen Python的参考指南
代码如下
import NXOpen.UF
ufsession=NXOpen.UF.UFSession.GetUFSession()
t=ufsession.Assem.RepositionInstance(51800,[0.0,50.0,0.0],[1.0,1.0,0.0,-1.0,1.0,0.0])
ufsession.Ui.OpenListingWindow()
ufsession.Ui.WriteListingWindow('{}'.format(t))
效果如下