claforet
Mechanical
- Apr 8, 2010
- 54
I'm trying to write a journal that I can run from the command line which will open a part and export an image of the part as a jpg. But I want it to run without having to open a UG window (i.e. run in the background, I don't want to see the parts being processed). I can do this with a journal which I run on an open part in UG using this code:
s.parts.work.ModelingViews.WorkView.RenderingStyle = NXOpen.View.RenderingStyleType.ShadedWithEdges
s.parts.work.ModelingViews.WorkView.orient(nxopen.view.canned.isometric,0)
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.method=1
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.format=0
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.useibl=false
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.generate
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.save("c:\pic.jpg", true)
But if I make a journal which runs this in the background, it doesn't save any images. Is there a way to do what I'm looking for? I'm in NX7.5.
Thanks
s.parts.work.ModelingViews.WorkView.RenderingStyle = NXOpen.View.RenderingStyleType.ShadedWithEdges
s.parts.work.ModelingViews.WorkView.orient(nxopen.view.canned.isometric,0)
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.method=1
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.format=0
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.useibl=false
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.generate
s.parts.work.ModelingViews.WorkView.HiqhQualityImage.save("c:\pic.jpg", true)
But if I make a journal which runs this in the background, it doesn't save any images. Is there a way to do what I'm looking for? I'm in NX7.5.
Thanks