Get pattern from feature

Get pattern from feature

DWhiteley
Advisor Advisor
542 Views
2 Replies
Message 1 of 3

Get pattern from feature

DWhiteley
Advisor
Advisor

In the API, I have selected a feature. How do I find if it is in a pattern and get access to that pattern in order to access the other entities in that pattern?

 

Thanks in advance,

 

Dave

0 Likes
543 Views
2 Replies
Replies (2)
Message 2 of 3

OceanHydroAU
Collaborator
Collaborator

The way I typically answer tricky questions like this myself is as follows:

 

1. Write code to that lets you select something

2. Put a break-point in after the selection

3. Inside the debug environment, you can then inspect everything about the object you have selected using their excellent IDE.

 

In your case, I'd select 2 things - one from a pattern, one not - then compare them looking for the difference.

 

Here's an example 'patyes' is a point from a pattern, 'patno' is not.

 

Screen Shot 2020-06-08 at 10.51.29 pm.png

 

You'd have to expand all the tabs to find where they differ, and possibly call methods etc to walk the tree..

0 Likes
Message 3 of 3

DWhiteley
Advisor
Advisor
Many thanks for your assistance. I’m programming in C++ and debug doesn’t seem to give me the info I need. I assume I need to go over to Python to get better feedback?
0 Likes