AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Terminal Attributes

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
leeb1972
614 Views, 5 Replies

Terminal Attributes

I would like to hide the 'Term01' attribute on Terminals only (not compoents) accross my project.

 

Does anyone have any suggestions on how to do this quickly?

 

Thanks in advance.

 

 

5 REPLIES 5
Message 2 of 6
rhesusminus
in reply to: leeb1972

There is no standrad functionality to do this, but I made this quick script that you can run, using the Project -> Utilities:

2014-12-23_19-14-19.png

 

Just check the Run command script file checkbox, and browse for the scr-file that you'll find attached to this post.

2014-12-23_19-10-31.png

 

This script processes all block that has an attribute named TAGSTRIP. If found, it sets this attribute to "invisible".

 

Try it out on a COPY/BACKUP of your project first 🙂

 


Trond Hasse Lie
AutoCAD Electrical and EPLAN expert
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
Message 3 of 6
rhesusminus
in reply to: rhesusminus

Sorry. I misread a little. Attached HERE is the script that hides the TERM01 attribute on Terminals 🙂

 

Merry christmas!


Trond Hasse Lie
AutoCAD Electrical and EPLAN expert
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
Message 4 of 6
leeb1972
in reply to: rhesusminus

Thank so much, that worked a treat.

 

Happy New Year!

Message 5 of 6
Anonymous
in reply to: rhesusminus

Hi Rhesusminus:  I have a similar situation, but not exactly.  Could you make a script that hides the "WIRENO" attribute, and displays the "TERM01" attribute, again only for terminals?  Thanks in advance... Tony


@rhesusminus wrote:

Sorry. I misread a little. Attached HERE is the script that hides the TERM01 attribute on Terminals 🙂

 

Merry christmas!


 

Message 6 of 6
Anonymous
in reply to: Anonymous

Thank you. I took what rhesusminus did and tweaked it (with some help from my local LISP expert) to make TERM01 visible, and WIRENO and WIRENOF invisible:

--

(setq cnt 0)
(setq ss (ssget "X" '((0 . "INSERT"))))
(while (< cnt (sslength ss))
(progn
(if (setq ben (c:ace_getattr_data (ssname ss cnt) "TAGSTRIP"))
(progn
(cond ((c:ace_getattr_data (ssname ss cnt) "WIRENO")
(setq ed (entget (caddr (c:ace_getattr_data (ssname ss cnt) "WIRENO"))))
(setq xx (cdr (assoc 70 ed)))
(entmod (subst (cons 70 1) (assoc 70 ed) ed))))
(cond ((c:ace_getattr_data (ssname ss cnt) "WIRENOF")
(setq ed (entget (caddr (c:ace_getattr_data (ssname ss cnt) "WIRENOF"))))
(setq xx (cdr (assoc 70 ed)))
(entmod (subst (cons 70 1) (assoc 70 ed) ed))))
(cond ((c:ace_getattr_data (ssname ss cnt) "TERM01")
(setq ed (entget (caddr (c:ace_getattr_data (ssname ss cnt) "TERM01"))))
(setq xx (cdr (assoc 70 ed)))
(entmod (subst (cons 70 0) (assoc 70 ed) ed))))
(entupd (caddr ben))
)
)
)
(setq cnt (+ cnt 1))
)

--


@Anonymous wrote:

Hi Rhesusminus:  I have a similar situation, but not exactly.  Could you make a script that hides the "WIRENO" attribute, and displays the "TERM01" attribute, again only for terminals?  Thanks in advance... Tony


 


 

Tags (1)

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

Post to forums  

Autodesk Design & Make Report

”Boost