The IDLffDXF::Write function method writes a file for the DXF entity information this object contains.

## Syntax

Result = Obj->[IDLffDXF::]Write(Filename)

## Return Value

Returns a 1 if successful in writing the file, 0 otherwise.

## Arguments

### Filename

A scalar string containing the full path and filename of the DXF file to be written.

None

## Examples

`; Write a square to a new DXF file using lines:`
`oDXF = OBJ_NEW('IDLffDXF')`
`lines = {IDL_DXF_POLYLINE}`
`lines.dxf_type = 4`
`lines.layer='myLayer'`
`lines.thickness = 1.0`
` `
`; Create clockwise square:`
`lines = REPLICATE(lines, 4)   `
`lines.vertices = PTR_NEW([[0.0,0.0,0.0], \$`
`     [0.0,1.0,0.0]])`
`lines.connectivity = PTR_NEW([0,1])`
`lines.vertices = PTR_NEW([[0.0,1.0,0.0], \$`
`    [1.0,1.0,0.0]])`
`lines.connectivity = PTR_NEW([0,1])`
`lines.vertices = PTR_NEW([[1.0,1.0,0.0], \$`
`    [1.0,0.0,0.0]])`
`lines.connectivity = PTR_NEW([0,1])`
`lines.vertices = PTR_NEW([[1.0,0.0,0.0], \$`
`    [0.0,0.0,0.0]])`
`lines.connectivity = PTR_NEW([0,1])`
`oDXF->PutEntity, lines`
`IF (not oDXF->Write('mySquare.dxf')) THEN \$`
`   PRINT, 'Write Failed.'`
`   ; Clean up the memory in the structs:`
`   OBJ_DESTROY, oDXF`
`   FOR i=0,3 DO BEGIN`
`      PTR_FREE, lines[i].vertices, lines[i].connectivity`
`ENDFOR`

## Version History

 5.2 Introduced
{"ft_lang_label":"__label__en","ft_lang_prob":0.8096826,"math_prob":0.9810498,"size":1101,"snap":"2022-05-2022-21","text_gpt3_token_len":401,"char_repetition_ratio":0.18778487,"word_repetition_ratio":0.0,"special_character_ratio":0.3678474,"punctuation_ratio":0.28832117,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9717781,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-16T05:16:06Z\",\"WARC-Record-ID\":\"<urn:uuid:479d11fe-fe88-4a33-ae3c-79d5d4ac1f7e>\",\"Content-Length\":\"103878\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b43a1d7b-c4fc-47c5-80a1-2479275706f4>\",\"WARC-Concurrent-To\":\"<urn:uuid:2773ffd1-c7a4-47d9-9a1f-e2f3e317dfdc>\",\"WARC-IP-Address\":\"192.5.156.19\",\"WARC-Target-URI\":\"https://www.l3harrisgeospatial.com/docs/IDLffDXF__Write.html\",\"WARC-Payload-Digest\":\"sha1:VNIBZSNJPJVPCYDLIR3CITXWR257AV4A\",\"WARC-Block-Digest\":\"sha1:STZUWKQIW2ZG3AJXBWVDVUS6GVBGW46W\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662509990.19_warc_CC-MAIN-20220516041337-20220516071337-00439.warc.gz\"}"}