Meaning of segment status

What is the purpose of the status of a segment in the layout ? A signal segment in the layout file looks like:

(segment (start 129.286 135.001) (end 129.413 135.001) (width 0.25) (layer F.Cu) (net 10) (tstamp 5AAAAE4E) (status 1000000))

What does “status 1000000” mean ?

Most probably it stores various flags http://docs.kicad.org/doxygen/base__struct_8h_source.html#l00103

Thanks, but I’m not familiar with C++. Maybe someone can translate the code to something human readable :slight_smile:

The status field is unfortunate. Some values mean things for the track when stored and some don’t.

The value you show doesn’t mean anything for the track. It is the “BUSY” flag. This is a temporary flag used internally to allow routines to mark items already edited. It gets cleared and set many times and should not be stored in the file. We’ll mark this for cleaning up in v6.

FYI, the flags that are important in that field for storing are 0x8000000 (differential pair) and 0x40000 (locked). The others will get set/cleared in the process of editing the file without any user input.

4 Likes

thanks for clarification

Seth,
I just discovered that vias also have a status, for example when a net is set “locked” by the user. I presume the decoding of the status of vias differs from those of segments, right ?
cheers, Mario

The status field has the same meeting for all elements. Just not all flags are valid for them

Thanks Seth for clarification !

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.