How to get all entitys of the selected scene?

how to get all entitys of the selected scene by c API? such as edges

Did you look at the examples in the “samples” folder of the SDK package ?

get it ,get layers from scene, and filter entity by layer