Author Topic: Pad rules that survive through reannotation?  (Read 1808 times)

0 Members and 1 Guest are viewing this topic.

Online SiwastajaTopic starter

  • Super Contributor
  • ***
  • Posts: 8760
  • Country: fi
Pad rules that survive through reannotation?
« on: February 26, 2019, 03:55:19 pm »
A pretty basic question. Testing this on AD13.

Years ago, I defined direct polygon pour connections on the rule directly, based on the designator, i.e., InComponent('U13') OR InComponent('P666') OR...

This of course broke down completely when reannotating. So I learned that I need to do it "properly" by creating a pad class. So far so good, so I've been doing pad classes for pad specific rules. Of course, being "the correct" way, I assumed these pad class memberships must be linked to the component unique IDs even though the Object Class Explorer UI shows the designators.

Of course, soon I found out that this does not work either, despite being what people erroneously claim to be "the correct" way. When reannotating, pad class members stay with the old designators: some are removed (if the same designator does not exist anymore), or are corrupted (associated to a totally wrong component). Oh well, at least it doesn't crash. What a pile of crap, anyway.

Maybe there isn't a correct way? Maybe this is a bug? But it sounds very strange that Altium silently throws away and corrupts vital design information (which pad is associated with which rules) through everyday annotation process.

There must be a way. Or is there?

Or: Apparently I need to ask the classical beginner FAQ once more: how do I properly attach a pad to a polygon pour with direct connect? "Properly" means that it doesn't change later on silently, due to other unrelated changes. Wrong answers widely available include:
* Create rule with InComponent() tests,
* Create a pad class for directly connected pads
« Last Edit: February 26, 2019, 04:05:37 pm by Siwastaja »
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2420
  • Country: gb
Re: Pad rules that survive through reannotation?
« Reply #1 on: February 26, 2019, 04:18:16 pm »
You have a polygon pour where some connects are direct and others are thermal relief.
You can't use two seperate pours because the different connect styles are not grouped together.
Is that correct?
 

Online SiwastajaTopic starter

  • Super Contributor
  • ***
  • Posts: 8760
  • Country: fi
Re: Pad rules that survive through reannotation?
« Reply #2 on: February 26, 2019, 04:26:58 pm »
Yeah, having to split pours to multiple parts would kinda negate the point of using pours to begin with. I mean, if I want to draw more manually, I can draw a small polyregion or fill on the top of the pad to connect it any way I want, but that's not the point.
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2721
  • Country: us
Re: Pad rules that survive through reannotation?
« Reply #3 on: February 26, 2019, 07:03:35 pm »
Maybe this is a bug? But it sounds very strange that Altium silently throws away and corrupts vital design information (which pad is associated with which rules) through everyday annotation process.

Well, it's doing exactly what you're telling it to do: Pad 4 on the component called U13 should be direct connect.  The problem is that it doesn't offer you a better way to specify that particular pad.  I think the ideal way to do this would be to have a way to specify the pad class in the schematic, just like you can specify net classes, IE, by attaching a directive to a pin.  Specifying component classes in the schematic is another thing that you should be able to do, but can't. 

You might be able to use a room to control the connection style rules in a particular area, but I don't remember if rooms that aren't generated by a schematic sheet are retained during a PCB update.

Personally I usually do it on a per-polygon basis.  Usually it's a particular set of connections that I want to make direct, so while it's not ideal, it's pretty easy to deal with.  The most annoying part is that you can't specify the class membership of a particular polygon anywhere but the class manager, where you have to know the name of the polygon (as opposed to within the polygon manager or the polygon's properties where you can *see* the one you're looking for).
 

Online SiwastajaTopic starter

  • Super Contributor
  • ***
  • Posts: 8760
  • Country: fi
Re: Pad rules that survive through reannotation?
« Reply #4 on: February 27, 2019, 09:47:59 am »
OK, thanks, this is helpful. Why is it always so difficult to just admit: this thing is not supported :).

Separate polygons are kind of a hassle, because my typical use case is a switch mode converter of some sort, where the transistors, diodes, fuses, current shunt resistors and connectors are typically directly connected, but the pepper-sprayed DC link bypass ceramic caps absolutely require the thermals.

"Not supported" is a fine answer, anyway. I have no issue drawing this manually; especially since the automatic thermal polygon connection doesn't do too good job anyway when a tight layout with irregular shapes is concerned. I was just baffled because I thought this is a beginner problem solved decades ago, and all Google searches indeed look that way, and I thought I must be missing something.

BTW it's not only about polygons, but about any arbitrary rule, really. I wonder why they don't rely on their unique ID's more since they do have them, it would solve many synchronization problems.
« Last Edit: February 27, 2019, 09:50:31 am by Siwastaja »
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22387
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Pad rules that survive through reannotation?
« Reply #5 on: February 27, 2019, 01:55:40 pm »
Hm, don't think I've been bit by annotation breaking pad class, but I avoid annotation if possible, which helps avoid such things.

How about add a component class?  I forget if that trickles down to the pad and poly level, but it's worth a shot.

Just add a ClassName parameter to the component in question, and it'll propagate to the PCB.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Online SiwastajaTopic starter

  • Super Contributor
  • ***
  • Posts: 8760
  • Country: fi
Re: Pad rules that survive through reannotation?
« Reply #6 on: February 27, 2019, 09:09:43 pm »
Yeah, I guess using component classes instead of pad classes would be the closest workable option. It's quite rare that you'd need separate rules for different pads on same component, but it does happen (like, I want a solid pour connection on an IC thermal pad, but don't want the pour running under and directly connecting to other grounded pins). These exceptions would be acceptable to just draw over, anyway.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf