Message 1 of 3
Not applicable
10-25-2011
02:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am getting some wierd angle results when I pass an angular value (e.g. 45 degrees) stored in 'Double' variable, and passing it to re-set the 'AngleRot' instance parameter in the family.
I am getting some wierd angle results when I pass an angular value (e.g. 45 degrees) stored in 'Double' variable, and passing it to re-set the 'AngleRot' instance parameter in the family.
As an example, if the the value obtained is 45 degrees then when I pass it to set the 'AngleRot' instance parameter, the family shows 1543.34567... Some strange value!!
What is teh method for converting the Double value to an Angular value correct in C# to assign it to a Revit instance parameter of 'Angle' type...
Thanks for your help
What is teh method for converting the Double value to an Angular value correct in C# to assign it to a Revit instance parameter of 'Angle' type...
Thanks for your help
###### CODE BEGIN ######
double AngleDbl = 35.5;
param1 = familyinstance.get_Parameter("AngleRot");
param1.Set(AngleDbl);
###### CODE END ######
Zak
Solved! Go to Solution.