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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

naming and numbering via OIR

CHASEONHO
18-Opal

naming and numbering via OIR

Hi

 

i customized a epm document in product
so, creo makes a file that numbering like 'creo-000000032'
and file name get from number

 

i have 2 questions.

 

1. can i more customized about each type?
for example, creo make a part file that numbering like 'creo-part-0000032'
other case, if creo makes a drawing file, this file get number like 'creo-2d-0000033'
is it possible? if it is posiible , please give me a way

 

2. can i makes rule that library file read is possible, but download impossible?
when i get cad data from library
i can save in my local space as back-up file[formatted xxxx.prt.1]
can i makes rule that library file read is possible, but download impossible?
it means team member didn't download libfile to team member's workspace
only read, or it can be used to create assemblies

 

thanks, good day

ACCEPTED SOLUTION

Accepted Solutions

The reference link subtyping is just another possibility. The most important part to create subtypes for CAD-Documents is the xml file EPMDefaultSoftType.xml. There you need to define which CAD Type (CADASSEMBLY, CADDRAWING, CADCOMPONENT,...) is mapped to which type.

 

See also: http://support.ptc.com/help/windchill/wc110_hc/whc_en/Windchill_Help_Center/ProEWCIntegCustCADDocSoftType.html

View solution in original post

12 REPLIES 12
BenLoosli
23-Emerald II
(To:CHASEONHO)

I do not think you can do that as parts, assemblies and drawings all use the same OIR.

If you create yor own OIR for the various file types, if possible, then you could control it.

To get the number sequence, the OIRs would need to use the same sequence number in Oracle.

 

You must be able to download files in oorder to use them in an assembly. You can put rules in place that make all library content read-only to your users.

 

You can have multiple subtypes of an EPM Document. So you need a subtype for the model, the assembly and the drawing. Then you can have 3 different oir's to set a different number.

 

Search for the chapter "Soft Typing CAD Documents".

by the way, there is also an utility to switch the type to a sub-type for existing cad-documents.

thanks brueegg

 

After listening to you, I created a new subtype of TestDrawing for the CAD document.
However, when you create a new file, the properties of the EPM document are imported.
I saw the referenced link, but I do not seem to understand it clearly.
Excuse me, can you tell me more about how to create a type that distinguishes between drawing and assembly?

 

by SeonHo

The reference link subtyping is just another possibility. The most important part to create subtypes for CAD-Documents is the xml file EPMDefaultSoftType.xml. There you need to define which CAD Type (CADASSEMBLY, CADDRAWING, CADCOMPONENT,...) is mapped to which type.

 

See also: http://support.ptc.com/help/windchill/wc110_hc/whc_en/Windchill_Help_Center/ProEWCIntegCustCADDocSoftType.html

thanks

can i ask more?

 

<AuthAppSoftTypeInfo authAppName="PROE">
 <ObjectClassInfo classType="EPMDocument">
    <ObjectTypeInfo type="*">
    <SoftTypeInfo softTypeId="${internet_domain_name}.DefaultEPMDocument"/> <!-- null sub type -->
  <SoftTypeInfo subType="*" softTypeId="${internet_domain_name}.DefaultEPMDocument"/>
</ObjectTypeInfo>
</ObjectClassInfo>
</AuthAppSoftTypeInfo>

 

it original xml file and assuming that a CAD document called Test is a new subtype in Windchill

If you want to share the rest of the drawing

 

<AuthAppSoftTypeInfo authAppName="PROE"> 
      <ObjectClassInfo classType="EPMDocument"> 
      <ObjectTypeInfo type="*"> 
         <SoftTypeInfo softTypeId="${internet_domain_name}.DefaultEPMDocument"/> <!-- null sub type --> 
         <SoftTypeInfo subType="*" softTypeId="${internet_domain_name}.DefaultEPMDocument"/> 
      </ObjectTypeInfo> 

      <ObjectTypeInfo type="drawing"> 
         <SoftTypeInfo softTypeId="${internet_domain_name}.DefaultEPMDocument"/> <!-- null sub type --> 
         <SoftTypeInfo subType="*" softTypeId="${internet_domain_name}.Test"/> 
      </ObjectTypeInfo> 
   </ObjectClassInfo> 
</AuthAppSoftTypeInfo>

 

Is this the right way to do it?

This is an example

 

	<!-- Default soft types for the authoring application : PROE -->
	<AuthAppSoftTypeInfo authAppName="PROE">
		<!-- Zuweisung betrifft EPM-Dokumente -->
		<ObjectClassInfo classType="EPMDocument">
			<!-- Creo Drawing -->
			<ObjectTypeInfo type="CADDRAWING">
				<SoftTypeInfo softTypeId="${internet_domain_name}.CreoDrawing"/>
				<SoftTypeInfo subType="*" softTypeId="${internet_domain_name}.CreoDrawing"/>
			</ObjectTypeInfo>
			<!-- Creo Assembly -->
			<ObjectTypeInfo type="CADASSEMBLY">
				<SoftTypeInfo softTypeId="${internet_domain_name}.CreoAssembly"/>
				<SoftTypeInfo subType="*" softTypeId="${internet_domain_name}.CreoAssembly"/>
			</ObjectTypeInfo>
			<!-- Creo Part / Sheet Part -->
			<ObjectTypeInfo type="CADCOMPONENT">
				<SoftTypeInfo softTypeId="${internet_domain_name}.CreoPart"/>
				<SoftTypeInfo subType="*" softTypeId="${internet_domain_name}.CreoComponent"/>
			</ObjectTypeInfo>
			<!-- Other Creo-Files like frames, etc. -->
			<ObjectTypeInfo type="*">
				<SoftTypeInfo softTypeId="${internet_domain_name}.CreoDocument"/>
				<SoftTypeInfo subType="*" softTypeId="${internet_domain_name}.CreoDocument"/>
			</ObjectTypeInfo>
		</ObjectClassInfo>
	</AuthAppSoftTypeInfo>

I solved it thanks to you!
But one question remains!
I would appreciate it if you could answer the question!

Where can I find the ObjectTypeInfo type called CADASSEMBLY?
What if I want to know more ObjectTypeInfo types?

Those are definied in the rbinfo file

 

codebase/wt/epm/EPMDocumentTypeRB

screenshot 2017-10-20_11-04-35_AM.png

how to show them?

 sadsadsa.jpg

i located codebase/wt/epm/

but there are no rbinfo file and EPMDocumentTypeRB directory

Open a windchill shell and type "enumcustomize"

navigate to the file and open it. Please don't change anything without experience...

Thank you very much!  brueegg!
I wish you all the best of luck!

Announcements


Top Tags