Tuesday, March 31, 2020

Inserting Properties into an Inventor Title Block

This is my last post in my series covering Vault Properties and Inventor iProperties.  I have previously explained that there is a difference between Vault Properties and Inventor iProperties.  Then the last two posts have been instructions on how to create the property in Vault and map properties to Inventor custom iProperties.  Once you have those properties created and mapped, what can we do with those properties?  They can be shown on drawings in Parts Lists, Title Blocks, and Borders.  So I wanted to complete the series by explaining how to get these properties onto a drawing.

Placing properties on a title block isn't that difficult, but if you haven't done it before, you may not know where to start.  Also, custom iProperties are a little bit tricky.  For the purpose of explaining how to do this, I am going to say that I want to add Stock Location and Originator to my title block and I want to add Stock Location to my Parts List.  That way someone in the warehouse can look at the drawing and know where to find the parts.

Since this is something that we want on all of our drawings, I am going to edit my drawing template.  I will need to have a model that already has those iProperties.  Then I will need to open my drawing template.  To do this properly, you want to use File> Open to open your template.  You don't want to go to File> New.  Once the template is opened, you need to add a base view of a model that contains those custom iProperties.  It doesn't really matter what the model is because we will delete the view once we have placed its properties in the title block.



So the next step would be to edit the title block.  You can right-click on the title block on the active sheet, in the browser, or on a title block listed under the Drawing Resources.  Then click Edit Definition.


This will open the sketch of the title block.  It can be a little overwhelming because you are going to see dimensions, names of properties that populate the title block and labels for those fields.  Most often these will run together and make it a little hard to read.  However, zooming in on certain sections will help.

In this example, I am using the default Inventor Title Block.  So, I think I will change QA to Originator, then place the Originator property in that block.  Then I will add Stock Location at the bottom of that column.  So first I will double-click on QA to change the text of that label to Originator.  Then, I can use the Text command to add a place holder for this property into the title block sketch.  To get the custom iProperty into the place holder, you will need to use the drop-down boxes above the text window to pick the right iProperty type\source, then the desired property.  Then clicking the "x" symbol will place that property into the text window.


After the text is placed, you can control the position of the text, in relation to the insertion point, through the two sets of justification toggles.


Then at the sketch level, the insertion point can be constrained or dimensioned to locate it properly.


So now, I am going to insert a text label, using the text command to label the last box Stock Location.  Then, I will insert the Stock Location custom iProperty into that box.  The following image is what it should look like when done.


When you are done editing your title block sketch, you can click Finish Sketch to exit sketch mode.  Inventor will ask if you want to save the edits or if you want to do a Save As.  In my example, I will just save it.


Here is a YouTube video that shows how to make these changes to the title block.



Adding Stock Location to the Part List is pretty simple, but there is a wrinkle that makes it more difficult.  The issue is that Parts Lists are style based, which means it pulls definitions from the Style Library.  So I could modify the Parts List Style in the template, but if I don't add it to the Style Library, I could have the change undone by the Style Library.  

Before changing the Parts List style, you will need to make sure that your Inventor Project has Use Style Library set to Read-Write.


I typically tell users that this setting should be set to Read-Only because I don't want users inadvertently making changes to their styles.  To change this from Read-Only to Read-Write, you will have to make sure all of your Inventor files are closed and if you are using Vault, the project will have to be checked out to you.

After you have made that change, you can open the drawing template and navigate to the Style Editor.  

Under Parts Lists, you will see all the Part List definitions in this template and the Style Library.  You are most likely using one customized to your company.  I am using the default template in this case.  So I will just copy one of the default styles because I don't like modifying the default styles.  I am going to select Parts List (ANSI) and click New at the top.  This will copy Parts List (ANSI) and ask me to name the new style.  



To add the custom iProperty, I will have to click on the Column Chooser, then select New Property.  Then I can click where it says <<Click here to add a new property>>.  Then I can type Stock Location, which is the name of the custom iProperty I want to add.  This will be case sensitive, so make sure to type it so it matches the way it was spelled in the other places it was used. 


Then back in the Column Chooser dialog, the columns can be ordered using Move Up or Move Down, which are under the selected properties.



Now the style will need to be saved, by clicking on Save at the top of the Style Editor.

So that added the column to the Parts List, but there is one other issue to consider.  Is this Parts List going to be our main/default Parts List?  If so, you will want to change this style to the default Parts List under the Object Defaults.

Doing this will make sure that Parts List w\Stock Location will be the default style for Parts Lists in the future.

Now we need to save these changes to our Style Library.  That is done by using the Save command from the Styles and Standards panel of the ribbon.


This will compare styles in the drawing to styles in the Style Library and offer to change the Style Library's styles to match the ones in the drawing.  This cannot be undone, so make sure you are ready to do this before clicking OK.


Once the styles are saved to the Style Library, don't forget to save the template and change your Inventor Project back to Use Style Library =  Read-Only.  If you are using Vault, you will want to undo your check out of that file.

Here is a YouTube video I made that demonstrates this process.



The process of adding the custom iProperty to the title block or parts lists are not too difficult.  Making sure the Style Library is updated with the new Parts List style is probably the most difficult part.  However, if you can get all your properties managed in your CAD files and in your Vault, you will have a lot easier time getting the right information to show up in the right places.

Friday, March 27, 2020

Mapping Vault Properties to Inventor iProperties

When I started this series about Vault Properties, I pointed out how there is a difference between Vault Properties and Inventor iProperties and I mentioned that it is possible to create a mapping between them.  In my last post, I explained how to create a Vault Property because I felt that most users will have to create that property first.  Primarily because most iProperties are already mapped to Vault.

So now that we understand that there is a difference and we have the necessary Vault Property, I want to explain how to create the mapping between our Vault Property and an Inventor iProperty.  The only other prerequisite is that we have to have an Inventor file that has the desired iProperty, in most cases, this will be a Custom iProperty.

The example I use to demonstrate this is a property called Stock Location.  It is the location in the warehouse that this part is stored.  My Inventor file will have a custom iProperty named Stock Location and it will hold that value.


As long as you have one Inventor file with that iProperty definition, you are ready to map it to your Vault Property.  Go to Vault and open the Property Definition dialog, select the property you want to map to, and click Edit. 


Then on the Mapping tab of the edit dialog, you will be able to click on "Click here to add a new mapping."  This will enable a row for you to define the mapping, each of these fields is a drop-down menu.  I always start with the Provider column.  Clicking in that cell will show a drop-down of all the different types of providers available.  In our case, we will pick Inventor (.ipt, *.iam, *.idw, *.ipn, *.ide).  Please note the other possible selections as well.


Then you will need to designate the File Property.  In this case, Vault will want a sample file that it will pull property definitions from.  It is capable of pulling from the Vault or from a local file, so make sure to pick the proper option based on where the sample file is stored.  Then click "Import Properties" and pick the proper option.


Then the user will be prompted to select the sample file and the File Property drop-down will be populated with all the properties defined in that file.


Then the user can select the desired property from the list.  I do want to point out that Vault will retain that same list during this session of Vault, so if you want to map several properties to properties from the same sample file, you will only need to pick that sample file once.  Also, if you pick a second sample file, this list will display both sets of properties.  If this list gets too cumbersome because of adding several sample files, the icon next to "Import Properties" will clear the list.

There are two other options here that are good to understand.  The Mapping will define if this is a bi-directional mapping or a one direction mapping.  For a user-defined property, you will have several options.  If you are mapping a Vault System Property to an iProperty, you will only be able to have Vault push its value to Inventor.  This is because Vault System Properties are not editable by users.  The "Create" option will tell Vault if it should create the property on the CAD file if it doesn't exist.  Once all of the options have been selected and the user clicks out of that row, the mapping is defined and moved below the line in the Window.

It is possible to create multiple mappings on the same properties, if multiple mappings exist, it is possible to order, or prioritize them from greatest to least.  



I will caution against creating too many mappings, I have talked to several customers recently that have cyclical, or conflicting, mappings and it resulted in undesired property behavior.  So be careful when creating multiple mappings for the same property.

Also, just creating the mappings will not automatically cause the property to be populated with the data from the CAD file.  Running a re-index on the Vault will prompt Vault to begin pulling the data from the mapped properties into the Vault database.  If you don't perform a re-index, the mapping will be carried out as files are checked into the Vault. 


Here is a YouTube video that shows the process.



That is all there is to it.  Following these steps, you should be ready to start mapping all of your custom Inventor Properties to Vault Properties.

Thursday, March 26, 2020

Creating a Vault Property

Since Autodesk Vault is run on a SQL database, it is a very powerful tool for keeping track of CAD files and their associated data.  The ability to search on the properties of Vault is one of the best ways to find and reuse designs.  Even though Vault is loaded with a variety of existing properties, it may become necessary to create your own Vault Properties.  So I wanted to dedicate one blog post, in this series about Vault Properties, to how to create a Vault Property.  Before I get into the steps in the process, I want to remind you that only users with an Administrator role will be able to do this.

The first step is to open the Property Definitions dialog, which is located on the Behaviors tab of the Vault Settings dialog, which can be found by going to Tools> Administration> Vault Settings.



Property Definitions Dialog
Once you are to the Property Definitions Dialog, it is just a matter of click on New and entering the desired information.



For the most part, some of these options are straight forward.  For example, Name is the name of the property.  As long as you are not using special characters or duplicating an existing property name, there shouldn't be any issues here.  Type is just what type of data is going into this field.  Is it text, a number, a date, or a true/false value?

The Associations are a little more in-depth.  When it comes to Vault Basic, Vault Workgroup, or Vault Professional, there are different functions inside of Vault and the new property can be associated with any one of those objects.  The Associations get into is this going to be a property for files, if so, which categories?  Is the property going to be associated with Items, if so, what kinds?  And so on.


After Associations, the user will need to define some of the specific settings for that property.  One option is to have this property included when someone does a basic search.  There are also additional options to set an initial value, force a list of values, require a value, etc.  Each association can have these set independently from one another.

There is a tab for Mapping.  This will allow users to create a mapping between the Vault Property and properties of the actual CAD files, such as Inventor's iProperties.  Property Mapping should really be a post of its own.  So I will cover that is my next post.

Here is a video demonstration that I have posted to YouTube.


So with these steps, you should be able to create your own properties inside of Vault.  Which will enable you to keep track of all the important information about your designs and related files.  Some of this information will be best mapped to your CAD files.  I intend to cover property mapping in my next blog post, so be sure to look for that post within the next week.




Wednesday, March 25, 2020

Understanding Inventor's iProperties and Vault's Properties

In recent weeks, I have been finding that I have been talking to a lot of CAD managers and CAD users about the differences between the Inventor's iProperties and Vault's Properties.  So I decided to kick off a short series of posts regarding properties.

Out of the box, Vault is set to map a lot of its properties to Inventor's iProperties, or vice versa.  It does such a great job that users don't realize there is a difference.

To recognize the difference, it is important to understand how Vault it structured.  Vault's information is split into two parts: the file store and the database.  The file store is all of the files that are stored in the Vault.  The database is a SQL database that stores all of the metadata of the files.  Metadata is basically a fancy term for all of the properties of the files.  So when a user is in Vault looking at all a particular folder, they can display a variety of properties.  In this case, they are really looking at the properties in the database for those files.  Again, most of Inventor's iProperties are already mapped to Vault Properties, so it gives the illusion that you are looking at the iProperties.
















Vault actually has two types of properties, User Defined Properties (UDP) and System Properties.  System Properties are attributes that Vault needs to keep track of, so you are not able to edit these.  Some examples of System Properties are:  Checked Out By, Date Version Created, and Revision, just to name a few.

Vault System Properties

Now a User Defined Property can be pretty much anything a user needs to track.  Vault has a significant number of UDPs by default, but Vault Administrators can add as many properties as they need.  These properties can also be editable.

Vault User Defined Properties

Now, Inventor's iProperties have essentially the same role.  They are designed to allow users to track attributes of the design.  Then they can be used to populate Bills of Material or Title Blocks.  Just like Vault, they can be edited and users have the ability to create their own custom iProperties.   

Inventor's iProperties

The biggest take away here is to understand that there is a difference between the Inventor iProperites and Vault Properties.  It is possible and some-what essential to map iProperties to Vault Properties to make use of Inventor and Vault easier.  For this reason, Autodesk has set up default mappings between the most common Inventor iProperties and Vault Properties.

In future posts, I intend on covering how to create Vault Properties, how to create the mapping between a Vault Property and a custom Inventor iProperties, and how to add a custom iProperty to a Title Block.