cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

projected entities in sketch for extrude cut using API ProSectionEntityFromProjection()

SOLVED
Highlighted
Tanzanite

projected entities in sketch for extrude cut using API ProSectionEntityFromProjection()

Hi

 

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?

 

Feel free to ask for any clarification.

 

Any thought or hint would be of great help.

 

Thanks a lot in advance..!

 

Regards
Ketan

1 ACCEPTED SOLUTION

Accepted Solutions

Re: projected entities in sketch for extrude cut using API ProSectionEntityFromProjection()

Done. I had to add entities again to section using

ProSectionEntityGet() and ProSectionEntityAdd(). I thought alone ProSectionEntityFromProjection() would be able to solve the purpose.

View solution in original post

1 REPLY 1

Re: projected entities in sketch for extrude cut using API ProSectionEntityFromProjection()

Done. I had to add entities again to section using

ProSectionEntityGet() and ProSectionEntityAdd(). I thought alone ProSectionEntityFromProjection() would be able to solve the purpose.

View solution in original post