TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Sam on April 02, 2016, 03:08:20 AM

Title: error: Automation Error. File system error
Post by: Sam on April 02, 2016, 03:08:20 AM
dear all,

flie load create layer but error are comes
Quote
error: Automation Error. File system error
Title: Re: error: Automation Error. File system error
Post by: Andrea on April 04, 2016, 05:07:11 PM
Code: [Select]
(vla-load
   (vla-Get-Linetypes doc) (nth 2 x) "Metric_iso.lin")

it seem that it can not found the linetype or the .lin file.
check your setting. or put a condition (if (findfile ....
Title: Re: error: Automation Error. File system error
Post by: ChrisCarlson on April 05, 2016, 07:59:24 AM
Anytime you are reading a file you should wrap the read in an if/cond statement. Also check your support path to make sure Metric_iso.lin is in a directory AutoCAD parses.