Override surface pattern visibility of Category in View

m.de.vriesTH5VM
Enthusiast
Enthusiast

Override surface pattern visibility of Category in View

m.de.vriesTH5VM
Enthusiast
Enthusiast

in a View you can type 'vv' and get to the visibility override dialog.

Go to the category Walls and select the cell for Projection/Surface : Patterns

Select the override button to start the Fill Pattern Graphics dialog.

You can now set the visibility of foreground and background patterns to 'not visible' by unchecking the relevant check boxes.

mdevriesTH5VM_0-1636463776790.png

 

is there a way to do this through the API?

 

The class OverrideGraphicsSettings allows to change the pattern and color, but does not appear to have a method for overriding the visibility directly.

It is of course possible there is another class that allows this, but I could not find such a class or a method for such an override when I checked through the API.

 

If this can be done through an override that would be easier on the code. Otherwise I can try to create a filter that does this, but doing that dynamically would be more work compared to setting a simple visibility override.

 

Thanks in advance for any answer.

 

 

 

0 Likes
Reply
Accepted solutions (1)
734 Views
2 Replies
Replies (2)

jeremy_tammik
Autodesk
Autodesk

I asked the development team for you.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes

RPTHOMAS108
Mentor
Mentor
Accepted solution

OverrideGraphicSettings.SetCutForegroundPatternVisible

OverrideGraphicSettings.SetSurfaceBackgroundPatternVisible
OverrideGraphicSettings.SetSurfaceForegroundPatternVisible

 

Used in View.SetCategoryOverrides

0 Likes