Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello everyone!
I created a pattern using OTK Java and FET. Now I need to exclude some of the elements of the pattern (just as is done with Creo).
Please tell me how to do this.
Thanks in advance.
Respectfully!
Solved! Go to Solution.
Thank you for performing the tests.
This is exactly what i would have done.
This test shows that JOTK and broadling speaking FET do not handle membership in feature pattern.
You may file an enhancement request on the Technical Support page.
not exactly sure i understand your requirement but here is a comprehensive article about how to use Element Tree:
https://www.ptc.com/en/support/article?n=CS313525
This was written with Creo Toolkit (C) in mind but you can still extrapolate.
Thanks for the answer!
I apologize for the incomprehensible wording.
I will try to explain what I need more clearly.
For example, I have the pattern created using Java OTK and FET:
Since I created this element using FET, I know that it has a certain structure, the elements of which perform certain functions.
But I could not find the element that is responsible for the functionality I need.
This is what I need:
1) disabling pattern elements.
2) the result that I need:
That is, I need to programmatically disable some of the pattern elements.
Thanks in advance!
Regards!
thank you for clarifying.
You may try and extract the tree information and compare the pattern with versus without the excluded member.
Thanks for the advice!
I extracted the template tree in the XML-file with excluded members and without excluded.
And compared these two files.
It turned out that they are the same.
So FET cannot handle member exclusion, which means OTK Java too?
Thank you for performing the tests.
This is exactly what i would have done.
This test shows that JOTK and broadling speaking FET do not handle membership in feature pattern.
You may file an enhancement request on the Technical Support page.
And thank you very much!
Tell me, please, how can I submit a request?
This is the page: https://community.ptc.com/t5/Creo-Parametric-Ideas/idb-p/creoparametric
enjoy your day
Thank you very much!
And have a nice day 🙂
I have an off-topic question.
Many say that the C++ Toolkit is a more advanced tool than Java OTK.
I wanted to know if this is true?
And if so, how far is the JOTK behind the C++ Toolkit?
And is there a future for JOTK, that is, can it become as powerful a tool as the C++ Toolkit or even more powerful?
Respectfully!
Hi
Your question is legitimate.
You may create a new topic about this.