Export functions or shapes to I-DEAS ADF.
writeadf('filename',f,g,...)
writeadf('filename',f,'delete')
writeadf('*.afu',f,'silent','noprogbar')
writeadf('*.afu',f,g,'overwrite',[1 2 4 6])
WRITEADF writes one or more imat_fn or imat_shp variables to an I-DEAS ADF. The filename should include the extension, either .afu for a function ADF, .ati for a time history ADF, or .ash for a shape ADF. The variables to be written should be compatible with the desired ADF type. If you pass in the string 'silent', WRITEADF will suppress output. The optional input string 'noprogbar' will suppress the progress bar.
If the specified file exists, then by default the records will be appended to the file. Otherwise, a new file will be created. The optional input string 'delete' will delete the ADF before writing to it, if it exists.
If the 'overwrite' option is used, WRITEADF will overwrite records in the ADF rather than appending them to the end of the ADF. RECIND is a vector of indices into the ADF for which records to overwrite. It must be the same length as the total valid number of records to write, and must contain valid record numbers. To see a list of valid record numbers in the ADF, see column 1 of the ADF header matrix returned by READADF with the 'adfheader' option.
If the filename has wildcards, or no filename argument is provided, then a standard file dialog will be presented to allow the user to choose the file to write. Note that if you choose an existing ADF from the file dialog, you will get a warning that the file will be replaced. Please ignore this message, as it is hard-wired into MATLAB's file dialog.
>>
writeadf('/users/testdata/run01_updated.afu', f);
>>
writeadf('file.afu', f, 'overwrite', [1 4]);
>> writeadf('*.ash', s);