我们在处理模型文件时,总会遇到内存环境的清除问题。一个干净的Creo工作环境,是保证工作能顺利完成的保障。
ProMdlEraseNotDisplayed() 函数 提供了清除未显示模型的功能。
当需要循环执行某些事物时,在打开新模型前执行该函数,会使工作环境干净。
ProMdlErase(ProMdl mdl )函数的说明是这样的:
The erasing action caused by this function will be finished only after the execution control is returned to Creo Parametric . Therefore, calling other functions after this function without returning the control may lead to an unpredicted behavior.
表明删除函数只在执行完某些事物返回到Creo时才能完成删除功能。因此,在一项事物中,若不停地执行Load函数,则会使内存中加载很多模型。从而导致 程序 执行效率下降。
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删