SetEndOfPartToTopOrBottom(False) does not update the part

SetEndOfPartToTopOrBottom(False) does not update the part

Anonymous
Not applicable
477 Views
2 Replies
Message 1 of 3

SetEndOfPartToTopOrBottom(False) does not update the part

Anonymous
Not applicable

I am iterating features one by one. I need to extract information about unconsumed feature inputs data. Say, for a Flange feature, I need to get data about its consumed edge.

 

So the steps I am following are:

- at a particular feature, I say, oFeature.SetEndOfPart(True)

- extract data from the feature via definition, wherever possible

- then I set m_compDef.SetEndOfPartToTopOrBottom(False) ' to set the EoP marker to end

- Go to next feature.

 

Now, at this stage, even if EoP is moved to the end, all the features still appear disabled. (See picture). Why?

As EoP has moved to end, every one should be alive. Isn't so?

If not, what needs to be done to make all the unsuppressed features alive, so that I can repeat the steps mentioned above, for the next feature.

0 Likes
478 Views
2 Replies
Replies (2)
Message 2 of 3

Balaji_Ram
Alumni
Alumni

Hi Yogesh,

 

Sorry, I could do not reproduce this behavior in Inventor 2016. 

http://autode.sk/1JwBIFo

 

Is it specific to a file, if so can you please share a non-confidential sample ?

 

Also, does it work when using the last feature to set EOP instead of SetEndOfPartToTopOrBottom(False) ?

For example :

oLastFeature.SetEndOfPart(False)

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

Anonymous
Not applicable

It may be specific to way I am using EoP programmatically. Here, I am not just setting EoP at a feature or at end, but creating new features in between. May be that has some effect. Later I will investigate this and come back with findings. BTW, I am using Version 14 APIs.

0 Likes