Community
I was following the AU iLogic sample (AU Box & AU Shutter Assembly) to migrate some vb.net code to C# as below, however I got the error "The name 'Parameter' does not exist in the current context" as commented in the following code:
using Autodesk.iLogic.Interfaces; using TempPlate.Utilities; namespace TempWork { public partial class TempPlate : Form { public IParamDynamic Parameter = null ; public IMultiValueParam MultiValue = null; public ILowLevelSupport iLogicVb = null; public TempPlate() { InitializeComponent(); } private void TempPlate_Load(object sender, EventArgs e) { Parameter("Capacity") = 100; //Error: The name 'Parameter' does not exist in the current context" tbxCapacity.Text = Parameter("Capacity"); } } }
Can somebody help me out? Thanks a lot!
Having done some research, and found my mistake to share as below:
Parameter("Capacity") = 100;
Should be corrected as below:
Parameter["Capacity"] = 100;