Jump to content

Update Titleblock Attributes


Lee Mac

Recommended Posts

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                              ;;
;;----------------------------------------------------------------------;;

Link to comment
Share on other sites

  • 1 year later...

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 months later...

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

List%20separator.png?dl=0

Link to comment
Share on other sites

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:

List%20separator.png?dl=0

 

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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'?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...