Home > Community > Forums > PCB SKILL > How to get group members

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to get group members 

Last post Tue, Dec 6 2011 1:30 AM by MacJin. 3 replies.
Started by MacJin 05 Dec 2011 04:01 PM. Topic has 3 replies and 2026 views
Page 1 of 1 (4 items)
Sort Posts:
  • Mon, Dec 5 2011 4:01 PM

    • MacJin
    • Not Ranked
    • Joined on Wed, Aug 24 2011
    • Kanazawa, Ishikawa-ken
    • Posts 4
    • Points 65
    How to get group members Reply
    Hello
    
    I'd like to get group members which conditions are as follow.
    Please let me know the SKILL code sample.
    
    - The group name is "GroupA".
    - The number of group member is over than 2.
    - The members are mechanical symbols.
    - The name of symbol is "SymbolA".
    
    I will appreciate your support.
    
    Filed under: , ,
    • Post Points: 20
  • Mon, Dec 5 2011 6:03 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 736
    • Points 15,930
    Re: How to get group members Reply
    I hope this makes sense to you: grp = car(axlSelectByName("GROUP", "GROUPA")) members = grp ->groupMembers when(length(members) > 2 setof(obj, members, obj ->objType == "symbol" && obj ->type == "MECHANICAL" && obj ->name == "SYMBOLA") )
    Dave Elder, Tait Communications
    • Post Points: 5
  • Mon, Dec 5 2011 6:09 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 736
    • Points 15,930
    Re: How to get group members Reply

    Of course, because I used Chrome that won't make any sense. Here it is again:

    grp = car(axlSelectByName("GROUP", "GROUPA"))
    members = grp ->groupMembers
    when(length(members) > 2
     setof(obj, members, obj ->objType == "symbol" && obj ->type == "MECHANICAL" && obj ->name == "SYMBOLA")
    )

    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Dec 6 2011 1:30 AM

    • MacJin
    • Not Ranked
    • Joined on Wed, Aug 24 2011
    • Kanazawa, Ishikawa-ken
    • Posts 4
    • Points 65
    Re: How to get group members Reply
    Dave,
    
    Thank you for your advice. I've succeeded to get group members.
    
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by MacJin at 05 Dec 2011 04:01 PM. Topic has 3 replies.