.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.NET Framework Update Issues

0 REPLIES 0
Reply
Message 1 of 1
cadcamm99
271 Views, 0 Replies

.NET Framework Update Issues

Ever since our .NET Framework was updated on our computers, I cannot seem to get a piece of my program to work now.  This is the piece of code in question.

 

'Check if sheet parameter exist in the Custom Properties
Try
     ThisDrawing.SummaryInfo.GetCustomByKey(strParameterSheet, strValueSheet)
     cbSheetsize.Text = strValueSheet
Catch ex As Exception
     ThisDrawing.SummaryInfo.AddCustomInfo(strParameterSheet, strParameterValue)
     cbSheetsize.Text = strParameterValue
     strValueSheet = cbSheetsize.Text
End Try

 

The line "ThisDrawing.SummaryInfo.GetCustomByKey(strParameterSheet, strValueSheet)" used to error out if the parameter did not exist and went to the Catch line.  But now it does not.  It goes to the next line and sends out an error that the key strValueSheet does not exist.

 

I never had problems with this until the Framework was updated.

 

How can I change this to work?

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost