The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 Titleblock Update Wizard Error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

WhatTheHeckBeck
Starting Member



USA
3 Posts

Posted - June 17 2021 :  1:21:56 PM  Show Profile  Reply with Quote
I've been using hurricane for a long time, and encountered a new problem. Recently when I try to run a script using the Titleblock Update Wizard, I get the following error at the command line and the attributes fail to update.

Command: TB_WIZ1
Enter BLOCK NAME: "Title Block"
Enter the ATTRIBUTE NAME to change: Insulation Type
Enter new attribute VALUE: (CG)
; error: bad argument type: lentityp nil

I don't have this issue when I use basic scripts. Running on AutoCAD 2020.

Any help is greatly appreciated.

-Beck

Admin
Administrator



652 Posts

Posted - June 17 2021 :  2:06:45 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi,

Does this happen with ALL your drawings, or just a particular one?
Thanks!

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

Admin
Administrator



652 Posts

Posted - June 17 2021 :  2:13:13 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Oh, just occurred to me... the error says bad argument...

Thus, the (CG) may be the problem.

Maybe the brackets are being picked up as lisp.
Try changing (CG) to something else... (without brackets for now).

If it works, then you know that is the issue.

Then can try encapsulating with quotes etc "(CG)" instead... or '(CG)'. Just thinking outside the box for now... I don't have your drawing so can't play... ;)

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

WhatTheHeckBeck
Starting Member



USA
3 Posts

Posted - June 17 2021 :  2:34:14 PM  Show Profile  Reply with Quote
Thanks for the replies!

It's actually more confusing now. So to answer your first question, this has been happening in all drawings. However, I did try updating another attribute that didn't require any special characters, and it worked. So then I removed the parenthesis from the "Insulation Type" attribute, but it still didn't work. Here's an example of what I'm getting now:

Command: (LOAD "C:/HURRICANE FOR AUTOCAD/LISP/TB_WIZ1.LSP")
TB_WIZ1.LSP Ver. 1.0.1
C:TB_WIZ1
Command: TB_WIZ1
Enter BLOCK NAME: "Title Block"
Enter the ATTRIBUTE NAME to change: Insulation Type
Enter new attribute VALUE: CG
; error: bad argument type: lentityp nil
Command:
Command: TB_WIZ1
Enter BLOCK NAME: "Title Block"
Enter the ATTRIBUTE NAME to change: REV
Enter new attribute VALUE: 1
Command:
Command: REGEN
Command: Regenerating model.

The "REV" attribute does get updated but the "Insulation Type" does not.

-Beck
Go to Top of Page

WhatTheHeckBeck
Starting Member



USA
3 Posts

Posted - June 17 2021 :  2:42:03 PM  Show Profile  Reply with Quote
Sorry, here's the drawing with some attributes and company logos removed.

I also tried putting quotes around the desired text and it didn't work either.

Enter the ATTRIBUTE NAME to change: Insulation Type
Enter new attribute VALUE: "(CG)"
; error: bad argument type: lentityp nil

Download Attachment: TO-0521-1.zip
107.29 KB

-Beck
Go to Top of Page

Admin
Administrator



652 Posts

Posted - June 21 2021 :  10:29:18 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hmmm... not sure how to fix this... I'm no lisp expert...

There is this posting here... regarding the error message...
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-error-bad-argument-type-lentityp-nil/td-p/9557073

Can anyone that knows lisp chime-in?

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.41 seconds. Snitz Forums 2000