Skip to main content
17-Peridot
January 10, 2020
Solved

Exclude instances of pattern using OTK Java + Feature Element Tree

  • January 10, 2020
  • 1 reply
  • 3613 views

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!

Best answer by remy

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. 

1 reply

21-Topaz I
January 13, 2020

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.

VladiSlav17-PeridotAuthor
17-Peridot
January 13, 2020

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!

21-Topaz I
January 13, 2020

thank you for clarifying.

 

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