Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to user the 'show only group' function in a programm?

Status
Not open for further replies.

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!

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor