Python reference: ViewParameters

The class ViewParameters represents the C API structure TViewParameters.

Construction

To create an instance of ViewParameters, call the Model property defaultViewParameters and then modify the attributes as required.

params = model.defaultViewParameters

Attributes

The attributes of ViewParameters are the same as in TViewParameters and take the same values. There are additional attributes which provide convenient alternatives to handle attributes:

You can use either the handle attribute or its corresponding class based alternative, both approaches will work. However, it is generally more convenient to use the class based alternatives. For example:

params = model.defaultViewParameters

filter = OrcFxAPI.ViewFilter()

filter.Add(...)

params.Filter = filter

 

# equivalent to the above, but slightly more verbose

params.FilterHandle = filter.handle