Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Superflateen lsp Help.

12 REPLIES 12
Reply
Message 1 of 13
jyan2000
1114 Views, 12 Replies

Superflateen lsp Help.

Hello Forum !
I'm getting this error with superflatten.lsp
Could anyone care to advise / help ?

Command: superflatten
Error: Element not found; error: An error has occurred inside the *error*
functionAutoCAD variable setting rejected: "hpassoc" nil
12 REPLIES 12
Message 2 of 13
Anonymous
in reply to: jyan2000

The latest version 1.2b is attached. It contains a change related to the problem you
mentioned. Please let me know it this fixes it and what version of ACAD you are
using.

Thanks for posting the version you have so I could compare.

Joe Burke


wrote in message news:5796644@discussion.autodesk.com...
Hello Forum !
I'm getting this error with superflatten.lsp
Could anyone care to advise / help ?

Command: superflatten
Error: Element not found; error: An error has occurred inside the *error*
functionAutoCAD variable setting rejected: "hpassoc" nil
Message 3 of 13
jyan2000
in reply to: jyan2000

Hi Joe,
Thanx for ur concern. I'm getting this error with the new version Superflatten 1.2a.lsp.I found something Superflatten 1.2a.lsp working well with ABS (Architectural Building System ) but getting belowe error with Autocad 2008. Any idea / comment?


Command: sf
Error: Element not found; error: An error has occurred inside the *error*
functionAutoCAD variable setting rejected: "explmode" nil

Regards
Victor
Message 4 of 13
Anonymous
in reply to: jyan2000

Victor,

Sorry, the zip file attached to my previous message contained version 1.2a rather
than 1.2b. Please delete version 1.2a and try 1.2b attached.

Let me know if you are still seeing errors in the error handler. I can't imagine why
an error with the explmode var since that goes back to R13. And the error with
hpassoc doesn't make sense either since you are using 2008.

Please let me know if the program is running. IOW, is it flattening the drawing and
the error occurs at the end? Or is it happening at some other point?

Joe Burke

wrote in message news:5796705@discussion.autodesk.com...
Hi Joe,

I'm getting this error with the new version Superflatten 1.2a.lsp. Any idea /
comment?

ACAD 2008
XP


Command: sf
Error: Element not found; error: An error has occurred inside the *error*
functionAutoCAD variable setting rejected: "explmode" nil

Regards
Victor
Message 5 of 13
jyan2000
in reply to: jyan2000

I have installed both Acad 2008 & ABS 2007 ... It works well in ABS 2007 but s till the same error in Acad 2008? Is it related to ABS ( architectural Building System )?

Command: sf
Error: Element not found; error: An error has occurred inside the *error*
functionAutoCAD variable setting rejected: "explmode" nil


Regards
Victor.
Message 6 of 13
Anonymous
in reply to: jyan2000

Victor,

If you are still getting similar errors with version 1.2b I would appreciate an
example file. If you don't want to post it here, open the LISP file. At the top
you'll see an email address where you can send to me directly.

Thanks
Joe Burke
Message 7 of 13
Anonymous
in reply to: jyan2000

Victor,

The routine has been tested with vanilla 2008.

I have an idea about what might be happening. Please test for me as follows in this
order. Start AutoCAD 2008. Open the file you're working with. Then load SuperFlatten
1.2b and run it. Do not load any other LISP routines after you load SF.

If that fixes the problem (error in error handler) then I think what's happening is
some other LISP routine failed to declare its error handler local to the routine.
Like this:

(defun c:SuperFlatten ( / *error* ...

If such a program is loaded after SF is loaded, I *think* it would cause the problems
you mentioned. If that's what's happening, and thinking about it more I'm fairly sure
that's it, then you will have to determine which routine failed to declare its error
handler local. That situation could cause problems with other LISP routines.

Just checking regarding this:

>> Command: sf
>> Error: Element not found; error: An error has occurred inside the *error*
>> functionAutoCAD variable setting rejected: "explmode" nil

You are saying the error occurs when you run the routine, right? It doesn't even get
to the select objects prompt?

Joe Burke

wrote in message news:5796765@discussion.autodesk.com...
I have installed both Acad 2008 & ABS 2007 ... It works well in ABS 2007 but s till
the same error in Acad 2008? Is it related to ABS ( architectural Building System )?

Command: sf
Error: Element not found; error: An error has occurred inside the *error*
functionAutoCAD variable setting rejected: "explmode" nil


Regards
Victor.
Message 8 of 13
jyan2000
in reply to: jyan2000

>> Command: sf
>> Error: Element not found; error: An error has occurred inside the *error*
>> functionAutoCAD variable setting rejected: "explmode" nil

This error occurs when I run the routine. It’ doesn’t even allow me select object.

It’s working normal when Superflatten.lsp runs alone. Absolutely you are right Joe. Probably it was clashing with another Lsp. Thanx once again Joe.

Regards
Victor
Message 9 of 13
Anonymous
in reply to: jyan2000

Victor,

You're welcome and I'm glad to hear it's working now.

Joe Burke

wrote in message news:5797671@discussion.autodesk.com...
>> Command: sf
>> Error: Element not found; error: An error has occurred inside the *error*
>> functionAutoCAD variable setting rejected: "explmode" nil

This error occurs when I run the routine. It' doesn't even allow me select object.

It's working normal when Superflatten.lsp runs alone. Absolutely you are right Joe.
Probably it was clashing with another Lsp. Thanx once again Joe.

Regards
Victor
Message 10 of 13
adamchr
in reply to: Anonymous

(sorry to bump an ancient thread with a completely beginner question)

 

Someone alerted me to superflatten, and I'm interested in using it to flatten a surveyor's topo file so that i can work with it in 2d. It seems like it's just the right thing.

 

However, I've never used an .lsp file -- how do i go about that?

 

Where should it reside in my file structure?

How do I call the program to start working?

 

I'm on acad lt 2013 for mac.

 

Thanks up front!

Adam

Message 11 of 13
Kent1Cooper
in reply to: adamchr


@adamchr wrote:

(sorry to bump an ancient thread with a completely beginner question)

... I've never used an .lsp file -- how do i go about that?

.... 

I'm on acad lt 2013 for mac.

....


I'm sorry to have to inform you that if you're using ACAD LT, you won't be able to use that routine, or any AutoLISP code -- Lisp interpretation is not a part of LT, but it requires a "full" version of AutoCAD.  [If you get one, write back, and people can tell you how to go about using the routine, or there may be things like Knowledge Base articles about such things.]

Kent Cooper, AIA
Message 12 of 13
adamchr
in reply to: Kent1Cooper

Kent, thx -- that probably explains why i wasn't having success with such basics 🙂
Message 13 of 13
sandro25
in reply to: Anonymous

Hi!

 

I got this error message when I tried to use the Superflatten.lsp on one of my drawings...

 

error: bad argument type: numberp: nilbad argument type: VLA-OBJECT nilCommand:

 

Can someone please help me solve this problem.

Thanks in advance.

 

Sandro

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost