User's Guide > Core : Models and Model Items > Visiting Displayed Entities
Visiting Displayed Entities
 
Functions Introduced:
ProSolidDispCompVisit()
ProAsmcomppathDispPointVisit()
ProAsmcomppathDispCurveVisit()
ProAsmcomppathDispCsysVisit()
ProAsmcomppathDispQuiltVisit()
The functions in this section enable you to find quickly all the entities (points, datum curves, coordinate systems, and quilts) currently displayed in an assembly. It is possible to do this using the regular Creo TOOLKIT functions for visiting assembly components and entities, together with the ProLayer functions explained earlier in this section; but the functions described here are much more efficient because they make use of Creo+'s internal knowledge of the display structures.
The function ProSolidDispCompVisit() traverses the components at all levels in an assembly which are not blanked by a layer. The visit action function is called on both the downward traversal and the upward one, and is given a boolean input to distinguish them. It is also given the assembly path and the solid handle to the current subassembly. The subassembly could be found from the path using ProAsmcomppathMdlGet(), of course, but Creo+ passes this to the action function to allow greater efficiency.
The functions ProAsmcomppathDisp*Visit() visit the entities in a subassembly that are not blanked by a layer at any level in the root assembly.
這是否有幫助?