Wesley_Amsterdam Posted January 15, 2015 Share Posted January 15, 2015 First you need to define your csv-file. (setq csvfile nil) ;; e.g. (setq csvfile "C:/myfolder/myfile.csv") So replace the 'nil' with your filepath. For autorun, make sure you have the following line at the bottom. (c:utb) ;; Remove or comment this line to disable autorun ;;----------------------------------------------------------------------;; ;; End of File ;; ;;----------------------------------------------------------------------;; Quote Link to comment Share on other sites More sharing options...
Bobzy20 Posted January 15, 2015 Share Posted January 15, 2015 Thanks, I'll take a look now. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 15, 2015 Author Share Posted January 15, 2015 Thank you for assisting in my absence Wesley. Quote Link to comment Share on other sites More sharing options...
nonong1191 Posted September 16, 2016 Share Posted September 16, 2016 Lee, First of all, thank you for your lisps. They are a big help! I was using UpdateTitleBlockV1-5 with the Layout tabname column and everything worked great. I upgraded to v1-8 and use it with the layout tabname but without a block name column (the block name column flag is set to nil). I do set the block name filter for a specific block, but v1-8 seems to update all blocks that have the same attribute tag names. Has anyone else reported this problem? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 18, 2016 Author Share Posted September 18, 2016 Lee,First of all, thank you for your lisps. They are a big help! You're welcome! I was using UpdateTitleBlockV1-5 with the Layout tabname column and everything worked great. I upgraded to v1-8 and use it with the layout tabname but without a block name column (the block name column flag is set to nil). I do set the block name filter for a specific block, but v1-8 seems to update all blocks that have the same attribute tag names. Thank you for bringing this issue to my attention - I have now revised my Update Titleblock Attributes application to Version 1.9 which should resolve this issue. Please let me know if the problem recurs. Quote Link to comment Share on other sites More sharing options...
nonong1191 Posted September 20, 2016 Share Posted September 20, 2016 Thanks again, Lee! That does the trick! Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 20, 2016 Author Share Posted September 20, 2016 Excellent - you're welcome! Quote Link to comment Share on other sites More sharing options...
lraimo Posted January 23, 2017 Share Posted January 23, 2017 I am trying to use UpdateTitleBlockV1.9. I downloaded the provided sample files from the website. However, if I run the program, I get error "Sample not found in first column of CSV file." Why is that and how can I get it to work? I am using AutoCad LT 2012 with CADSTA MAX 2012 on Windows 10. Thanks! Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 23, 2017 Author Share Posted January 23, 2017 I am trying to use UpdateTitleBlockV1.9.I downloaded the provided sample files from the website. However, if I run the program, I get error "Sample not found in first column of CSV file." Why is that and how can I get it to work? I am using AutoCad LT 2012 with CADSTA MAX 2012 on Windows 10. Thanks! Is your system perhaps configured to use a semi-colon character when generating CSV files? If so, my sample CSV file uses a comma delimiter character and so the data fields will not be separated when the CSV file is read. To test this theory, please try replacing the existing Sample.csv file with the attached CSV file (which uses a semi-colon delimiter) and please try the program again. Sample.csv Quote Link to comment Share on other sites More sharing options...
lraimo Posted January 24, 2017 Share Posted January 24, 2017 Yes my system is configured to use a semi-colon character when generating CSV files. But if I use the new csv file I get error "; error: bad argument type: stringp" My system Customise Format settings: Quote Link to comment Share on other sites More sharing options...
lraimo Posted January 24, 2017 Share Posted January 24, 2017 Picture did not show so here is the link: https://www.dropbox.com/s/yzd2hz3mwef1mpg/List%20separator.png?dl=0 Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 24, 2017 Author Share Posted January 24, 2017 Yes my system is configured to use a semi-colon character when generating CSV files.But if I use the new csv file I get error "; error: bad argument type: stringp" My system Customise Format settings: What is the rest of the error message? ; error: bad argument type: stringp [highlight]< ... >[/highlight] Could you please generate a CSV file using your system and attach it here? Quote Link to comment Share on other sites More sharing options...
lraimo Posted January 24, 2017 Share Posted January 24, 2017 It's is the whole error message. Added picture of AutoCAD command line. Added CSV file generated by my system. Sample.csv Quote Link to comment Share on other sites More sharing options...
Steven P Posted January 24, 2017 Share Posted January 24, 2017 Thanks, that looks useful Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 24, 2017 Author Share Posted January 24, 2017 It's is the whole error message.Added picture of AutoCAD command line. Added CSV file generated by my system. Have you modified the published code in any way? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 24, 2017 Author Share Posted January 24, 2017 lraimo has not included the .dwg extension in the .csv file. I think that is the cause of the issue. No, the file extension is optional; I would guess that the error is caused by an incorrect modification of the 'utb:csv' parameter on line 126. Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted January 24, 2017 Share Posted January 24, 2017 @Lee: Yes, after rereading the code I realised that and therefore decided to erase the post you have quoted. Maybe the name of the user's test dwg is not 'Sample.dwg'? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 24, 2017 Author Share Posted January 24, 2017 Maybe the name of the user's test dwg is not 'Sample.dwg'? Thank you for the suggestion, however the code accounts for this and therefore this shouldn't cause a string error on load as the user is reporting. Quote Link to comment Share on other sites More sharing options...
lraimo Posted January 24, 2017 Share Posted January 24, 2017 Have you modified the published code in any way? No I have not modified the code. Maybe the name of the user's test dwg is not 'Sample.dwg'? dwg name is Sample.dwg Maybe the problem is caused because I use AutoCAD LT and CADSTA Max? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted January 24, 2017 Author Share Posted January 24, 2017 maybe the problem is caused because i use autocad lt and cadsta max? ^^ This ^^ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.