16
\$\begingroup\$

enter image description here

I'm designing a PCB in Altium Designer. There is a very large heat sink in my project. When I put it on the PCB, there will be plenty of empty space under it where I can put other small components. I tried to put some part of this bridge rectifier under it; that's geometrically possible in real life. But, Altium Designer gave a clearance warning (or an error?) about it (the elements turned into green as you see in the image).

How do I disable this warning/error just for these two elements, or for the entire top overlay layer?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Again, there's a video from Altium showing how to do just that: How do I place components on top of each other without them interfering? \$\endgroup\$
    – m.Alin
    Commented Sep 6, 2012 at 15:21
  • 2
    \$\begingroup\$ The proper solution here is to define a 3D body for the heatsink that properly includes the fin height. Then, any component not as tall as the fin will fit under it without collisions fine. \$\endgroup\$ Commented Oct 20, 2014 at 17:32

6 Answers 6

16
\$\begingroup\$

You can specify a design rule for that component:

Design > Rule > Placement > Component Clearance,

Add new rule like this:

   Advanced query: InComponent('D1')  //assume the component is 'D1'

   Constraints: 
       Min Vertical Clearance 0mil
       Min Horizontal Clearance 0mil

Then Altium Designer will not check this component's clearance.

\$\endgroup\$
2
\$\begingroup\$

This isn't necessarily an answer on how to do this specifically in Altium, but more of a generic thought: why not simply specify the outline of the heatsink so you can see it in the board layout view, and know it's there, but not have it be something that is used in a clearance check?

This seems like the easiest way to approach this sort of problem without having to try and make the program understand exactly what's going on. In fact, it almost seems like more work to try and quantify that there is space under a part. To do it properly, you'd need to quantify the 3D aspect of ALL components on the board so it could properly calculate clearances in 3D.

\$\endgroup\$
2
\$\begingroup\$

You can use Design > Rules > Placement > ComponentClearance > New Rule

enter image description here

The lowercase and star after the component are in place in case you have multiple components who have collisions like: usb_1, usb_2 and usb_3

Make sure that the priority of this rule is higher than other rules, who might be conflicting with this one.

\$\endgroup\$
1
\$\begingroup\$

I know the issue has been solved but I answer the original first question "How do I disable clearance check for a layer" if someone comes across this post.

Use OnLayer in the rule to check if the object is on a specific layer:

  1. Go to Design > Rules... > Clearance and go to the rule that causes the violation.
  2. At Where the Second Object Matches choose Custom Query in the dropdown
  3. Add following into the text box: not OnLayer('LAYER_NAME') (replace LAYER_NAME with your layer)
Note

Even if it's useful for certain layers (e.g. the keep-out layer) you should be aware of that no DRC errors will be detected for everything that's on that layer.


References:
\$\endgroup\$
0
\$\begingroup\$

When I want Altium to ignore clearance on several objects, I just quickly add them to the Component Clearance queries, like:

First Object Matches - (Name <> 'S1') And (Name <> 'D1')

Second Object Matches - (Name <> 'S1') And (Name <> 'D1')

Basically, that just means when the first and second objects are not S1 and not D1... then do the normal component clearance check (otherwise don't do any clearance check). It still does electrical checks, so it'll catch a short circuit or any other rule you have.

Typically, when I want to do this, it's to make the PCB compatible with multiple footprints in the same spot, like an MCU with a DIP and SOP package... or in this example, an I/O that can be populated with an SMT switch or LED.

Obviously you need to be careful with those objects, since collisions between all objects in the list will be ignored... like for example if I added S2 and D2 to the list, then collisions between D1 and D2 would be ignored, even though I really just wanted S1/D1, and S2/D2 (you could make more complex rules to handle that, but it's never been a big deal to me). Collisions with other objects (i.e. D1 and R1) will still be caught.

\$\endgroup\$
-3
\$\begingroup\$

You can Disable the Warning by Simply going to Design - Rules - Placement-Just UnCheck the Enabled Component Clearance.Then you are all good to go.

\$\endgroup\$
1
  • 6
    \$\begingroup\$ Really Ajay, your first answer was to a question literally 2 years old, and in your answer you say to disable all Component clearance checks from the DRC but this means other components/packages will not be covered by the DRC and may cause errors (like, a fat inductor colliding with an LED package will not be detected any more) \$\endgroup\$
    – KyranF
    Commented Oct 20, 2014 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.