Now we can begin to create a rule containing the iLogic commands that define the model. We can create multiple rules, each with unique steps, or we can create a single rule containing all the steps required to build our model. In this case, we’ll create a single rule.
You will see that the Main rule has already been created. This rule must exist in parallel to all other rules you create. For the purposes of this tutorial, just be aware that this rule must always be present. The main rule is used for
By default, in the Main rule, the iLogic External Rules directory and iLogic Addin DLLs directory are set to the C drive as follows:
ExternalRuleDirectory(0) = "C:\Program Files\Autodesk\Nastran 2019\In-CAD\System\iLogic"
oIlogic.FileOptions.AddinDirectory = "C:\Program Files\Autodesk\Nastran 2019\In-CAD\System"
If Nastran IN CAD 2019 is installed on a different drive, both of the directories need to be set accordingly. For example, if installed in a folder D:\ADSK_NS2019, the paths for both directories need to be updated in the Main rule. Edit the Main rule and change the paths as follows:
ExternalRuleDirectory(0) = "D:\ADSK_NS2019\\Nastran 2019\In-CAD\System\iLogic"
oIlogic.FileOptions.AddinDirectory = " D:\ADSK_NS2019\Nastran 2019\In-CAD\System"
