For more detailed information about explicitly declaring your rule class, see “How is a rule processed?” Sub Main() can be used in any rule, regardless of whether the rule has additional code. To add more subroutines, functions, properties, or Classes, declare a Sub Main() as follows: Sub Main() The main rule code is an "implicit" subroutine. Option Strict On also works for most rules. It allows you to use local variables without declaring them. Option and Imports are standard VB.NET statements. You can use the following statements at the top of the rule, before the main rule code: Visual Basic 2008 (.NET Framework 3.5) syntax is supported within the rule code. You can also call DLL files written in C# or C++. Use Visual Basic 2005 or 2008 to create external DLL files that you can call from rules. You can use more advanced features of VB.NET in a rule. However, you are not limited to these techniques. You can write iLogic rules using only Autodesk Inventor parameter assignment statements, predefined iLogic functions, and simple VB.NET code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |