Cleo Hogan has tuned taking bees from trees to a science.
His pdf is attached below. The idea is simple, the execution can get complicated by terrain, height, and property owner's druthers.
I did a trap out in a mature pecan tree last year using his method. The bees were aggressive and the property owner needed them gone -people getting stung while mowing. I put a swarm box on a stand next to the tree, reduced the entrance and used a one inch inside diameter pvc pipe for their new entrance. After a day or two for the bees to adjust to the new entrance, I put the pvc pipe into the end of a swarm box containing one or two frames of drawn comb and rite cell foundation to fill the box.
I left it that way for about two days, then placed a small cone over the pipe end inside the box. This trapped the foragers outside the tree but let them come and go freely to the swarm box. After the second day, the box was full of bees. Over a queen excluder, I added a frame of wet brood and an 8 frame box with mostly foundation in the frames and one or two frames of honey and pollen. In the process, I added queen cells above and below the excluder. (You can see that the swarm box was not a standard size, so an adapter device is shown under the excluder, you can ignore it).
This is how it looked as we left the swarm box and 8 frame super with queen cells. Both queens hatched and began to lay.
We took a colony out of the top box and hived it in an 8 frame setup, and took it home...Also shown below is our reloading the swarm box with drawn comb and more foundation for the next round of harvested bees after taking the 8 frame deep away
full of bees!By this time, the homeowner's patience was spent and we sealed the tree with cement and wire, took our new bees and equipment, and went home. A good time was had by all! At various times, my good friends Chip and Crosby were kind enough to assist in the fun.
P.S. These pictures show the actual screen cone used above (it's really small). The cone slides into a coupling which then slides over the end of the PVC pipe they are already habituated to using as an entrance.