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

Conditional OIR

klozier
8-Gravel

Conditional OIR

Working in Windchill 9.1 where there is no softtyping for EPMdocuments. I would like to use a conditional within an OIR to set different numbers for CAD drawings vs CAD Models within the same library. The attribute docType appears to be accepted by the OIR however I do not know what the potential values are for this system (logical?) attribute are. I see that within ProductView it appears the epmdoc_docType can have the value of Drawing. It seems that the system knows about epmdocs as a catagory (search criteria).


Does anyone know of a existing attribute (system not soft) that can be used to determine what an epmdoc catagory is from within an OIR and what that attributes values are?


Thanks,


Kelly Lozier

4 REPLIES 4
ddemay
1-Newbie
(To:klozier)

I believe the value to match is CADDRAWING. If you are handy with SQL, you
can see this column on the EPMDOCUMENTMASTER table I believe off the top of
my head. Are you trying to use drop the filename extension as part of the
number? If so, you may run into issues with this.





Also, a side note per your comments.you can soft type cad documents in 9.1,
the functionality supporting it through the user interface is just not
supported, so for general folks, yeah, it is not, but I had figured out how
to make it work. Those who want to try can contact me. You can set the cad
soft type preference by format and by context (just not edit type via 9.1
type manager or use the CAD tool (wildfire or work group manager to pick a
soft type) Even if you don't use for attributes, a great way to control
access or assign varying lifecycles.






Dave,


Thanks for the reply. So now that you set the bait out there, yes I am interested in how you were able to softtype epmdocs in 9.1. Is there an issue with doing as you found an then upgrading to 10.1?


Thanks,


Kelly Lozier


BMPC-KAPL

ddemay
1-Newbie
(To:klozier)

Unless the upgrade manager validates that only one soft type or type exists,
it should not care. We never deployed this to production, but never had any
complaints during testing either. It blows up in the 9.1 type manager
because there is code that specifically prohibits soft typing cad docs built
into the type manager applet, but to the underlying code provided the types
are created correct with SQL, it's a non issue. You just have to be
prepared to support it in a non traditional way. There is a column in the
epmdocument table (like others) that is used to associate its soft type, so
it can be easily undone to OOTB temporarily during an upgrade and set back
after.



I did this with numbering, I removed the indexes for number uniqueness.
Allowed the drawing, part, and assembly of same cad format in same
organization to have the same number. Upgrade manager complained the index
was missing, so it make it unique during the upgrade process, I binded the
ida2a2 of the epmdocumentmaster to the end of the number string (with the
help of a coworker whose best skill is SQL) and also created an inverted
query for post upgrade. (Anything to make it unique.) We then temporarily
restored the Oracle index and proceeded with upgrade rehearsal; no issues.
I mention this only because you had spoken of numbering but also to glimpse
into what sort of QA checks the upgrade manager performs to what depth.






Kelly,
I had the same requirement but was told by PTC technical support that it is not possible because the Pro/E WGM doesn't send the docType to Windchill when executing the OIR (10.1 M010). I'm surprised that you were able to access docType in the EPMDocument OIR. I found that docType is only available when creating a WTPart and associated CAD Document from within Windchill but from ProE it doesn't work.

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image001.jpg@01CDB757.D5C4BA90]
Top Tags