Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 783

Save Assembly File to new file name (SaveAs) in NXOpen (Python)

$
0
0

Hello all,

I'm looking for a way to save my NX assembly file to a new name. I can currently save the modifications I make in my journal using:

theSession = NXOpen.Session.GetSession()
theSession.Parts.SaveAll()

I've tried using the following,

import NXOpen.UF
theUFSession = NXOpen.UF.UFSession.GetUFSession()
 
theUFSession.Part.SaveAs('newFileName')

but I received the following error: "NXOpen.NXException: No write access"

Does anyone have any insight on this? Thanks for any help in advance!

-Sam


Viewing all articles
Browse latest Browse all 783

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>