CustomGraphics depthPriority versus built-in selection graphics

CustomGraphics depthPriority versus built-in selection graphics

mcd8604
Enthusiast Enthusiast
704 Views
4 Replies
Message 1 of 5

CustomGraphics depthPriority versus built-in selection graphics

mcd8604
Enthusiast
Enthusiast

I have an addon which highlights a specific selected entity among several selected entities by creating a custom graphic. This is happening from a palette, not a command. The trouble I'm running into is that the built-in selection (blue) graphics are always prioritized to be on top. Is there any way around this?

 

Example: A CustomGraphicsPointSet (lower left) defined by UserDefinedCustomGraphicsPointType and a png is partially occluded. Often times, these graphics are fully occluded and I'm trying to figure out a way around this. 

mcd8604_0-1637770777471.png

 

0 Likes
705 Views
4 Replies
Replies (4)
Message 2 of 5

BrianEkins
Mentor
Mentor

Depth priority is not the solution for this case.  Depth priority is meant to be used when you have things that lie on the same plane and you want one to display on top of the other.

 

Have you looked into the Show Through color effect?  It's intended to be used for what you're doing, although I don't know if it works with points or not. Hopefully it does.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 3 of 5

mcd8604
Enthusiast
Enthusiast

Hi Brian,

 

I am currently using CustomGraphicsShowThroughColorEffect for all of my custom graphics entities. It does work very nicely except for the blue selection graphics which occlude even BRepBodies and Lines. As for the points, the billboarding/sprite images are also occluded and don't appear to be affected by any of the various color object types.

0 Likes
Message 4 of 5

mcd8604
Enthusiast
Enthusiast

To better illustrate, below is the same line graphic drawn with and without selections. I assume there is no way around this in the API without deselecting?

mcd8604_0-1638338120936.png

mcd8604_1-1638338127400.png

 

 

0 Likes
Message 5 of 5

BrianEkins
Mentor
Mentor

The API is exposing a subset of the internal graphics that Fusion is using.  There may be some additional settings internally that we missed in the API. The thing to look at is if you see the behavior you're looking for in any of the Fusion commands. If you do see it, then that means it is supported internally and the API needs to be enhanced to expose that additional functionality. 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes