Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hello.
It is possible to find a reference in the component of a main assembly?
Using SEARCH_MDL_REF I'll try to find a CSYS in the skeleton part of a assembly.
I know about SEARCH_MDL_REF ASSEMBLY....
But how to search in sub-components of this assembly?
Solved! Go to Solution.
Hi @YaroslavSin ,
that will also work, but you need to take a few steps to make it happen.
See structure:
See also example code:
BEGIN_ASM_DESCR
SEARCH_MDL_REF THIS_283 CSYS CS0 CSYS_FOUND
SEARCH_SUBCOMP_REF ASSEMBLY SKELETON CSYS CS0 CSYS_TO_ALIGN
CONFIG_ELEM
ASSEMBLE THIS
CSYS CSYS_TO_ALIGN CSYS_FOUND
END_ASSEMBLE
END_ASM_DESCR
PFA also a litte demo component that you can use (Created in Creo 7).
I hope this is what you were looking for.
Greetings Sam
Have you attempted to include sub models in the search criteria?
• Look in (Available in Assembly and Drawing mode only) Select the active model. If the scope of your selection is already defined, this field is not displayed. The arrow button allows you to select the desired model from the graphics window or the Model Tree. Click the Include submodels check box to search the sub-models of the Look In model.
Hi @YaroslavSin ,
what you want to do is possible.
Here the Syntax:
SEARCH_MDL_REF THIS_283 CSYS CS0 CSYS_FOUND
In the elements Modeltree show column FEAT ID to get the required number after the THIS_ statement.
Little Demo Tab file code:
BEGIN_ASM_DESCR
SEARCH_MDL_REF THIS_283 CSYS CS0 CSYS_FOUND
CONFIG_ELEM
ASSEMBLE THIS
CSYS CSYS_TO_ALIGN CSYS_FOUND
END_ASSEMBLE
END_ASM_DESCR
BEGIN_GUI_DESCR
USER_SELECT CSYS CSYS_TO_ALIGN 1
END_GUI_DESCR
Hope this helps.
Greetings Sam
Hello Samuel,
I can found component in the equipment assy, but no success to find skeleton part in main assy.
please clarify, THIS_# statement can search in the assembly into which the user places equipment part/assy ?
Hi @YaroslavSin ,
that will also work, but you need to take a few steps to make it happen.
See structure:
See also example code:
BEGIN_ASM_DESCR
SEARCH_MDL_REF THIS_283 CSYS CS0 CSYS_FOUND
SEARCH_SUBCOMP_REF ASSEMBLY SKELETON CSYS CS0 CSYS_TO_ALIGN
CONFIG_ELEM
ASSEMBLE THIS
CSYS CSYS_TO_ALIGN CSYS_FOUND
END_ASSEMBLE
END_ASM_DESCR
PFA also a litte demo component that you can use (Created in Creo 7).
I hope this is what you were looking for.
Greetings Sam
This is was I'm looking for! Thank you, Samuel!