JinT4191
Aerospace
- May 2, 2013
- 12
Hi,
I want to make a programm that takes screenshots of a group in the results. My problem now is that I don't know how to remove the stickiness of the usergroupIds of the groups. I want the programm to select all groups that would start with "GlueFace" and then show them, take snapshots and loop through all the groups. I already have the programming for snapshots, I'm only stuck in the programming part of the 'show group' part. Could anyone help me on this?
Thanks beforehand!
I want to replace the usergroupIds = 3, because the number is different everytime I open another sim-file.
I want to make a programm that takes screenshots of a group in the results. My problem now is that I don't know how to remove the stickiness of the usergroupIds of the groups. I want the programm to select all groups that would start with "GlueFace" and then show them, take snapshots and loop through all the groups. I already have the programming for snapshots, I'm only stuck in the programming part of the 'show group' part. Could anyone help me on this?
Thanks beforehand!
Code:
Dim groups As CAE.CaeGroup() = workSimPart.CaeGroups().ToArray()
For Each group As CAE.CaeGroup In groups
If group.Name.StartsWith("GlueFace") Then
'Dim usergroupIds(0) As Integer
[COLOR=#CC0000]'usergroupIds(0) = 3[/color]
'GetAttributeTitlesByType(NXObject.AttributeType.Integer)
theSession.Post.PostviewApplyUserGroupVisibility(postviewId1, usergroupIds, CAE.Post.GroupVisibility.ShowOnly)
End If
Next ' For Each group
I want to replace the usergroupIds = 3, because the number is different everytime I open another sim-file.