Submitted by Johannes on Thu, 11/17/2016 - 00:40
Forums:
Hello,
i'm working at a journal which creates a hugh number of colored points on the workpart. The problem is, that the function "Workpart.Points.CreatePoint" and "NXOpen.Features.PointFeatureBuilder" take most of the time and therefore the journal is slow.
I think one reason is that NX does an update every time a point is created.
So my question is: Is there a way to create points without "updating" NX, and do the update at the end of the journal for all points together?
I hope the journal becomes faster this way...
Thanks.
Johannes
re: live update
There are two types of updates: view updates and model updates.
If you want to turn off the view updates until the points are created, this can be accomplished with the .SetDisplay method. Sample code for the .SetDisplay method can be found here:
http://nxjournaling.com/content/screenupdating
If any parts link to the work part, there may be "interpart updates" happening; when your work part changes, the other parts update to make sure that they are still current. In interactive NX, you can delay these interpart updates by going to tools -> update -> interpart update and selecting the appropriate options. The API likely has equivalent functionality, but I don't know the function/method names offhand.
If there are no interpart links, check the modeling preferences -> update options to help minimize unnecessary updates.
The screenupdate works well.
The screenupdate works well.
I will also try the interpart updates in the API.
Thanks a lot!