If you would like to download the code, it can be downloaded. Save pdf using ilogic and name after revision number. This video discusses how to change drawing formats with ilogic. This can easily be done by clicking the feature in the model tree and selecting capture current state. Press ok, save the part and test the rule from the ilogic parameters. The computeraided design cad files and all associated content posted to this website are created, uploaded, managed and owned by third party users. Once the macro is created, you can add it to the ribbon. Using the new ilogic event triggers i have been using ilogic since it was acquired by autodesk and one of the biggest headaches with ilogic rules was setting event triggers for legacy files. You could save locally if your ilogic rule is a work in progress, or save on the company server if you are ready to share your rule with others. So what i did at first when i had just 2 or 3 questions to ask, was make message boxes with a question and that would be fine. May 15, 2015 the ilogic edit rule window does an okay job of highlighting the mostused of these.
Autocad inventor ilogic save as pdf rule oct 24, 2012. Oct 12, 2017 this video shows how to use ilogic to generate a pdf of an inventor drawing. This video shows how to create an ilogic rule that will save a pdf version of a drawing when a drawing is saved. While its possible to create basic forms with ilogic, you cannot modify the inventor user interface. Understanding autodesk inventor ilogic hagerman blog. When strut is set to 2 the overall base, size needs to change as well. Using variations of conditional statements in an ilogic rule. May 21, 2018 to create a button for an ilogic rule on the ribbon, you will need to create a vba macro in inventor that will fire an ilogic rule. This class will show students five ways they can use ilogic that are not specific to any one design.
From the browser, drop down model and choose ilogic. Access existing ilogics rules from the tree editor or the browser. So just as in the save as dialog where you need to click options to export all sheets we need to add more complex code. Showplease run on assembly, run rule end try dim oocc as. Drawing conclusions on formatting a drawing with ilogic. I thought id save you all some time and post the full ilogic options here also including the extra undocumented options from adam nagys blog here thanks adam. The save copy as tool within autodesk inventor will allow users. If the file is a 3d model, the user will get a message.
Clicking any of these dropdown items inserts them into the ilogic rule window. I am creating an ilogic external rule in inventor 2016 to save the. Advanced save as pdf ilogic rule inventor autodesk. Now when the rule is run, this new part number and description are looked up and written to the model file iproperties. The advanced railing sample has a rule for generating an excel report. Youd like to present the user with a save as dialog box that will allow them to browse for a folder during the execution of your ilogic rule. So far the code is beautifully short and simple and works like a charm for singlesheet files. The ilogic component in autodesk inventor software is very powerful in helping users automate segments of their design process. Save as pdf ilogic rule inventor autodesk knowledge network.
The rules determine and drive the design parameter and attribute values. You can use the following ilogic rule to accomplish this. You want to save a pdf of each inventor drawing file in a pdf folder based on the path of the the current drawing file. This video looks at an ilogic rule that will automate the saving of a pdf file when a drawing is saved.
Using excel and ilogic to retrieve part numbers from a. Dec 01, 2012 working with external ilogic rules as i was putting a response together i thought it might be a useful topic for others. Steve, excellent demonstration of how ilogic can very easily automate repetitive tasks we do every day. Saving a pdf of a drawing using ilogic its a cad world. Then, we will address five scenarios that the students could be facing and the ilogic rules that could be used to resolve. Net program that can monitor and control other inventor parameters, features, or components. Here is a quick ilogic rule that will allow you to browse for a new file with which you can replace the derived reference of an existing derived component. If you would like to download the code, it can be downloaded from here. Sharing some ways i have used ilogic in the past is a subject i like sharing with others. Save as pdf ilogic rule inventor autodesk knowledge. On save as you need to click on options to choose all sheets as well as print in colors and dpi resolution. They have found that export to pdf doesnt work on inventor 2018, but it used to on previous version of inventor.
The rule works but the file will always accept saving. Apr 24, 2012 i have an ilogic rule created to do a save as. To create a button for an ilogic rule on the ribbon, you will need to create a vba macro in inventor that will fire an ilogic rule. Google the fantastic ilogic code injector which allows you to batch create ilogic rules in multiple inventor files at once. We can change the name of a rule at anytime later on. Can you automatically create an ilogic rule in an inventor file. Thats where youll find contract specific files, as well as images, schedules, emails and literally anything that the project needs. Cad forum ilogic macro for exporting idwdwg inventor. In the edit rule dialog you create the rules by selecting functions and making changes to the code that is inserted into the edit rule dialog. You need to update the excel link to the picture it includes railing ilogic sample advanced. Jul 07, 2011 you want to save a pdf of each inventor drawing file in a pdf folder based on the path of the the current drawing file. Break points these function in a similar way to the message boxes we discussed earlier, but allow the developer to step through the code line by line. Accessing and incorporating the various function types into an ilogic part, assembly, or drawing file rule.
For instance, you are working on a file called 47912. In the ilogic browser, click the rules tab to edit a rule in the open document. Theres a sample file in the inventor api help for exporting a 3d pdf file, but its vba code, so to use it in an ilogic rule you need a little tweaking. Using autodesk inventor and the ilogic tools embedded with inventor we can automate this process to save multiple file formats such as pdf, jpg, tiff, png etc in one go. Working with external ilogic rules autodesk manufacturing.
Ensure that the ourl path in the code matches the download location of the html file the code is defaulted to c. Exit rule if no part or assembly is in the drawing yet. The snippets available in the ilogic rule editor are by me anyway an underused addition to the ilogic toolset. Using inventor ilogic to save multiple formats autodesk. As you probably have noticed, inventor ilogic rules are a frequent topic in this blog.
Oct 25, 2012 youd like to present the user with a save as dialog box that will allow them to browse for a folder during the execution of your ilogic rule. For example, i could write an ilogic rule that would save a pdf of a drawing. Using autodesk inventors ilogic tools we can build a rule that. I am not good with ilogic but i have this rule that gives me length and width of a sheetmetal part in mm and with, comma. Or, click the external rules tab to edit a rule for the component that is in an external file. For example, you cannot add ribbon tabs, panels, or buttons that execute commands. Since the release of inventor 2018, i have had a few support calls from customers who have found ilogic scripts online. Oct 25, 2014 this tutorial will focus on just a few of the most common actions to demonstrate the power of ilogic rules. Lets say the rule can export in either dwg, pdf and dxf.
A reader recently pointed out a limitation of this ilogic snippet stemming from its use of the apis filedescriptor. Valuemodelname,project, part number modelname update the drawing inventorvb. You want to choose per format if you want to save or not. Autodesk inventor 2018 ilogic set sheet metal rule for selected components. Understanding the ilogic interface components ilogic panel, edit rule dialog box, and ilogic browser. Create an new ilogic rule and paste in the code below. A while back i posted a blog about locating a certain project folder on the network before doing the pdf, dwf export. Working with external ilogic rules as i was putting a response together i thought it might be a useful topic for others. Jul 31, 2014 locate folder for ilogic save as our design office uses vault for backup and history but the rest of the engineering department has its own folder on a mapped network drive.
However, the examples in the ilogic snippets all use a predefined or hard coded folder path. Autocad inventor ilogic rule will always accept save regardless changes or not mar 14, 20. The ilogic edit rule window does an okay job of highlighting the mostused of these. Adding a save as dialog box from the trenches with. Is there a way to present a save as dialog box, so the ilogic rule can be more dynamic. Code snippet that runs rule in all occurrences of an assembly if rule is present in occurrence. This video looks at an ilogic rule that will save a pdf of the current document, but will check to see if the current document is a drawing or a 3d model first. This rule checks to see if the file is a drawing, if so it will create the pdf. Nov 21, 2012 this video looks at a variation on the create pdf rule.
Modeldocument is nothing then return get the file name of the doc the drawing points to. Oct 12, 2017 using the new ilogic event triggers i have been using ilogic since it was acquired by autodesk and one of the biggest headaches with ilogic rules was setting event triggers for legacy files. This blog post explains how to change specific components in autodesk inventor instead of bulk editing every sheet metal component in the entire assembly. Sep 23, 2010 steve, excellent demonstration of how ilogic can very easily automate repetitive tasks we do every day. I thought id save you all some time and post the full ilogic options here also including the extra undocumented options from. Tested on inventor 2018 sub main define the assembly document dim odoc as assemblydocument dim rulename as string test check if active document is an assembly try odoc thisapplication. Valuemodelname,project, part number modelname update the drawing. If you use event triggers, you can fire the rule automatically. I used a simple ilogic command calling the saveas function. But when i updated to inventor 2018 it wont work anymoore. Doubleclick the rule, or rightclick and select edit rule from the context menu. Playing by the ilogic rules augi the worlds largest. For beginners, typing logic statements within ilogic is sometimes a difficult idea to get to grips with.
Inventor and if the ilogic addin is loaded, you will see the ilogic panel on the manage tab. If you want to save it in a different folder you can predifine the location using the following. Run ilogic rules from your ribbon cadline community. The byte array is passed back to vba through the same ilogic rule. We want to use ilogic to save a pdffile of the dwgdrawing every time we hit save. Next, ive added a confirmation dialog box with yesno buttons to the end of the rule to allow me to accept or reject the returned values in case i run the rule without remembering to save the spreadsheet after adding a new row, etc. One of my first rules, that i was pretty proud of, was the ability to have ilogic save a pdf of inventor drawings. Steve bedder of autodesk uk has produced a great video on how to produce the ilogic rule. Save external rules to a folder that ilogic can find when running them from another rule. Autodesk inventor 2018 ilogic set sheet metal rule for. Review of model and userdefined parameters, and equations and their importance in ilogic. Rule creation workflow for autodesk inventor parts and assemblies.
Autodesk inventor 2017 ilogic export to 3d pdf all options. I have a few lines that define the directory location pdfpath which culminates into this final line. This tutorial will focus on just a few of the most common actions to demonstrate the power of ilogic rules. Essentially i am launching an ilogic rule from vba that pushes an inventor document object into a vb. The folder in which the current inventor document is located. Apr 25, 2016 theres a sample file in the inventor api help for exporting a 3d pdf file, but its vba code, so to use it in an ilogic rule you need a little tweaking. Locate folder for ilogic save as our design office uses vault for backup and history but the rest of the engineering department has its own folder on a mapped network drive. This video looks at a variation on the create pdf rule. Youd also like to append the revision number to the pdf file name.
248 1475 44 933 1438 394 1171 165 909 318 709 983 547 866 1460 917 1041 1043 622 1019 415 680 108 558 682 370 895 1542 618 1393 358 1394 822 1341 447 1474 848 1283 633 961