Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66664

Visibility Graphics Settings Dynamo

$
0
0

Hello all,

 

I am trying to retrieve category settings from the visibility graphics menu for dynamo. (Line weight, pattern, Fill pattern, ex...) I have managed to get all the settings using the code below. This however give a value of "-1" for default values. How would I go about getting what the default value is set to? 

 

I am very new to the API and coding. 

  

 

import clr

#View to get VG Settings for
view1 = UnwrapElement(IN[0])

#Category to get VG settings from
cat1 = UnwrapElement(IN[1])
VGo = view1.GetCategoryOverrides(cat1.Id)


#VG Settings to output

OUT = VGo.CutFillColor, VGo.CutFillPatternId, VGo.CutLineColor, VGo.CutLineWeight, VGo.CutLinePatternId, VGo.DetailLevel, VGo.Halftone, VGo.IsCutFillPatternVisible, VGo.IsProjectionFillPatternVisible, VGo.IsValidObject, VGo.ProjectionFillColor, VGo.ProjectionFillPatternId, VGo.ProjectionLineColor, VGo.ProjectionLinePatternId, VGo.ProjectionLineWeight, VGo.Transparency

Thank you for any and all help,


Viewing all articles
Browse latest Browse all 66664

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>