Solidworks api use - How to select reference dimension (assembly file)

Hello Everyone

Solidworks api use   (assembly file)

-  I can select some reference dimensions of main assembly file.

- I can get all selected reference dimensions information   (Exm:  full name dimension and tolerance ) reference dimension  (main assembly file sub assembly file parts)

-Assembly file included sub assembly  and parts.

I have one problem - Solidworks api use - I can"t  select some reference dimensions of sub assembly file and sub assembly file into included parts dimension.

I tested API and MACRO.

Result is same.

Have any idea

Help me

SolidworksApi/macros
Answers 3
AT
AT 2021-04-09 Best Answer

Check this: and this:

SH
SH 2021-04-09

Thanks all

My problem is fixed.

Please see link

SH
SH 2021-04-09

Thanks your reply. I read this article.

I attached Asm1.SLDASM parts files and macro.

https://drive.google.com/open?id=1vzIVQ6GP4r-YJRdmHbevYo1sD5qxBxzx ]

My macro is select to 4 dimensions.

Selected 2 dimensions  (this dimension is have Asm1 file)

But can"t select 2 dimensions (this dimension is have Part5 file)

(Select is highlight)

Asm file into avialable 2 dimension select is normal   "RD5@Annotations@Asm1.moAssembly_c" and "RD4@Annotations@Asm1.moAssembly_c"

Part5 file into avialable 2 dimension select is bad ( not selected  ) "RD2@アノテート アイテム@Part5.moPart_c" RD5@アノテート アイテム@Part5.moPart_c

How to select  reference dimension  Part5 file  by (Api and macro)

It is possible Solidworks API and MACRO ?

Asm1.SLDASM  included Asm2, Asm2 included Asm3

Asm1 included Part1 and Part2

Asm2 included Part3 and Part4

Asm3 included Part5 and Part6