If clause linked to block's attributes

If clause linked to block's attributes

k.tsolidis
Explorer Explorer
764 Views
3 Replies
Message 1 of 4

If clause linked to block's attributes

k.tsolidis
Explorer
Explorer

Hello everyone,


I have a lot of blocks with attributes and I am exporting them in a spreadsheet. Through this procedure, I am able to change my data (attribute’s insertions) simultaneously to a lot of blocks and import it again to my .dwg file (express tools->import attributes).


I was wondering, if there is any possibility, when I import the new attributes from the excel file, to have something like an if clause running in my drawing, for Example: “If attribute’s value is _____ then change block's color to _____” or “If attribute’s value is _____ then replace block _____ with _____”


Is there any other way to achive the above?


I don’t know many thinks about scripts, so any information would be helpful,
Thank you in advance.

0 Likes
765 Views
3 Replies
Replies (3)
Message 2 of 4

David_W_Koch
Mentor
Mentor

That could be done with a custom command.  One way to do that would be to use AutoLISP.


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

0 Likes
Message 3 of 4

k.tsolidis
Explorer
Explorer

David_W._Koch Thank you for your response.

 

I would appreciate it if you could show me how to do it!

I don't really know how to write this specific "IF" command, as well as I am not familiar to AutoLISP.

 

Thank you in advance

 

 

 

0 Likes
Message 4 of 4

DannyNL
Advisor
Advisor

Can you provide an example drawing to show what you have and what you need.

Also include some information on when what should be changed.

0 Likes