Hide Table of Contents
MakeSketchBlockFromFile Method (ISketchManager)

Creates a block definition using the specified file.

.NET Syntax

Visual Basic (Declaration) 
Function MakeSketchBlockFromFile( _
   ByVal InsertionPoint As MathPoint, _
   ByVal FileName As System.String, _
   ByVal LinkedToFile As System.Boolean, _
   ByVal Scale As System.Double, _
   ByVal Angle As System.Double _
) As SketchBlockDefinition
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim InsertionPoint As MathPoint
Dim FileName As System.String
Dim LinkedToFile As System.Boolean
Dim Scale As System.Double
Dim Angle As System.Double
Dim value As SketchBlockDefinition
value = instance.MakeSketchBlockFromFile(InsertionPoint, FileName, LinkedToFile, Scale, Angle)
SketchBlockDefinition MakeSketchBlockFromFile( 
   MathPoint InsertionPoint,
   System.string FileName,
   System.bool LinkedToFile,
   System.double Scale,
   System.double Angle
SketchBlockDefinition^ MakeSketchBlockFromFile( 
&   MathPoint^ InsertionPoint,
&   System.String^ FileName,
&   System.bool LinkedToFile,
&   System.double Scale,
&   System.double Angle


Insertion point, which is a 2D point with z = 0.0, for the block definition
Name of the external file to use to create the block definition
True to link the block definition to the file, false to not
Scale for the block definition
Rotation angle for the block definition

Return Value

Block definition


If the entities of a block are associated with one or more layers and those layers do not already exist in the drawing, then the layers are inserted in the drawing and the associations between the entities of the block and the layers are maintained.


The block instance is inserted on the current drawing layer.


See Block Definitions and Block Instances for details.


See Also


SOLIDWORKS 2007 FCS, Revision Number 15.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

Subject:   Feedback on Help Topics
Page:   MakeSketchBlockFromFile Method (ISketchManager)
*   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:


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

Web Help Content Version: API Help (English only) 2019 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.