SectionStyleReadFromFile Method |
Reads linetypes from a Rhino .3dm file.
Namespace:
Rhino.DocObjects
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic static bool ReadFromFile(
string filename,
out SectionStyle[] sectionStyles,
out HatchPattern[] hatchPatterns
)
Public Shared Function ReadFromFile (
filename As String,
<OutAttribute> ByRef sectionStyles As SectionStyle(),
<OutAttribute> ByRef hatchPatterns As HatchPattern()
) As Boolean
Parameters
- filename
- Type: SystemString
The path to the file to read. - sectionStyles
- Type: Rhino.DocObjectsSectionStyle
An array of section styles, or an empty array if the file had no section styles.
- hatchPatterns
- Type: Rhino.DocObjectsHatchPattern
An array of hatch patterns reference by the section styles, or an empty array
if the file has no section styles or if none of the sections styles uses a hatch pattern.
The section style's property references hatch patterns in this array.
Return Value
Type:
BooleanTrue if the file was read successfully, false otherwise.
See Also