I am new to the ilogic. I am wanting to use ilogic to update some prints as needed.
I need to create and external rule to:
1) migrate the drawing to the lastest inventor version (2012),
2) copy all drawing resources (borders, title blocks, and sketched symbols) from a template file (.idw),
3) replace the title block and border with specified block and border.
Any help would be appreciated.
Solved! Go to Solution.
If it's one drawing just open and save.
Copy the resources from template to drawing.
If you are doing many drawings.
Task Scheduler will do 1)
Drawing resource transfer wizard will do 2)
If the title block and border have the same names in target and source drawings, Drawing resource transfer wizard will do 3) too.
If the names are different in the template source and drawing target, in the template create copies of title and border with the target title and border names then you can replace.
I would have thought that Task scheduler should migrate all the drawings, you may have to run a rebuild or update.
WikiHelp gives a specific migrate order http://wikihelp.autodesk.com/Inventor/enu/2013/Hel
4. If you migrate specific files, follow this migration order, since assemblies depend on parts, and drawings can depend on both parts and assemblies.
If you are going to open the drawing to run a rule you may as well open a dozen drawings and use save all to migrate, it will tell you at each save that the file will be migrated and wait for you to ok.
Once you have the batch migrated then you can run the drawing transfer wizard.
I suppose ilogic could automatically accept the migrate warning and carry on, I don't know.
I don't use ilogic so couldn't give you any help there but I assume that any code would be doing exactly the same as the wizard so would take as long.
I still think the pre-programmed tools are our best option as they have been made for the job you want.
Sorry I can't be any more help.
I cant help with everything, but with the template file, perhaps this might be of some help.
I have a global template with a list of predefined title blocks and borders, I use iLogic to copy the selected title block to a vanilla idw. (Standard,idw) The ISO titlte block is empty to conserve file space. I have not set the code to copy symbols yet, that is still a manual process.
ThisDrawing.ResourceFileName = "c:\data\templates\template.idw" ThisDrawing.KeepExtraResources = False Dim resu1t As String="Result" Dim T1TLE As New ArrayList T1TLE.Add("Eng - Fabritecture") T1TLE.Add("Eng - Greenline") T1TLE.Add("Eng - SPLASH") T1TLE.Add("Eng - UFS") T1TLE.Add("Shop - Fabritecture") T1TLE.Add("Shop - Greenline") T1TLE.Add("Shop - SPLASH") T1TLE.Add("Shop - UFS") T1TLE.Add("Shop - Fab - DWG Props") T1TLE.Add("Shop - UFS - DWG Props") resu1t=InputListBox("Select Drawing Title Block", T1TLE, resu1t, _ Title := "Title Block", ListName := "Title Blocks from Template") 'Set iProperties based on the selection. If resu1t="Eng - Fabritecture" Then ActiveSheet.TitleBlock = "ENG-FAB" 'End If ElseIf resu1t="Eng - UFS" Then ActiveSheet.TitleBlock = "ENG-UFS" 'End If ElseIf resu1t="Shop - Fabritecture" Then ActiveSheet.TitleBlock = "SHOP-FAB" 'End If ElseIf resu1t="Shop - UFS" Then ActiveSheet.TitleBlock = "SHOP-UFS" ElseIf resu1t="Shop - Fab - DWG Props" Then ActiveSheet.TitleBlock = "SHOP-FAB-DWG" 'End If ElseIf resu1t="Shop - UFS - DWG Props" Then ActiveSheet.TitleBlock = "SHOP-UFS-DWG" ElseIf resu1t="Eng - SPLASH" Then ActiveSheet.TitleBlock = "ENG-SPLASH" 'End If ElseIf resu1t="Shop - SPLASH" Then ActiveSheet.TitleBlock = "SHOP-SPLASH" 'End If ElseIf resu1t="Eng - Greenline" Then ActiveSheet.TitleBlock = "ENG-GREENLINE" ElseIf resu1t="Shop - Greenline" Then ActiveSheet.TitleBlock = "SHOP-GREENLINE" End If 'check for custom iprops and add them if not found Dim propertyName1 As String = "PROJ_NAME_1" Dim propertyName2 As String = "PROJ_NAME_2" Dim propertyName3 As String = "PROJ_NAME_3" customPropertySet = ThisDoc.Document.PropertySets.Item _ ("Inventor User Defined Properties") Try prop = customPropertySet.Item(propertyName1) prop = customPropertySet.Item(propertyName2) prop = customPropertySet.Item(propertyName3) Catch ' Assume error means not found customPropertySet.Add("", propertyName1) customPropertySet.Add("", propertyName2) customPropertySet.Add("", propertyName3) End Try
Other code for the border
resu1t = MessageBox.Show("Do You wish to Insert a Border?", "Insert Border", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If resu1t = "6" Then ThisDrawing.ResourceFileName = "c:\data\templates\template.idw" ThisDrawing.KeepExtraResources = False ActiveSheet.Border = "GDI-Border" End If
Not at this stage, I still select all, then copy and paste to the new drawing.
I only have two drawing templates, so managing symbols is not a problem, once the template is setup, I just keep all the symbols sychronised between the two (Manual Process of copy and paste)
If I create a new symbol, I copy it to the template as well as the Standard.idw, The template file has some rarely used symbols which I use only when needed.
The goal is to automate the symbol copy process as well, but I think it might take me longer to use iLogic as opposed to having them available all the time. (Perhaps a picture of each symbol on the iLogic form might be handy) Still to come though.
Not sure, way above my level of expertise, sorry.
I am a noob with iLogic and VB. I have used the VB help to write some iLogic code, that works well.
Curtis_Waguespack is an iLogic guru, he might have some advice.
Going back to your original question, consider the following:
Writing iLogic rules to do the same, but with less input, might seem a good idea, but what about all the time you spend writing the code and testing. Time that could be spent using the above tools.
Start with some of our most frequented solutions to get help installing your software.