The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 Titleblock Update Wizard Error

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
WhatTheHeckBeck Posted - June 17 2021 : 1:21:56 PM
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.
5   L A T E S T    R E P L I E S    (Newest First)
Admin Posted - June 21 2021 : 10:29:18 AM
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?
WhatTheHeckBeck Posted - June 17 2021 : 2:42:03 PM
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
WhatTheHeckBeck Posted - June 17 2021 : 2:34:14 PM
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.
Admin Posted - June 17 2021 : 2:13:13 PM
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... ;)
Admin Posted - June 17 2021 : 2:06:45 PM
Hi,

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

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.19 seconds. Snitz Forums 2000