• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Scripting - Skill
  3. Seeking Help with Non-Overlapping Placement Logic for Groups...

Stats

  • State Suggested Answer
  • Replies 2
  • Answers 1
  • Subscribers 17
  • Views 906
  • Members are here 0
More Content

Seeking Help with Non-Overlapping Placement Logic for Groups in Layout Design

Hussain Aalim
Hussain Aalim 10 months ago

Hi everyone,

I am working on a layout design where I need to position various groups (each represented by a shape of bounding box). I have already placed these groups at fixed locations, but they are overlapping.

I am looking for assistance with writing a skill code that will help me achieve non-overlapping placements. The groups vary in size—some are larger while some are smaller—and I need to ensure that when they overlap, the code automatically displaces them to avoid any conflicts.

If anyone has experience with this type of logic or can provide guidance, I would greatly appreciate it!

Thank you in advance for your help!

  • Sign in to reply
  • Cancel
Parents
  • mahimag
    0 mahimag 10 months ago

    Hey Hussain Aalim , I do not have a code for this but what what I can think is get the bbox for the groups and put an if statement to check whether they are same or not. If they are same at some point, move the group to a new location. Let me know if this make sense or you need to explore any SKILL APIs for this.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • mahimag
    0 mahimag 10 months ago

    Hey Hussain Aalim , I do not have a code for this but what what I can think is get the bbox for the groups and put an if statement to check whether they are same or not. If they are same at some point, move the group to a new location. Let me know if this make sense or you need to explore any SKILL APIs for this.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Hussain Aalim
    0 Hussain Aalim 10 months ago in reply to mahimag

    Hi mahimag 

    Thank you for your suggestion regarding using the bounding boxes (bbox) to check for overlaps between groups. In my case, the bounding boxes vary significantly some are wider, while others are taller or have different dimensions.

    I am looking to integrate a non-overlapping placement logic into my existing work. If you could share any code logic that would help me implement this, I would greatly appreciate it.

    Thank you for your assistance!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information