Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Fabrication API, Setting Airturns, Seams, etc. to None

Fabrication API, Setting Airturns, Seams, etc. to None

Anonymous
Not applicable
316 Views
0 Replies
Message 1 of 1

Fabrication API, Setting Airturns, Seams, etc. to None

Anonymous
Not applicable

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.

0 Likes
317 Views
0 Replies
Replies (0)