projected entities in sketch for extrude cut using API ProSectionEntityFromProjection()
We can create extrude cut as incomplete feature first without adding section.
Next step is to get section element from incomplete created feature and add entities to section and then redefine feature.
This flow is working perfectly fine if I add all entities using API ProSectionEntityAdd().
Instead of using API ProSectionEntityAdd() due to effort required to find entity type and it's co-ordinates (requirement for API ProSectionEntityAdd()) , I thought to use projected entities.
I had a feature and from that feature, I collected edges which can be used to project on projection plane i.e. sketch plane of extrude cut.So, ultimately I found out selection object from edges to be projected.
On each selection object of edges, I am doing ProSectionEntityFromProjection() which works without error and I am getting entity ID also.These edges are getting added into sketch references also.
Now, issue is that my redefined feature i.e. extrude cut is failed to regenerate as it has error in section. Error in section suggests that "section must contain geometric entities".
What I am not getting is that does ProSectionEntityFromProjection() API add items to sketch references only?
How to add those into sketch to have complete sketch?