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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Translate the entire conversation x

Adding Local Attribute Columns

BF_13811900
12-Amethyst

Adding Local Attribute Columns

Version: Windchill 13.0

 

Use Case: I am executing the "AddColumns" command in the Windchill Shell. I am trying to add columns to the "wt.epm.EPMDocument" type. Having run the command already, I can see the following results when I run the command with the "-r" parameter: Total String column count = 0 (Database) **WARNING Total String column count = 0 (AddColumnsSchema.xml) **WARNING Total String column count = 1 (Introspection) **WARNING Total String column count = 1 (Class) **WARNING I have ran "AddColumns -syncFromDB" but still receive the results detailed above. After running this command I would expect the total string column counts for "Introspection" and "Class" to be set to 0. Ultimately, this issue stems from the need to add new columns to this type to allow me to create new local attributes for a new sub-type of "wt.epm.EPMDocument".


Description:

I am unable to establish how I can restore the total string column counts for "Introspection" and "Class" to "0". Secondly, I have created a sub-type of the type "wt.epm.EMPDocument" and have a requirement to add local attributes to this new type. It seems I am unable to run the "AddColumns wt.epm.EMPDocument String=1" command successfully whereby the database and the "AddColumnsSchema.xml" are updated. I have received errors such as those seen below when running "AddColumns -r wt.epm.EPMDocument":

 

1. "The type wt.epm.EPMDocument has not implemented interface: wt.epm.EPMDocumentTypeInterface"

2. "Standard attribute columns have not been enabled for this type"

 

Please can someone advise how I can restore the total string column counts for "Introspection" and "Class" to "0" again. And, how I can create columns in the database to allow me to add local attributes to my new sub-type?

 

2 REPLIES 2
Fadel
22-Sapphire III
(To:BF_13811900)

 Standard/local attributes are not supported on EPMDocument and its subtypes (CAD Documents, ECAD Documents, Dynamic Documents ...) as per decisions made since Windchill 10.0 

Even if added attribute to DB, there is no UI way to do this 

 

Fadel_1-1754567965451.png

 

 

Fede
BF_13811900
12-Amethyst
(To:Fadel)

Ok thank you.

 

I have a need to associate records to parts in my Windchill instance. The records should not be in the form of documents uploaded to Windchill but should instead be some sort of object which is described by the attribute values inputted by the user upon creation of the object. I would need to assign custom attributes against the object to allow it to contain all of the information the user may wish to use to represent the record.

I was originally thinking of doing this by creating a sub-type of a "Note" in Windchill and then associating this to any existing parts the record was applicable to. However, I've found out that you can't add local attributes to "Note" types. This is the background as to how I've came across the issues mentioned in this post.

Have you got any suggestions as to how I can go about creating a type that can be customized to use custom attributes and can be associated with a part? I did just think of creating a sub-type of a part to achieve this. The problem with this is that Windchill would treat my record as a part which is not what my record represents. The type than I am trying to create really is just a "Note" type in Windchill but with custom attributes assigned to it!

Announcements

Top Tags