Skip to main content
1-Visitor
May 24, 2016
Solved

Getting complete Feature information

  • May 24, 2016
  • 1 reply
  • 5727 views

Hey guys,

I'm trying to get a complete information about a feature(say extrude).

I've already got section(sketch) information. It wasn't hard at all.

Now I'm about to get properties of Extrude feature itself.

I mean these:

feature.PNG

Is it extrusion from sketch to some distance, or extrusion between planes, or sketch is a center plane for extrusion, and so on and so forth.

I did read user Guide for Object Toolkit and it seems, necessary information is stored in a Future Element Tree(14. Feature Element Tree, 18. Features).

Now I got features elements and their values:

element id: PRO_E_FEATURE_TYPE

element value: 917

element id: PRO_E_EXT_SURF_CUT_SOLID_TYPE

element value: 917

The question is, am I correct? If I do need information about feature, should I use Feature Element Tree for that?

If yes, where can I find description for this element IDs? Cause it's not clear for me what is PRO_E_FEATURE_TYPE and what means 917 for this element. I parsed the User guide, headers and couldn't find any description

Thank you in advance,

Artem


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by FV_01

Hi all,

Artem,

You'll need to get a feature elemtree with ProFeatureElemtreeExtract(...) and then get a reference to sketch(section) plane by accessing PRO_E_STD_SECTION element and then PRO_E_STD_SEC_PLANE element. It will give you ProReference to a parent surface.

You should take a look at TestExtrude.c in pt_examples  it has everything you'll need...

HIH.

Feliks.

1 reply

abursuk1-VisitorAuthor
1-Visitor
June 2, 2016

Hey,

Using empirical method I figured out which elements are crucial to determine general feature parameters.

Only one thing is still not clear to me: How can I determine on whether plane my feature was initiated.

E.g. I have sketch(section) with rectangle there. Using extrude feature I will get a cube.

Nice, Now I want to create a lesser cube on a face of existing one. Done!

How can I get now the information about whether face was used to create sketch(section) for the lesser cube?

I can imagine only one opportunity to get geometrical info: take it from sketch, because all the curves on sketch will be placed in a single plane(sketch plane).

The final goal for me is to get point in sketch, but not the boundary ones(which I can get from the sketch).

Thanks,

Artem

FV_0117-PeridotAnswer
17-Peridot
June 6, 2016

Hi all,

Artem,

You'll need to get a feature elemtree with ProFeatureElemtreeExtract(...) and then get a reference to sketch(section) plane by accessing PRO_E_STD_SECTION element and then PRO_E_STD_SEC_PLANE element. It will give you ProReference to a parent surface.

You should take a look at TestExtrude.c in pt_examples  it has everything you'll need...

HIH.

Feliks.

abursuk1-VisitorAuthor
1-Visitor
June 8, 2016

Hi Feliks,

Thanks for the answer, it seems what I was looking for!

PS:

Maybe you happen to know which elements represent boundary surfaces for extrude? In case I want to perform extrude till surface\face ?

Thanks,

Artem