• 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. Angle calculation issue with respect to IDF for PTC

Stats

  • Replies 3
  • Subscribers 158
  • Views 13681
  • Members are here 0
More Content

Angle calculation issue with respect to IDF for PTC

archive
archive over 19 years ago

Hi,

I'm working on creating an IDF output that will take all place_bounds and export them to an IDF file for better modelling in Pro-E(PTC).

I have a board file with an arc which is identified by the following information from the database (in paranthesis the variables used further below)
arc center = 1.793,0.133 (a_c)
radius 0.058 (r)
startEnd((1.85 0.12) (1.78 0.19))  ((x1 y1) (x2 y2))
unfortunately the data does not contain the arc angle that was specified inside the package symbol so I'll have to calculate this arc angle in degrees.

If I use file, export, IDF and set TYPE=PTC and Version=2.0 then I'll get the following specification/record for this arc
0    1.850    0.120    0
0    1.780    0.190    -244.305
which states that the arc angle is -244.305

If I however uses the cosinusrelations on the data that I have access to (arc center, radius, arc startpoint and arc endpoint) then I get the following
0   1.850000   0.120000  0.00
0   1.780000   0.190000  -242.83
which states that the arc angle is -242.83
This makes a difference for about approximately 1.5 degrees
I'm using the law of cosines to calculate the angle
http://en.wikipedia.org/wiki/Law_of_cosines (remember the angle=result*180/pi -360)

I'm just wondering how this difference occur. Does anyone have an idea to what I could be doing wrong?


Originally posted in cdnusers.org by ejlersen
  • Sign in to reply
  • Cancel
Parents
  • archive
    archive over 19 years ago

    Use the IDF 3.0 format instead.

    Back when I was a Cadence customer I helped validate the implementation (see algroidf doc)

    Let me know if this helps

    Andy

    Andreas Kulik
    Sr. Applications Engineer
    PTC


    Originally posted in cdnusers.org by andyk
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • archive
    archive over 19 years ago

    Use the IDF 3.0 format instead.

    Back when I was a Cadence customer I helped validate the implementation (see algroidf doc)

    Let me know if this helps

    Andy

    Andreas Kulik
    Sr. Applications Engineer
    PTC


    Originally posted in cdnusers.org by andyk
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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