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

ENTSEL problem, AutoLisp for Attribute info

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
d_r_wright
359 Views, 5 Replies

ENTSEL problem, AutoLisp for Attribute info

Greetings,

 

I have written this function to get the Values of 2 specific attiributes in a block and put the values of those attributes in another block.

Everything works fine when I choose a block with those specific attributes. If I choose a block that does not have those attributes, I want to display the message "One or Both of the Part Number attributes not found in part block", instead the function just picks the attributes of a different block in the drawing and uses those.

 

There are 3 blocks in the drawing that have the invisible attributes that I want to find in the block and one block called FAKE that does not.

I have not been able to find my stupidity, hopefully someone can help me out here.

 

I have attached a drawing and BOMxfr20.lsp.

 

Thanks,  

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

Hi d_r_wright

the BOMxfr20.lsp didn't attached, try to zip the file, then attach.

Henrique

EESignature

Message 3 of 6
d_r_wright
in reply to: hmsilva

OK,

 

See if the zipped LISP file makes it.

Message 4 of 6
hmsilva
in reply to: d_r_wright

Try the quick revised code...

 

Henrique

EESignature

Message 5 of 6
d_r_wright
in reply to: hmsilva

Henrique,

 

Your modifications have fixed the world! Thanks for taking the time to look it over.

 

Doug

 

 

Message 6 of 6
hmsilva
in reply to: d_r_wright

You're welcome, Doug
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