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

Extracting Attributes

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
leothebuilder
334 Views, 5 Replies

Extracting Attributes

I have a lisp routine that extracts attributes from a block named "waverage" and displays the values in a dialog box.

The attributes values can be updated in the dialog box

This works fine in the original drawing file this blocks resides in.

If I copy and paste the block in a new drawing file, the routine does not work.

If I "save as" the original drawing file the routine works fine.

In the original file I can change the block name and the routine works fine (provided the lisp reflects the changed blockname)

It has me stumped.

Would appreciate if someone could have a look at this and offer some insight.

5 REPLIES 5
Message 2 of 6
hmsilva
in reply to: leothebuilder

Tested in an old AC2010, without problems...

How is the routine being loaded?

If you load the routine in the dwg where the block was pasted, don't work?

 

Henrique

EESignature

Message 3 of 6
leothebuilder
in reply to: hmsilva

That's correct, if I load the routine in a file where the block was pasted it won't work at all. No error message, nothing.

I've loaded thru Appload as well as drag and drop the lisp file into the open draing.

Message 4 of 6
hmsilva
in reply to: leothebuilder

Which AutoCAD version?

 

EDIT:

Also tested in 2012 and 2014 without problems.
Is the .dcl in one of the Support File Search Paths?
If not, when we start a new dwg, AutoCAD can't find the .dcl.


Henrique

EESignature

Message 5 of 6
leothebuilder
in reply to: hmsilva

Well....I must be losing it, I did not place the dcl file in the search path.

 

Thanks for suggesting the solution!

Message 6 of 6
hmsilva
in reply to: leothebuilder

You're welcome
Glad I could help

Henrique

EESignature

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

Post to forums  

Autodesk Design & Make Report

”Boost