Skip to content

Looking for:

To Work with Rules in iLogic | Inventor | Autodesk Knowledge Network.

Click here to Download

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ASCENT’s team is comprised of courseware developers, engineers, instructional designers, and technical writers who work together to create training solutions that work for our clients. Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.

Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.

Enhance your purchase. Previous page. Print length. Publication date. See all details. Next page. ASCENT’s team is comprised of courseware developers, engineers, instructional designers, architects, and technical writers who work together to create training solutions that work for our clients.

Our curriculum group specializes in the creation of blended education programs that incorporate the best of expert-led and technology-based training offerings to create the most effective course content and ensure that users achieve maximum productivity from their chosen engineering tools. We also work to meet our client’s needs by offering different levels of customization for classroom-training curriculum.

You can use Inventor units in rules in the same manner as they are used in standard Inventor parameter equations. In this example, a part file uses document units of inches. In the iLogic Parameter Editor:. A rule has been written as:. When performing the addition, iLogic converts the value of parameter y from A message box displays the value of 1. Conversely, if the document units are defined as millimeters, then iLogic converts the value of parameter x from 1 in to A message box displays the value of About Forms.

Note: It is not necessary to have rules to create forms. About Wizards iLogic provides several wizards you can use to create sophisticated rules for certain tasks. These wizards are available on the Wizards tab of the Edit Rule dialog box: Create Rule for a Dialog – Use a custom dialog box to drive parameter values. Capture Current View – Capture view orientation and zoom display values. Message Box – Create a rule that displays a Windows message box.

Parameter Limits – Set minimum and maximum values for parameters. The External Rules tab lists all rules stored outside of Inventor on disk , regardless of the open document. Forms are arranged under two tabs: The Forms tab lists all forms and buttons to trigger rules stored in the current document.

The Global Forms tab lists all forms and buttons to trigger rules stored outside of Inventor, regardless of the open document. Tip: iLogic does not automatically load changes that were made to the filesystem. You can reload the global forms from the filesystem by selecting right-click, Refresh. Parameters in Rules You can use standard Inventor parameter names in rules as Visual Basic variables.

Parameters can appear in two different ways: VB. Note: Enter statements that are required to be entered before the rule code in the header editor. For more information on header statements see Advanced iLogic Techniques Reference. In the iLogic Browser, click the Rules tab to edit a rule in the open document.

Or, click the External Rules tab to edit a rule for the component that is in an external file. Double-click the rule, or right-click and select Edit Rule from the context menu. Use the Edit Rule dialog box to edit the rule. As you enter text, the appropriate color coding is applied to your text for readability. Rename Rule To rename a rule, click twice slowly two discrete clicks on the name in the iLogic Browser to enable editing, and then change the existing name.

Do one of the following: To insert a syntax string, use the drop-down lists on the toolbar above the rule text area. To insert a code snippet, click the System or Custom tab in the Snippets area and double-click a snippet. Edit the inserted string or snippet as necessary. Work with Collapsible Regions in Rules To define a collapsible code region, begin the code with a single quote and a left square bracket; end the code with a single quote and a right square bracket.

On the Options tab, select the desired options: Suppressed. Prevents the rule from running automatically. Download your eBook to your personal computer and open it in the free VitalSource Bookshelf application. Download your eBook to your mobile phone or tablet and open it in the free VitalSource Bookshelf app.

Please Note: Dual monitors, tablet, or separate reader device is recommended to facilitate use of the eBook with the software throughout the course. The Boolean values of True and False do not use surrounding quotes. String text parameters can be assigned to Inventor iProperties of type Text. The following is an example of the rule syntax:. A multi-value parameter is an Autodesk Inventor parameter with a stored list of possible values. However, like other parameters, a multi-value parameter has a single value at any one time.

It is not automatically locked to one of the values in the multi-value list, although you can accomplish that with a rule. You create and edit multi-value parameters in the Parameters dialog box.

Right-click on a parameter in any column, and select Make Multi-value to specify that the parameter can have multiple values. Use the dialog box that displays to enter a list of values. For a numeric parameter, the value list can include fractions or equations.

 
 

 

RĂ©solu : Inventor iLogic error – Autodesk Community.iLogic | Inventor | Autodesk Knowledge Network

 
February 8, @ AM – February 9, @ PM Using variations of conditional statements in an iLogic rule. 6. Accessing and incorporating the. It allows users to create rules based automations of repetitive tasks and to create intelligent component configurations. The iLogic language is. Enables rules-driven design, providing a simple way to capture and reuse your work. Use iLogic to standardize and automate design processes.

 
 

About Rules and Forms in iLogic | Inventor | Autodesk Knowledge Network – Uses for iLogic component

 
 

I have just updated to AIP on Windows Main at Autodesk. ExecRuleEval String execRule. Hey, here’s the error: In your code you’re setting up the PDF addin up to the point where you want to export it. Then you use simple save as instead of export.

There’ve been some changes in to the PDF export, so I guess that’s what you’re encountering. I am having a similar problem. My code looks like what Owner posted, but I’m experiencing the same error. My ilogic text is attached.

I walked through my code line by line and found that the problem code dealt with the PDF options. When I hid the “If” statement and simply kept the rest it worked. I had the same problem as described and my code was already like Mike’s solution. Commenting the “If [ CreateTranslationContext oContext. Exists oFolder Then System. Question, MessageBoxDefaultButton. Button1 ‘Publish document. Show “Canceled”, “We’re doing nothing now Show “Would you open the folder?

YesNo, MessageBoxIcon. I put the template on the server to be used by my collegues, and they can’t do that because of this line:. Well, if you read the code and look at what that line does, and where it points to, you will see 2 things:. It points to a local path on YOUR computer, so it’s obvious that it wouldn’t work on a different computer. It’s up to you to decide what you want to do with the functionality that is lost by this not working Do you want to modify it do a generic path that works on all computer?

Do you just want to remove it? First I want to thank you for the response, I know what the line dose but I don’t know how to modify it to let other person to use the macro. I want to chage the line to work for all, because I moved the teamplate folder on the server to have all of us the same teamplate. That’s usually the way to change file locations.

Also, to change your ACAD export year, change the. Inventor iLogic and VB. Activer les suggestions. Vouliez-vous dire :. Il ne s’agit pas d’une traduction officielle et le texte peut contenir des erreurs et des traductions inexactes. Message 1 sur Inventor iLogic error. Code attached. Message 2 sur Message 3 sur Message 4 sur If so please use the ‘Accept as Solution’ or ‘Like’ button below.

Justin K Inventor Message 5 sur Cheers Mike That solved the issue. Message 6 sur Message 7 sur This solved my issue. Thanks Dennis! Message 8 sur Hello, I use the follwoig code to export pdf and dwg in the same time. In Inventor it’s working perfect, but in I recive an error.

Can you help me? Message 9 sur It would be nice if you use the Accept as Solution or Kudos button below.

Message 10 sur Hi, Can you help me with another problem. Message 11 sur Well, if you read the code and look at what that line does, and where it points to, you will see 2 things: 1. It’s only used to open up the folder for viewing after export. Message 12 sur Hello, First I want to thank you for the response, I know what the line dose but I don’t know how to modify it to let other person to use the macro.

If is that posible. Also can I modify the macro to export the dwg file to autocad , for example? Thank you! Have a nice day! Message 13 sur If you still want it to be in a folder named by the project, that part of it looks fine. Message 14 sur Dennis has the solution!