AnalysisDisplayStyle.CreateAnalysisDisplayStyle(Document, String, AnalysisDisplayDeformedShapeSettings, AnalysisDisplayColorSettings, AnalysisDisplayLegendSettings) Method

AnalysisDisplayStyleCreateAnalysisDisplayStyle(Document, String, AnalysisDisplayDeformedShapeSettings, AnalysisDisplayColorSettings, AnalysisDisplayLegendSettings) Method

Factory method - creates analysis display style object of type Deformed Shape for the given document.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static AnalysisDisplayStyle CreateAnalysisDisplayStyle(
	Document document,
	string name,
	AnalysisDisplayDeformedShapeSettings deformedShapeSettings,
	AnalysisDisplayColorSettings colorSettings,
	AnalysisDisplayLegendSettings legendSettings
)
Public Shared Function CreateAnalysisDisplayStyle ( 
	document As Document,
	name As String,
	deformedShapeSettings As AnalysisDisplayDeformedShapeSettings,
	colorSettings As AnalysisDisplayColorSettings,
	legendSettings As AnalysisDisplayLegendSettings
) As AnalysisDisplayStyle
public:
static AnalysisDisplayStyle^ CreateAnalysisDisplayStyle(
	Document^ document, 
	String^ name, 
	AnalysisDisplayDeformedShapeSettings^ deformedShapeSettings, 
	AnalysisDisplayColorSettings^ colorSettings, 
	AnalysisDisplayLegendSettings^ legendSettings
)
static member CreateAnalysisDisplayStyle : 
        document : Document * 
        name : string * 
        deformedShapeSettings : AnalysisDisplayDeformedShapeSettings * 
        colorSettings : AnalysisDisplayColorSettings * 
        legendSettings : AnalysisDisplayLegendSettings -> AnalysisDisplayStyle 

Parameters

document  Document
Document for which analysis display style object is created.
name  String
Name of the analysis display style within the %document%.
deformedShapeSettings  AnalysisDisplayDeformedShapeSettings
Deformed Shape settings for the style.
colorSettings  AnalysisDisplayColorSettings
Color settings for the style.
legendSettings  AnalysisDisplayLegendSettings
Legend settings for the style.

Return Value

AnalysisDisplayStyle
New analysis display style object.
Exceptions
ExceptionCondition
ArgumentNullException A non-optional argument was null
ArgumentsInconsistentException document is a family. -or- name is not unique in document.
See Also