• 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. PCB Design
  3. converting a text into a polyline on dxf export

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 164
  • Views 18356
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

converting a text into a polyline on dxf export

masamasa
masamasa over 6 years ago

hello

is there any way i can convert a text to a polyline when exporting a design file as a dxf file?

  • Cancel
  • DavidJHutchins
    DavidJHutchins over 6 years ago

    I don't think there is any easy way to do that with the Allegro toolset

    I attempted to output text in a stream file ( gds2 format ), but the text handling of that interface is worse than the dxf interface

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • masamasa
    masamasa over 6 years ago in reply to DavidJHutchins

    thank you for your response.

    is there any way to convert a text into a line or a shape within allegro?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eDave
    eDave over 6 years ago in reply to masamasa

    The Skill command axlText2Lines will help you do this.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • masamasa
    masamasa over 6 years ago in reply to eDave

    thank you for your response

    i am quite new on allegro so i still do not know how to work on skill.

    do i need to create a program using axltext2lines?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DavidJHutchins
    DavidJHutchins over 6 years ago

    Thanks to eDave for pointing out the use of that skill function, below is a transcript of using the example from the documentation:

    Command > skill
    last pick: 2767.00 3258.00
    Skill > (load "d:/cadence/spb_16.6/share/pcb/examples/skill/ash-fxf/ashone.il")
    t
    Skill > text = ashOne("TEXT")
    Enter selection point
    Loading axlcore.cxt
    last pick: 2792.00 3200.00
    dbid:300809880
    Skill > text->??
    (prop nil bBox
    ((2764.0 2785.0)
    (2870.0 3303.0)
    ) readOnly
    t objType "text" layer "ETCH/BOTTOM"
    xy
    (2842.0 3300.0) text "EXAMPLE" textBlock
    "19" rotation 90.0 parent nil
    mirrorType "YES" isMirrored t justify
    "LEFT" parentGroups nil
    )
    Skill > lines = axlText2Lines(text)
    ((_axlPath@0x124d1098 _axlPath@0x124d1068)
    (_axlPath@0x124d10f8 _axlPath@0x124d10c8)
    (_axlPath@0x124d1168 _axlPath@0x124d1138)
    (_axlPath@0x124d11c8)
    (_axlPath@0x124d1278)
    (_axlPath@0x124d12b8)
    (_axlPath@0x124d1338 _axlPath@0x124d1308)
    )
    Skill > (layer="ETCH/BOTTOM")
    "ETCH/BOTTOM"
    Skill > flattened = foreach( mapcan x lines x)
    (_axlPath@0x124d1098 _axlPath@0x124d1068 _axlPath@0x124d10f8 _axlPath@0x124d10c8 _axlPath@0x124d1168
    _axlPath@0x124d1138 _axlPath@0x124d11c8 _axlPath@0x124d1278 _axlPath@0x124d12b8 _axlPath@0x124d1338
    _axlPath@0x124d1308
    )
    Skill > foreach(path flattened polys = axlPolyFromDB(path ?endCapType 'ROUND ?line2poly t) foreach(poly polys i = axlDBCreateShape(poly t layer nil nil)) )
    (_axlPath@0x124d1098 _axlPath@0x124d1068 _axlPath@0x124d10f8 _axlPath@0x124d10c8 _axlPath@0x124d1168
    _axlPath@0x124d1138 _axlPath@0x124d11c8 _axlPath@0x124d1278 _axlPath@0x124d12b8 _axlPath@0x124d1338
    _axlPath@0x124d1308
    )

    I then used the shape>merge shapes to combine the shapes that compose each character together to reduce the drc count

    • Cancel
    • Vote Up 0 Vote Down
    • 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