Peiman
26-09-2008, 11:16 AM
I've tried to export 3ds file using c:3dsout external function but it raised an error :
"incorrect type for parameter 5"
which refers to the filename. Although for the first time it worked and exported the file but then it failed to export. even restarting autocad and deleting the exported file didn't changed anything, and it couldnt run the same code again.
my code was :
(setq ss (ssget))
(c:3dsout ss 0 2 30 0 "a.3ds") or (c:3dsout ss 0 2 5 0 "e://a.3ds") or
(c:3dsout ss 0 2 5 0 "e:\a.3ds")
"incorrect type for parameter 5"
which refers to the filename. Although for the first time it worked and exported the file but then it failed to export. even restarting autocad and deleting the exported file didn't changed anything, and it couldnt run the same code again.
my code was :
(setq ss (ssget))
(c:3dsout ss 0 2 30 0 "a.3ds") or (c:3dsout ss 0 2 5 0 "e://a.3ds") or
(c:3dsout ss 0 2 5 0 "e:\a.3ds")