Skip to main content
1-Visitor
May 12, 2015
Question

Extrude feature creation

  • May 12, 2015
  • 1 reply
  • 3070 views

Hello All,

Am having trouble creating rectangular section using PRO_E_SKETCHER. If i create 4 individual lines and add it using SectionEntityAdd then the feature will not get properly created. Its not being treated as rectangular entity but as 4 individual lines.

It will be really great if someone helps! Thanks in advance.!

Regards,

Pradhyumna


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.

1 reply

14-Alexandrite
May 13, 2015

In an interactive session if you sketch a rectangle you end up with 4 individual lines. The Pro2dEntdef enumeration doesn't contain anything to resemble with a rectangle, therefor getting 4 individual lines is the expected result.

To be able to proceed with the feature creation check the output of the ProSectionSolve function. If is anything else than PRO_TK_NO_ERROR you can get details about what's wrong by verifying the ProWSecerror array(second argument of ProSectionSolve) Use ProSecerrorItemGet and ProSecerrorMsgGet functions to get informations about each of the errors.

Also, in ProFeatureCreate, you can set the ProFeatureCreateOptions argument to PRO_FEAT_CR_FIX_MODEL_ON_FAIL. This will put you in resolve mode and may give you indications about what is wrong.

1-Visitor
May 14, 2015

Gabriel,

Thanks a lot for your suggestion. Will try it out.

I think i found a workaround. I constrained the end points of those 4 individual lines to "same point" and it worked fine.

Regards,

Pradhyumna

2-Explorer
June 3, 2015

Hello Pradhyumna,

if you have been able to solve your issue with the answer from Gabriel, please mark his post as Correct Answer.

If your workaround is different, maybe you want to share the information about what else needs to be considered for the solution.

Thanks,

Gunter