Numbering Format by Components and Sheets

4 posts / 0 new
Last post
#1 Numbering Format by Components and Sheets

Good morning!

I'm trying to make a numbering format for my wires using a unique wire number (like the incrementing wire numbers in skycad by default), the sheet number, the location on the sheet (I'm not using rung numbering, so "B3" for example), and the two connection points of the wire.

Here's what I want: {Wire Number}-{Sheet}{Location on Sheet}-{Component1}.{Connection}/{Component2}.{Connection}

Example: 31-5B3-PWS2.V+/PLC1.V+

A tutorial with more extensive documentation of the renumbering queries would be awesome! Right now it's spread across the forum.

Thanks for your help!

Ok.

Thanks for posting on the forum.

This is possible, although based on our understanding of the numbering logic, the initial incremented value will almost always be '1'.

So for the example you gave (31-5B3-PWS2.V+/PLC1.V+), the '31' would mean there 30 other wires positioned on sheet 5, column B, row 3, connecting PWS2.V+ to PLC1.V+.

Try this value for your numbering format:

<#>-<r:GetFirstConnection.GetSheetNumber><r:GetFirstConnection.GetColumnNumber><r:GetFirstConnection.GetRowNumber>-<r:GetConnectedElements(Item:0).DisplayedLabel(ExtendedLabel:True)>/<r:GetConnectedElements(Item:1).DisplayedLabel(ExtendedLabel:True)>

A tutorial with more extensive documentation of the renumbering queries would be awesome!

Full documentation on queries is planned to come out sometime this year.

Let us know how it works out.

I was thinking...

Thanks for the reply!

That looks like what I need, but I want the initial number to be a global wire identifier. e.g. Every new wire increments that number by 1, so 31 means there are 30 other wires in other areas of the file.

Is that possible?

Thanks!

Hmmm....

That looks like what I need, but I want the initial number to be a global wire identifier.

The information that is part of the wire number is taken into account when evalutating uniqueness, thus SkyCAD won't increment the number.  

What you could do is add a property definition to your Net class that would concatenate the wire number to the rest of the information, using a similar query as an default value.  You could display that on the connections, as well as in wire/connection net lists, but SkyCAD would still consider the actual 'Number' property as the identifier. 

Would that work-out for you?