Some
Creo TOOLKIT function require a
ProSelection object as an input. In many cases the assembly path—
ProAsmcomppath—and the modelitem will be all that is needed, so
ProSelectionAlloc() or
ProSelectionSet() can be used. In other cases, for example when a
ProSelection needs to identify a specific drawing view, or a specific location on a geometry item, you may also need to call functions
ProSelectionViewSet(),
ProSelectionUvParamSet(), and
ProSelectionPoint3dSet().