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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

Setting subtype automatically for EPMDocument while creation (Family Tables - Genric/Instance)

ANNA_02
14-Alexandrite

Setting subtype automatically for EPMDocument while creation (Family Tables - Genric/Instance)

Version: Windchill 13.0

 

Use Case: We have 2 subtypes of epmdocument called TypeA_generic & TypeB_instance under EPMDocument(Parent). Scenario - User creates a Family table objects ,

 

1. If it is a generic then set the sub type of epmdocument as TypeA_generic & create corresponding wtpart subtype

2. If it is a instance then set the sub type of epmdocument as TypeB_instance & create corresponding wtpart subtype

Reason we have 2 subtypes is each has a different set of attributes /business logic & also have huge set of existing data in this format from a different plm software.


Description:

Approach 1: Using UPLOAD_SOFT_TYPE. But the problem is I need to enter these details every time when I add a instance (row). (there are possibilities that user might miss adding this param or provide wrong value by mistake)

 

Approach 2: Using EPMDefaultSoftType.xml - using that I can set the subtype. but it allows only to identify epmdoc based on auth app (CREO)& then using the CADDRAWING, CADCOMPONENT or CADASSEMBLY.
But I want to identify based on whether it is a GENRIC or INSTANCE. Is there are any way to identify that within this file.

 

Approach 3: I used a listener code to set the type of document during PRE_STORE, NEW_TO_WORKSPACE event. Type got assigned & corresponding wtpart created, but the designated attributes are not getting populated to windchill. It gets reset (similar to CS204220)

 

@HelesicPetr @avillanueva  @Fadel any ideas

1 REPLY 1

Do you need the WTParts to have different subtypes, or just the EPM Documents?

 

On the EPM side, you should be able to detect the generic flag vs the instance flag directly, without needing a subtype. That might at least help with the business logic.

Announcements
Top Tags