Macro customization
The Task Agent provides some customization hooks in macros that can be used to customize jobs. The macro files are found in:
C:\Program Files\PTC\Creo Elements\Direct Manager Server 20.8\taskagent\drafting
• js_customize.m
This macro file contains general customization hooks for all jobs. More details can be found in the macro file comments.
• js_customize_plot.m
This macro file contains customization hooks for plot jobs. More details can be found in the macro file comments.
• js_customize_viewables.m
This macro file contains customization hooks for viewable jobs. More details can be found in the macro file comments.
• js_macros.m
This macro file enables multi-language support for the Creo Elements/Direct Drafting drawings when you publish the drawings using the Task Agent.
To enable multi-language support, add the following macros under the Js_load_drawing definition in the js_macros.m file.
◦ Mandatory macros:
SET_MULTI_LANG_DIR "<directory path of multi-lang table>" END
CHANGE_DRAWING_MULTILANG <PRIMARY_LANG_KEY> <SECONDARY_LANG_KEY> END
For example:
SET_MULTI_LANG_DIR "D:\DCorp_t" END
CHANGE_DRAWING_MULTILANG LANG_1 LANG_2 END
◦ Optional macros for drawings that are created in versions before Creo Elements/Direct Drafting 20.7.0.0:
SET_DISPLAY_ON_SEPARATE_LINE OFF
SET_MULTI_LANG_SEPARATOR "<separator char>" END
OR
SET_DISPLAY_ON_SEPARATE_LINE ON
For example:
SET_MULTI_LANG_SEPARATOR "/"
SET_MULTI_LANG_SEPARATOR "**"
For more details about the macros, see the Creo Elements/Direct Drafting Programming Reference Guide.
|
|
As Creo Elements/Direct Drafting has limited symbols, symbols in the published drawings may look different from the symbols in published Creo Elements/Direct Annotation drawings.
|