In my layout there is spacing violation for Dynamic shapes and Static shapes.
Some Dynamic shapes are too close to Static shape ( the minimum is needed to be 8 mil).
But my DRC is NOT catching them.
Could anybody please tell how to set the constraint so that the DRC can catch the spacing violation between Dyanmic Shape and Static Shape.
There is no difference (from a DRC point of view) between Static and Dynamic. If you are seeing DRC errors it sounds like the Dynamic Shape is not up to date. Try Display - Status then look at the Shapes section, if the shapes are out of date press the button Update to Snooth and see if that sorts your issue out.
Make sure that you have the Same Net Spacing enabled to shape to shape:
Setup -> Constraints -> Modes
Select the Same Net Spacing item