Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I created a new parameter with the following code based on a condition. Depending on another condition, I want to delete this parameter. Can you write code for me?
Dim oParams As Parameters Dim oAssemblyDoc As AssemblyDocument = ThisDoc.Document Dim oAssemblyCompDef As AssemblyComponentDefinition = oAssemblyDoc.ComponentDefinition oParams = oAssemblyCompDef.Parameters Dim oUserParams As UserParameters = oParams.UserParameters Try p = Parameter("TotalW") Catch oUserParams.AddByValue("TotalW",myvalue, UnitsTypeEnum.kMillimeterLengthUnits) End Try
Solved! Go to Solution.