cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

大家好,工程图中的配置能否像config.pro通过代码来更新呢

WJT276
4-Participant

大家好,工程图中的配置能否像config.pro通过代码来更新呢

CREO的config.pro可以通过session.SetConfigOption来更新,

比如一下工程图的配置也有类似的方法吗

 

3 REPLIES 3
KenFarley
21-Topaz I
(To:WJT276)

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?

WJT276
4-Participant
(To:KenFarley)

非常感谢你的回复,但我是想在二次开发中动态的设置工程图中的配置文件,不是CREO启动时的静态加载。

For ProToolkit

ProDrawingSetupOptionGet()
ProDrawingSetupOptionSet()

Announcements


Top Tags