kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #23500
Re: Question about track/via locking
Le 29/02/2016 17:38, Tomasz Wlostowski a écrit :
> Hi guys,
>
> Does anybody here know if the 'locked' flag for tracks/vias affects
> anything else than the Global Deletions tool? It seems so from the code:
>
> pcbnew(master)$ find . -name "*.cpp" | xargs grep TRACK_LOCK
> ./attribut.cpp: * TRACK_LOCKED protection against global delete
> ./attribut.cpp: track->SetState( TRACK_LOCKED, Flag_On );
> ./attribut.cpp: Track->SetState( TRACK_LOCKED, Flag_On );
> ./attribut.cpp:/* Modify the flag TRACK_LOCKED according to Flag_On value,
> ./attribut.cpp: Track->SetState( TRACK_LOCKED, Flag_On );
> ./onrightclick.cpp: if( Track->GetState( TRACK_LOCKED ) )
> ./class_track.cpp: if( GetState( TRACK_LOCKED ) )
> ./class_track.cpp: if( stateBits & TRACK_LOCKED )
> ./class_track.cpp: ret << wxT( " | TRACK_LOCKED" );
> ./dialogs/dialog_global_deletion.cpp: track_mask_filter |=
> TRACK_LOCKED;
> ./dialogs/dialog_global_deletion.cpp: if( (
> track->GetState( TRACK_LOCKED | TRACK_AR ) & track_mask_filter ) != 0 )
> ./dialogs/dialog_global_deletion.cpp: if( (
> track->GetState( TRACK_LOCKED | TRACK_AR ) == 0 ) &&
>
> I'm asking because I'd like to add track/via locking feature to the GAL
> and I'm also considering making P&S avoid (hug) locked tracks/vias.
>
> Cheers,
> Tom
AFAIK, in legacy canvas, it is only a protection against global deletion.
The idea behind this feature was:
* you want to use an external auto-router.
* you can lock all existing good tracks or tracks with constraints.
* you try to autoroute the remaining tracks and import the result.
* If you do not like it, you can remove all imported tracks and retry.
--
Jean-Pierre CHARRAS
References