Skip to main content
4-Participant
July 10, 2021
Question

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

  • July 10, 2021
  • 2 replies
  • 2207 views

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

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

 

2 replies

KenFarley
21-Topaz II
July 12, 2021

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?

WJT2764-ParticipantAuthor
4-Participant
July 13, 2021

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

17-Peridot
July 13, 2021

For ProToolkit

ProDrawingSetupOptionGet()
ProDrawingSetupOptionSet()