Hide Table of Contents
CreateLineStyle Method (IApplication)
Result[out]
True if the simple LineStyle is created, false if not

Creates a simple LineStyle.

.NET Syntax

Visual Basic (Declaration) 
Function CreateLineStyle( _
   const dsString& Name As System.String, _
   const dsString& FileName As System.String, _
   const dsString& Description As System.String, _
   const dsString& Pattern As System.String _
) As System.Boolean
C# 
System.bool CreateLineStyle( 
   System.string Name,
   System.string FileName,
   System.string Description,
   System.string Pattern
)
JavaScript 
CreateLineStyle( 
   Name : String,
   FileName : String,
   Description : String,
   Pattern : String
) : Boolean
COM native C++ 
HRESULT CreateLineStyle( 
   BSTR Name,
   BSTR FileName,
   BSTR Description,
   BSTR Pattern,
   VARIANT_BOOL* Result
) 
C++ 
DSRESULT CreateLineStyle( 
   const dsString& Name,
   const dsString& FileName,
   const dsString& Description,
   const dsString& Pattern,
   bool* Result
) 

Parameters

Name
Name for the simple LineStyle to create
FileName
Path and file name to which to add the simple LineStyle (see Remarks)
Description
Simple LineStyle description
Pattern
Pattern that defines the simple LineStyle (see Remarks)
Result[out] or Return Value
True if the simple LineStyle is created, false if not

Remarks

Simple LineStyle definition files are stored in ASCII text files with .lin filename extensions.

These values... Specify and create these simple LineStyle patterns...
Positive decimals Length of dashes
Negative decimals Length of spaces
0 (zero) Dots

You must call ILineStyleManager::LoadLineStyle to load the simple LineStyle in a document before you can get the simple LineStyle.

 

See Also

Availability

DraftSight V1R4.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   CreateLineStyle Method (IApplication)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2021 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.