How can I retrieve Bolus class from API?

Developer
Feb 9, 2016 at 9:26 PM
I found that Bolus class is defined in EclipseAPI 13.6, but I cannot find a way to retrieve the class. It looks like an “orphan” class. I need to get Bolus ID and Name in my current project. It is greatly appreciated if someone can provide helps or clues.

Thanks,

Angell
Developer
Feb 9, 2016 at 9:38 PM
Forget about this thread. I figure it out
Apr 24 at 5:44 PM
Could someone kindly post a solution to the above problem? I am facing the exact same problem - what's the best way to access bolus class to retrieve the properties?

regards.
Developer
May 31 at 4:46 PM
you can use beam class to access a collection of beam boluses. ONLY Id, MaterialCTValue, and Name are provided as properties in Bolus class.
Sep 14 at 9:33 AM
I tried context.PlanSetup.Beams.First().Boluses.Id
But it's wrong
Coordinator
Sep 14 at 10:42 PM
Boluses is a collection of boluses, so the collection doesn't have an Id property. Assuming there's at least one bolus, try context.PlanSetup.Beams.First().Boluses.First().Id. If there are no boluses, you'll get an exception.