Use this interface to manage file inside a project. More...
Use this interface to manage file inside a project.
Close the project file.
Get the ID of the book containing this file.
Get the ID of the folder containing this file.
If the file doesn't have parent folder it returns -1.
Get the ID of EwProjectFunctionX associated to the file.
IEwProjectLocationX associated with the file.
Get the ID of EwProjectLocationX associated to the file.
Return the file path.
Get the position of files inside a book/folder.
Return the path to a file not only a reference to a *.lnk.
Return true if the project file is lock by me.
Return true if the project file is lock by another.
Return true if the project file is open.
Lock the file so no one connected to the collaborative server can edit or delete it.
Create a multilingual text associated with this file.
Open the project file.
Set the Book ID of this file.
The parent folder ID is set to -1. If the Book and the Folder are not specified, the default book is used. Can be used only before calling insert.
Set the folder ID as parent for this file.
Book ID of the file will also be updated if the book of the new parent folder is different from the one already define. If the Book and the Folder are not specified, the default book is used. Can be used only before calling insert.
Set the EwProjectFunctionX ID associated to the file.
Set the EwProjectLocationX by ID associated to the file.
Set the file type of the current project file.
If the file is already inserted, only kFileFolio to kFileMixed or kFileLineDiagram to kFileMixed enum are allowed.
Specify the path of the file to add in the project.
Use this method to add an existing file or a shortcut to the project. When calling this method the file type is also updated to kOther or kFileAppendixDxfDwg for dwg and dxf files. It doesn't work on already existing files.
Unlock the file.
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
Thank you for your comments. We will contact you if we have questions regarding your feedback.
Sincerely,The SOLIDWORKS Documentation Team
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.
Web Help Content Version: API Help (English only) 2024 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.