CREO的config.pro可以通过session.SetConfigOption来更新,
比如一下工程图的配置也有类似的方法吗
There is a file that can be used to setup the defaults for a new drawing. Traditionally it has been called "drwsetup.dtl". It is brought into a user's session by identifying it in the config.pro with a line like:
drawing_setup_file c:\ptc\DefaultFiles\drwsetup.dtl
If you want to update an existing drawing with these settings, you have to load the drawing, then load the "drwsetup.dtl" file and apply it. Tedious if you have a lot of files but probably not that bad if you are doing the updates with a program?
非常感谢你的回复,但我是想在二次开发中动态的设置工程图中的配置文件,不是CREO启动时的静态加载。
For ProToolkit
ProDrawingSetupOptionGet()
ProDrawingSetupOptionSet()