Toolkit: How 2 get pattern member features
- June 3, 2014
- 3 replies
- 1270 views
Good morning,
Iam trying to get the features (members) of a pattern - but this pattern is a member of a group pattern itself.
Please see attached jpg - I want toget the pattern members with ids 309, 314, 315, 316, 317, 318. My use case is the following: "CHECK IF ID 309ISMEMBER OF A PATTERN AND GET THE OTHER PATTERN MEMBERS".
To find out if id 309 is a pattern member is easy - ProFeaturePatternGet() gives the answer and also ProPatternHeaderGet() and ProPatternLeaderGet() work as expected. But when I use ProPatternMembersGet() the content of the returned feature array contains id 309 (that's correct), BUT THEN ids 326, 339 and 352. But the last 3 are members of the top level group pattern. I know that there are functions for checking if there is a group pattern, but as a first step I want to have the members of the simple feature pattern.
My solution would be now (as a workaround) to check all other features in the model and collect all with same id for pattern leader or header.
Do I miss anything or do I have a wrong understanding of the Toolkit functions. Perhaps somebody has an answer for me before I file this as a new case at PTC customer support...
Andreas
__________________________________
Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Am Wartfeld 7
D-61169 Friedberg
phone: +49 151 21259910
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

