AutoLisp Function wd_ss2_import_curdwg Not Working

AutoLisp Function wd_ss2_import_curdwg Not Working

david.faunce
Enthusiast Enthusiast
670 Views
1 Reply
Message 1 of 2

AutoLisp Function wd_ss2_import_curdwg Not Working

david.faunce
Enthusiast
Enthusiast

I'm Using AutoCAD Electrical 2017

 

In my active drawing I went to "Import/Export Data" -> "To Spreadsheet"

 

I modified a block's text in the "comp" tab -> Saved

 

On the command line I entered the following:

(c:wd_ss2_import_curdwg "C:\Users\Documents\testData.xls" 1 1)

 

Nothing happened, not even an error

 

I also tried the following:

(c:wd_ss2_import_curdwg "C:\Users\Documents\testData.xls" "1" 1)

(c:wd_ss2_import_curdwg "C:\Users\Documents\testData.xls" "1" "1")

(c:wd_ss2_import_curdwg "C:\Users\Documents\testData" 1 1)

(c:wd_ss2_import_curdwg "C:\Users\Documents\testData" "1" 1)

(c:wd_ss2_import_curdwg "C:\Users\Documents\testData" "1" "1")

 

Still nothing.

 

Then I checked to see if my spreadsheet was corrupted, so i went to "Import/Export Data" -> "From Spreadsheet" and loaded the spreadsheet.

It worked perfectly...but only if I manually did it.

 

This shows that something is wrong with my function (or AutoCAD has some bugs).

 

Can anyone help??

0 Likes
671 Views
1 Reply
Reply (1)
Message 2 of 2

john.uhden
Mentor
Mentor

I don't have Electrical 2017 or anything 2017, but I wonder...

 

Is c:wd_ss2_import_curdwg really an AutoLisp command function?

Is that what the menu item "Import/Export Data" -> "From Spreadsheet" calls?

Are there other arguments provided in the menu item?  C: functions are usually (in fact almost always) not written to take/require arguments.

Might it actually be wd_ss2_import_curdwg, wherein you should use (command "wd_ss2_import_curdwg" etc.)?

Might the command need to be preceded with (initdia)?

 

I wish I actually knew the solution, but alas I can only guess.

I doubt that your symptoms are the result of an AutoCAD bug.

John F. Uhden

0 Likes