Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get pattern from feature

Message 1 of 3
213 Views, 2 Replies

Get pattern from feature

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,



Message 2 of 3
in reply to: DWhiteley

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

Message 3 of 3
in reply to: OceanHydroAU

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?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th

Autodesk Design & Make Report