[PCB_FORUM] Re: script to change attributes of specific components within a page.
- From: "William Billereau" <William.Billereau@xxxxxxx>
- To: <icu-pcb-forum@xxxxxxxxxxxxx>
- Date: Thu, 14 Feb 2008 17:59:39 +0100
Hello.
I do this in a clean.scr:
I wrote a script that use the pstback.dat to generate the clean.scr
It use the DRAWING line of eac
-----begin ---- (remove all empty lines and those staring with '
Edit <your schematic>
set nextgroup a
;set path invisible
find path
dis in a
;set all LOCATION to the same text size
find *location
dis val b
textsize 0.07 b
;+ paint it white
pain whi b
;display all Value and set a common textsize, paint it all green
find value
dis val c
text 0.06 c
paint green c
'HERE IS WHAT YOU NEED
;dis invisible $pn for resistors
find *pn
find rsmd*
inc e prop
exc d e
;for capacitors
find cap*
inc f prop
exc d f
;for testpoints
find tp*
inc g prop
exc d g
TH holes resistors
find res*
inc h prop
exc d h
find *pn
exc i d
;then display invisible
dis in i
wri
explanation:
1-find $pn Creates a group containing ALL $pn of the schematic
page(says A)
1-Find rsmd* : sel all rsmd* part
Results:
Group "B" contains:
3 bodies 0 properties 0 notes 0 wires 0 dots 0 images
2-inc b prop : Include in b all properties of the selected parts.
results:
Group "B" contains:
3 bodies 38 properties 0 notes 0 wires 0 dots 0 images
3-exc a b:
removes from A all the content of B. We create a group with all $pn we
wants to be visible
and so on...
find cap* (=> group c)
inc c prop
exc a c
...
William.
> -----Original Message-----
> From: icu-pcb-forum-bounce@xxxxxxxxxxxxx [mailto:icu-pcb-forum-
> bounce@xxxxxxxxxxxxx] On Behalf Of Rui Pimenta
> Sent: 13 February, 2008 5:34 PM
> To: icu-pcb-forum@xxxxxxxxxxxxx
> Subject: [PCB_FORUM] script to change attributes of specific
components
> within a page.
>
> Hello to All,
>
> How can I do in a script the following:
>
> 1 - Search for all resistors within the page
> 2 - turn invisible attribute $PN on the previous group.
>
> if I wanted to affect all instances of the page I would do:
> set nextgroup A
> find $PN
> dis inv A
>
>
> But what should I write in order to affect only the resistors?
>
> I have managed to go as far as:
> set nextgroup A
> find LOCATION R*
>
> at this moment concept return the group A as the one with the
Resistors.
>
> But how can I set the $PN attribute to invisible on this group?
>
>
> Thanks in advance,
> Rui
> -----------------------------------------------------------
> To subscribe/unsubscribe:
> Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
> with a subject of subscribe or unsubscribe
>
> To view the archives of this list go to
> http://www.freelists.org/archives/icu-pcb-forum/
>
> Problems or Questions:
> Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
> -----------------------------------------------------------
-----------------------------------------------------------
To subscribe/unsubscribe:
Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
with a subject of subscribe or unsubscribe
To view the archives of this list go to
http://www.freelists.org/archives/icu-pcb-forum/
Problems or Questions:
Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
-----------------------------------------------------------
- Follow-Ups:
- [PCB_FORUM] Re: script to change attributes of specific components within a page.
- From: William Billereau
- References:
Other related posts:
- » [PCB_FORUM] script to change attributes of specific components within a page.
- » [PCB_FORUM] Re: script to change attributes of specific components within a page.
- » [PCB_FORUM] Re: script to change attributes of specific components within a page.
- [PCB_FORUM] Re: script to change attributes of specific components within a page.
- From: William Billereau