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

Exclude instances of pattern using OTK Java + Feature Element Tree

SOLVED
Highlighted
Pearl

Exclude instances of pattern using OTK Java + Feature Element Tree

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

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. 

View solution in original post

10 REPLIES 10
Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

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.

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

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:

1.PNG

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.PNG

2) the result that I need:

3.PNG

That is, I need to programmatically disable some of the pattern elements.

Thanks in advance!
Regards!

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

thank you for clarifying.

 

You may  try and extract the tree information and compare the pattern with versus without the excluded member.

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

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?

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

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. 

View solution in original post

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

And thank you very much!
Tell me, please, how can I submit a request?

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

Thank you very much!
And have a nice day 🙂

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

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!

Highlighted

Re: Exclude instances of pattern using OTK Java + Feature Element Tree

Hi 

Your question is legitimate.

You may create a new topic about this.

Announcements