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

naming and numbering via OIR

SOLVED
Highlighted

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: naming and numbering via OIR

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/ProEWCIntegCustCADDocSof...

12 REPLIES 12

Re: naming and numbering via OIR

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.

 

Re: naming and numbering via OIR

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

Re: naming and numbering via OIR

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

Re: naming and numbering via OIR

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

Re: naming and numbering via OIR

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/ProEWCIntegCustCADDocSof...

Re: naming and numbering via OIR

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?

Re: naming and numbering via OIR

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>

Re: naming and numbering via OIR

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?

Re: naming and numbering via OIR

Those are definied in the rbinfo file

 

codebase/wt/epm/EPMDocumentTypeRB

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

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________ Check out the Windchill Tips Board! We're talking about Whirlpool's use of digital twin, augmented reality, and data-driven design!

The NAVIGATE WORKING GROUP is here! Come innovate with PTC!

Sign up for a Working Group