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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Exclude instances of pattern using OTK Java + Feature Element Tree

VladiSlav
17-Peridot

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
remy
21-Topaz I
(To:VladiSlav)

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
remy
21-Topaz I
(To:VladiSlav)

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.

VladiSlav
17-Peridot
(To:remy)

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!

remy
21-Topaz I
(To:VladiSlav)

thank you for clarifying.

 

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

VladiSlav
17-Peridot
(To:remy)

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?

remy
21-Topaz I
(To:VladiSlav)

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. 

VladiSlav
17-Peridot
(To:remy)

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

remy
21-Topaz I
(To:VladiSlav)

VladiSlav
17-Peridot
(To:remy)

Thank you very much!
And have a nice day 🙂

VladiSlav
17-Peridot
(To:remy)

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!

remy
21-Topaz I
(To:VladiSlav)

Hi 

Your question is legitimate.

You may create a new topic about this.

Top Tags