Skip to main content
16-Pearl
April 25, 2014
Question

Run list of all Roles from WC Shell?

  • April 25, 2014
  • 5 replies
  • 2537 views

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

1-Visitor
April 27, 2014

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.

lgrant16-PearlAuthor
16-Pearl
April 28, 2014

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

1-Visitor
April 28, 2014

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).