Wednesday, December 03, 2008     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: how to get component (or symbol) 's center
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
microhelp
Posts: 0
Online: User is Offline
3/30/2005 8:02 PM  
hi,all

how to get component (or symbol) 's center coordinate?

thanks

haojingchao .chinese
Newbie
Posts: 26
Online: User is Offline
4/07/2005 8:41 PM  
Hello MicroHelp,

------------------------------
;obtain component dbid
axlSetFindFilter( ?enabled list("noall" "components") ?onButtons list("components") )
axlSelect( ?groupMode nil ?prompt "Please Select Component" )

;user clicks component
component_dbid = axlGetSelSet()

;now use bBox to find center
component_bBox = component_dbid->bBox

; ( (LowerLeft_X,LowerLeft_Y) (UpperRight_X,UpperRight_Y)
; now just write code to obtain center

------------------------------

Also possible is
component_position = component_dbid->xy

however I'm not sure if this will get the 'center' of component

regards,
Newbie



microhelp
Posts: 0
Online: User is Offline
4/12/2005 4:10 AM  
thanks very much,
let me test;

microhelp .chinese
Newbie
Posts: 26
Online: User is Offline
4/19/2005 9:43 PM  
Hi All,

Attached is a skill file that draws the bBox of a symbol on the BOARD GEOMETRY/OUTLINE layer.

to use it
1. Place ShowbBox.il in your skill directory

2. Type "skill" on command prompt
Command> skill

3. Type " load "ShowbBox.il" "
Skill> load "ShowbBox.il"

4. Type "exit"
Skill> exit

5. Type "ShowbBox" and click on symbol you want to display the bBox
Command> ShowbBox


What i noticed is that sometimes the bBox rectangle isnt 'centered' on the symbol.
Does anyone know why this is so?

this will also mean that we cant really use the bBox of symbol to find center of component... sorry microhelp


I know that using "location" doesnt work as it will be the "origin" of the component when it was created by the librarian.

Does anyone have a better suggestion as to how to find the center of a component?

thanks
newbie




Attachment: ShowbBox.zip

Newbie
Posts: 26
Online: User is Offline
4/19/2005 11:37 PM  
correct file
please use this

Attachment: ShowbBox.zip

nzdave
Posts: 0
Online: User is Offline
4/20/2005 3:46 PM  
This solution won't work if symbol objects are outside the Assembly outline. A better solution would be to take all the Assembly outline objects of the symbol and find the centre of those.
Newbie
Posts: 26
Online: User is Offline
4/21/2005 6:56 PM  
Posted By nzdave on 4/20/2005 3:46:17 PM
A better solution would be to take all the Assembly outline objects of the symbol and find the centre of those.




that would be tough for complicated outlines... so i settled for placebound bBox

Thanks nzdave
Posting to forums is available to community members only.
Login or Register

Forums > Silicon-package-board > Shared code - SKILL > how to get component (or symbol) 's center


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.