cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

JLINK - get all the csys origins in the assembly?

Highlighted
Level 1

JLINK - get all the csys origins in the assembly?

I'm working on programmatically constraining some components, and I need to
get a list of all the CSYS origins in the entire assembly (components &
subassemblies too).

I tried

ModelItems asmItems = assembly.ListItems
(ModelItemType.ITEM_COORD_SYS);

But this just gets the ones in the top level.

Is there an easy way to get all the CSYS, or do I need to brute-force access
every component & evaluate it?



--



Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
2 REPLIES 2

JLINK - get all the csys origins in the assembly?

Lyle,
You have to traverse the assembly structure and search each component for CSYS and add them up in a Collection for the full assembly.
See the section Assemblies and Components for sample code traverses the assembly structure.

Best Regards,
Bjarne Frandsen

RE: JLINK - get all the csys origins in the assembly?

Hello Lyle


In order to get all the cys in every item in the assembly then you will need to loop to each item in the assembly to collect all cys. There is not a method to collect all cys for each component in an assembly.