Create drawings from models (Creo Elements/Direct Annotation) > Advanced topics > Customization for advanced users > Export 2D functions
  
Export 2D functions
You can customize the following areas of Creo Elements/Direct Annotation relating to exporting data to 2D:
The ACTIVATE-BSPLINE-CHECK function
The DOCU-ENABLE-TOTAL-MERGE-FOR-EXPORT function
The DOCU-DEFINE-EXPORT-FONTS function
The ACTIVATE-BSPLINE-CHECK function
Occasionally, problems occurred in older revisions of Creo Elements/Direct Modeling in special cases of hatching 2D contours in Creo Elements/Direct Drafting. During the update calculation, B-spline curves derive from the 3D model having multiple control points in one location. This situation could force a "math error" in the hatch algorithm of Creo Elements/Direct Drafting. Such cases were especially related to data with a low resolution (1E-2 or 1E-3).
The ACTIVATE-BSPLINE-CHECK function can be used to force an additional repair algorithm to avoid these cases. The default value is true (t); the check is performed.
Syntax
(ACTIVATE-BSPLINE-CHECK t or nil)
Additionally, you can determine the current value of this switch with the predicate function:
(ACTIVATE-BSPLINE-CHECK-P)
The DOCU-ENABLE-TOTAL-MERGE-FOR-EXPORT function
When you export a sheet to MI, two settings in the Export MI command influence each other: "No System Infotexts" and "Merge All Elements". By default, Creo Elements/Direct Annotation first merges elements, and then deletes infotexts. However, during the export, elements that do not have exactly the same infotexts are not merged. Therefore, the DOCU-ENABLE-TOTAL-MERGE-FOR-EXPORT function is available so that you can specify infotexts to be deleted first, and then elements merged, so that all elements are merged.
The default setting (nil) is to merge elements before deleting infotexts; the t setting deletes infotexts before merging elements.
Syntax
(DOCU-ENABLE-TOTAL-MERGE-FOR-EXPORT t or nil)
The DOCU-DEFINE-EXPORT-FONTS function
When exporting sheets to MI, DXF, or IGES, you have the option to convert text to geometry. The DOCU-DEFINE-EXPORT-FONTS function can be used to define specific fonts to be converted or specific fonts to be retained as text. You also have the option to convert all or no fonts.
Syntax
(DOCU-DEFINE-EXPORT-FONTS---+--->:TO_GEO----+-----+--->[font list]--->+--->
| | | ^
`--->:TO_TEXT---' |--->:ALL---------->|
| |
`--->:NONE--------->'
Options
:TO_GEO specifies that all text using the listed fonts be converted to geometry.
:TO_TEXT specifies that all text using the listed fonts be retained as text; that is, it will NOT be converted to geometry.
The font list is a list of strings indicating the fonts to convert or not to convert. The list is expressed as either
(DOCU-DEFINE-EXPORT-FONTS :TO_GEO ' ("font1" "font2" ...)) or
(DOCU-DEFINE-EXPORT-FONTS :TO_GEO (LIST "font1" "font2" ...))
:ALL specifies all fonts.
:NONE specifies an empty font list.