cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Translate the entire conversation x

Run list of all Roles from WC Shell?

lgrant
16-Pearl

Run list of all Roles from WC Shell?

Rather than wait for PTC to answer a service request, anyone know how to get a list of all roles from the Windchill Shell?

EnumResourceInfo

I think it's called CutomeRoleRB

It shows the internal and GUI name for each role.

5 REPLIES 5

I think what you want is the command "windchill wt.fc.EnumeratedTypeUtil wt.project.Role".

That gives output like this

DESIGNER:

display = Designer

abbreviatedDisplay = Designer

fullDisplay = Designer

shortDescription = Designer role

longDescription = Designer role

comment (deprecated)= Designer role

order = 100

isDefault = false

selectable = true

stringValue = wt.project.Role.DESIGNER

enumValue = DESIGNER

Localized error message test, not an actual error:

Problem occurred trying to create "Designer" object.

Thanks Patrick. Any idea why some of the roles (like your example) have "Localized error..."?

It is just a test of the error message. It is not an actual error. They should all output the same test message with the relevant input (Designer in my example above).

Now, any idea how to export out and import in?

In winchill shell input: enumcustomize. Java GUI application will start. Then select wt/project/RoleRB.rbInfo file and after you can add your custom role for basic and your locales.

Announcements
Top Tags