This functionality is provided as a preview
of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the
Fusion API and Scripts forum.
Because this is a preview of future functionality, there is the possibility that it will change, which will possibly
break any existing programs that use this functionality. Because of that, you should never deliver any programs that use
any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.
Defined in namespace "adsk::drawing" and the header file is <Drawing/Symbols/SketchSymbols.h>
Description
Imports sketch symbols from another drawing document or drawing template document into this drawing, making them available to every sheet. Every sketch symbol in the source document is imported; symbols whose names already exist in this drawing are skipped. Importing a symbol does not place it on a sheet; use Sheet.insertSketchSymbol for that.
Returns the sketch symbols that were imported into this drawing. Returns an empty array when the source document defines no sketch symbols or every one of them was skipped, and null when the source document could not be read.
Parameters
Name
Type
Description
dataFile
DataFile
The drawing document (.f2d) or drawing template document (.f2t) to import the sketch symbols from. Must not be null.