• 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 PCB Editor
  3. importing a sub-drawing

Stats

  • State Verified Answer
  • Replies 6
  • Subscribers 159
  • Views 1498
  • Members are here 0
More Content

importing a sub-drawing

masamasa
masamasa 2 months ago

hello

 

is there a way to import a sub-drawing and placing it in mirror?

 

i do not see any menu items for mirroring imported sub drawings.

 

 

regards

masa

  • Sign in to reply
  • Cancel
  • JuanCR
    0 JuanCR 2 months ago

    Hi! So you want to place it as mirrored at once? Have you tried placing it on a new board, mirroring it, then saving the sub-drawing ?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • masamasa
    0 masamasa 2 months ago in reply to JuanCR

    hello

     

    thank u for ur response.

     

    that is what i am doing.

     

    but i would like to find a way to do it in one step instead of two steps to save my time.

     

    what i  do not understand is that there is a rotate function but no mirror function to import a sub-drawing.

     

    regards

    masa

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DavidJHutchins
    0 DavidJHutchins 2 months ago in reply to masamasa

    Since Allegro/APD do not allow mirroring the data during import,

    I tried mirroring the data in the clp file, below is a simple 'sed' editting script:

    s/(_clpAdjustPt /(_clpAdjustPt -/g
    s/_clpAdjustPt(/(_clpAdjustPt -/g
    s/(_clpAdjustPt --/(_clpAdjustPt /g
    s/(_clpAdjustPt -'/(_clpAdjustPt '/g
    w mirrored.clp

    it took < 1 second to run it

    C:\Temp>dir *clp
    Volume in drive C has no label.
    Volume Serial Number is 46E1-12D0

    Directory of C:\Temp

    06/11/2025 08:56 AM 1,080,758 standard.clp
    1 File(s) 1,080,758 bytes
    0 Dir(s) 64,173,797,376 bytes free

    C:\Temp>sed -nf clp_mir.sed standard.clp

    C:\Temp>dir *clp
    Volume in drive C has no label.
    Volume Serial Number is 46E1-12D0

    Directory of C:\Temp

    06/11/2025 10:06 AM 1,087,797 mirrored.clp
    06/11/2025 08:56 AM 1,080,758 standard.clp
    2 File(s) 2,168,555 bytes
    0 Dir(s) 64,172,707,840 bytes free

    C:\Temp>

    the mirrored clp file loaded in < 2 minutes

    There are a few arc issues due to database accuracy in the original clip file:

    (_clpAdjustPt 1649.606591792885:1668.271655271171 _clp_cinfo))

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • DavidJHutchins
    +1 DavidJHutchins 2 months ago in reply to DavidJHutchins

    I wrote the custom command  'mir_clp' in the attached zip file to preform the editing from within the Allegro/APD tool

    below is the journal file entries:

    \i (00:00:23) skill 'load "mir_clp.il"'
       (00:00:23) t
    \i (00:00:28) mir_clp
    \i (00:00:33) fillin "standard.clp"
    \t (00:00:33) 29806 lines processed in 0 seconds
    \t (00:00:33) load mirrored_standard.clp for mirrored data
    \i (00:00:33) generaledit
    \i (00:00:40) clppaste
    \i (00:00:43) fillin "mirrored_standard"
       (00:00:43) Loading cmds.cxt
    \i (00:00:48) pick -3000 0
    \t (00:00:48) last pick:  -3000.00 0.00
       (00:00:48)  10 percent completed
       (00:00:48)  20 percent completed
       (00:00:48)  30 percent completed
       (00:00:48)  40 percent completed
       (00:00:48)  50 percent completed
       (00:00:48)  60 percent completed
       (00:00:48)  70 percent completed
       (00:00:48)  80 percent completed
       (00:00:48)  90 percent completed
       (00:02:14)  100 percent completed
    \i (00:02:14) generaledit

    mir_clp.zip

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • masamasa
    0 masamasa 2 months ago in reply to DavidJHutchins

    thank u, david:

     

    it works now

     

    regards

    masa

    • 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