Creates a rule to set up the Inventor Title Block

Hi all

When I create a part in Inventor 2016 I always title it in the same way, i.e . a number and the name of the part (e.g. 10-001 - Platinum) and this writing can be found in the properties of the part, under the criterion "Part number", so far no problem.

But when I make the drawing of the part, I would like to be able to automatically complete the cartouche and to do this I need the "10-001" to define the reference of the part and the "Plate" for the designation. 

So I'm trying to create a rule (Image below) to be able to split this string in two and keep only the 6 characters on the left of the "Part Number"  criterion for the Marker and  insert the rest in Designation. I managed to make the code on VBA but impossible to adapt it in Inventor.

 I noticed that it is possible to create a rule to modify the Iproperties of the room, is it wiser to act on the Iproperties directly? 

I don't know if the explanation is clear enough, if it isn't don't hesitate to ask questions.

Thank you in advance.

Alexis

Thank you 

Hello

I'll try to answer you if I understood your request correctly.

When you create a part, which you name in your example 10-001 - Platinum.ipt

This number serves as the registration number for your plan, so 10-001 - Platinum.idw.

In your cartridge you want to get the word platinum.

Why not enter in the Ipropriété in the summary tab this platinum name at the title level and you insert that your cartridges a text box simply retrieving the title

I hope I understood that it answers your problem.

Thank you Franck51,

With your method I must, for each room, go to the Iproperties and manually write the Title. This is what I am currently doing by writing the name of the part in the Project tab --> Description

What I'm looking for is to avoid this step and directly exctract and split the Name and Number of the part that I entered manually at the registration of the part.

The goal of the manipulation is to no longer have manual steps to fill the cartridge, because on large assemblies it is quite long and there are often oversights.

1 Like

Hello again

Indeed for the title you have to write it permanently as for the issue normally

As for the link, it's like for the title it registers automatically here is my blank cartridge at the time of opening the IDW file

as soon as I put a part or an assembly in it:

all this information on its own with the path

The only problem is when it is information on parts or assemblies that were not present the cartouche remains blank  for the areas I have named

Product:

Component:

Room:

Hello Franck51,

I have the same title block as you where most of the fields are auto-filled thanks to the properties of the template, but I remain convinced that it is possible to create a rule to remove certain information such as the part number and the title from the file name in order to avoid entering them a second time.

Thank you again for your answers!

Alexis