Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking to create a Category Rule using a File Type property.

7 REPLIES 7
Reply
Message 1 of 8
yeakelme
1046 Views, 7 Replies

Looking to create a Category Rule using a File Type property.


In Vault Workgroup 2010, is it possible to create a Category Rule utilizing Properties (File, System or User Defined) that can allow automatic assignment of specific file types to separate Categories?


For example: I want to program Vault Workgroup to correctly distinguish between an Inventor DWG and an AutoCAD DWG and automatically assign each type to a different Category upon Check-In.


I can't find a default Property within Vault Workgroup, based on "File Type", that I can use to create this type of Rule. I know there is a View Field... column description entitled "File Type", but I can't seem to find a corresponding Property with the same name.


Any help would be greatly appreciated. Edited by: yeakelme on Feb 12, 2010 1:46 PM
Regards,

Mark
---------------------------------------------------------------------------------
Autodesk PDSU 2016 Ultimate, Inventor Professional 2016 Build: 236, SP2 Update 1
Windows 10 Pro 64-bit, Ver. 1607, Build 14393.1198
Dell Latitude E6530; 16 GB RAM; Core i7-3520M 0 2.90 GHz, 2.90 GHz
NVIDIA NVS 5200M, driver 376.54; SpaceNavigator, driver 10.3.0
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: yeakelme


Have you looked at the file 'classification'
property?

 

Failing that, perhaps there are some properties
internal to the file that could be used to differentiate the two?

 

Paul
Message 3 of 8
yeakelme
in reply to: yeakelme


Yes. I've looked into the "File Classification" property. However, I'm not sure that this is what I ultimately need until I use it in a Category Rule. Pending the resulting outcome. It seems that a File Type property would give one more funtionality.


Do you know of any resource that describes each of the available choices found under the "File Classification" property Value pull-down? (ie. Design Document vs. Design Visualization vs. Design Substitute etc.) ...Or for any of the many other property definitions? Would the Design Document "File Classification" property value correctly filter to the DWG file type?


I'll need to investigate further the possible internal file properties that could be used to differentiate the two.


Thanks for the help so far.

Edited by: yeakelme on Feb 12, 2010 3:33 PM
Regards,

Mark
---------------------------------------------------------------------------------
Autodesk PDSU 2016 Ultimate, Inventor Professional 2016 Build: 236, SP2 Update 1
Windows 10 Pro 64-bit, Ver. 1607, Build 14393.1198
Dell Latitude E6530; 16 GB RAM; Core i7-3520M 0 2.90 GHz, 2.90 GHz
NVIDIA NVS 5200M, driver 376.54; SpaceNavigator, driver 10.3.0
Message 4 of 8
Anonymous
in reply to: yeakelme


Unfortunately I'm not aware of a resource that
describes the mapping from the various file types to the classification that is
used. The category rules use the same property infrastructure as search, so if
you can define a search that matches the correct files, you should be able to do
the same in a rule. Paul


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

Yes. I've looked into the "File Classification" property. However, I'm not
sure that this is what I ultimately need until I use it in a Category Rule.
Pending the resulting outcome. It seems that a File Type property would give
one more funtionality.

Do you know of any resource that describes each
of the available choices found under the "File Classification" property Value
pull-down? (ie. Design Document vs. Design Visualization vs. Design Substitute
etc.) ...Or for any of the many other property definitions? Would the Design
Document "File Classification" property value correctly filter to the DWG file
type?

I'll need to investigate further the possible internal file properties
that could be used to differentiate the two.

Thanks for the help so far.

Edited by: yeakelme on Feb 12, 2010 3:33 PM
Message 5 of 8
john.laidler
in reply to: yeakelme

Just create rules as shown below:

DWG Creator name contains Inventor for Inventor DWG's
DWG Creator name contains AutoCAD for AutoCAD DWG's
John Laidler
AutoCAD, Inventor and Vault



Please use "Accept as Solution" & give "Kudos" if this response helped you.
Message 6 of 8
Anonymous
in reply to: yeakelme


The API documentation describes what the classifications
mean.  I've copied the relevant information below:

 

----------------------------------

 

None
The default file classification. This should be used for
standard CAD files (ex. DWG, IPT, and IAM) and other types.


DesignVisualization

A visualization file (ex.
DWF)

DesignDocument

A design file containing data derived from
a CAD file (ex. IDW or IPN)

ConfigurationMember
A file created from a template (ex. iPart
members).

ConfigurationFactory

A template file (ex. iPart
factories).

ElectricalProject

A electrical CAD project file
(ex. wdp).

DesignSubstitute

A design which is a substitute for
a more complex design file.

----------------------------------


So File Classification doesn't help you much in this
case.  Both Inventor and AutoCAD DWG files should have a classification of
"None".


The only way I can think of is to check for a property
that exists in only Inventor or AutoCAD and is always filled out.  I'm not
sure if such a property even exists.  



--
-- Doug
Redmond
Software Engineer, Autodesk Inc.

title="http://justonesandzeros.typepad.com/ CTRL + Click to follow link"
href="http://justonesandz...


 

Message 7 of 8
jalanp1955
in reply to: Anonymous

You can use the "Provider" property of the file to tell if it is an Inventor or AutoCAD DWG.

Message 8 of 8
tmoney2007
in reply to: yeakelme

Classification is kind of used to define one end of a parent child relationship. For example, when you use copy design and enable the "include related documentation" option, Vault knows all the children of the assembly you selected, but the relationship between the drawings for the assembly itself and all of the subcomponents goes the other way.

 

All the subcomponents of the assembly show up in "Uses" but the drawing is in "Where used" because the drawing is the parent. Vault uses Classification to find the drawing among the parents of the parts. It basically searches for a file that is a parent of the assembly AND the classification is "Design Document."

 

Classification is used similarly to define special relationships in other situations.

 

Design Document is the classification for Inventor Drawings

Design Visualization is for DWF's and DWFx's

Design Substitute is for Inventor Substitutes

Configuration Factory is for Inventor iPart and iAssembly factories

Configuration Member is for Inventor iPart and iAssembly members

 

The property you are looking for is called "file extension" in 2013 and if you need to distinguish between autocad and inventor dwg's there is also a property called "provider" that contains the program the file is used for (autocad or inventor).

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report