Inserts a file as an Attachment to this document.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function InsertAttachment( _
ByVal FileName As System.String, _
ByVal Linked As System.Boolean _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim FileName As System.String
Dim Linked As System.Boolean
Dim value As System.Boolean
value = instance.InsertAttachment(FileName, Linked) |
C# | |
---|
System.bool InsertAttachment(
System.string FileName,
System.bool Linked
) |
C++/CLI | |
---|
System.bool InsertAttachment(
& System.String^ FileName,
& System.bool Linked
) |
Parameters
- FileName
- Path and filename of file to insert as an Attachment to this document
- Linked
- True to link the document to the file, false to not
Return Value
True if the file is inserted as an Attachment, false if not
See Also
Availability
SOLIDWORKS 2005 FCS, Revision Number 13.0