Fabrication API, Setting Airturns, Seams, etc. to None
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an AddIn for CAM/CAD/EST that enforces some of our standards. In many cases, we find that the airturns (vanes) need to turned off, such as return air boots.
However, to set an airturn, you look up the value that you want in the Fabrication Database and set it to that value. However, the default "None" value is not available there. If you try to set item.Airturns[0].Info to null, you'll get a null reference exception.
I noticed that Connectors, and only connectors, have a boolean "IsNone" property. But even that is ReadOnly. Please let me know if I've missed the intended method to set properties like this to None, or if there's some trick that might bypass the NullReferenceException, because if you just make an object with Airturns as None, the Airturn info is literally null. So it can be null to start, but not set to null. Thanks.