匯入檔案
You can import (upload) any type of file into Onshape, either into an existing and open document, or as its own document (from the Documents page). For a list of supported files, see Supported File Formats. You can import files from your desktop and also from integrated Dropbox, Google Drive, or Microsoft OneDrive accounts. See Integrations for more information on integrating cloud apps with your Onshape account.
Once your file is imported, see Working with imported CAD for further information.
Onshape 上傳大小的限制是每個檔案 4GB。
CAD files imported into Onshape from another system do not have a feature tree in Onshape; Onshape provides tools for performing parametric features on simple solids instead. For more information, see Working with Imported CAD and the blog post Making Supplier Models Work for You.
將資料匯入至 Onshape 中時,有兩件需要考慮的事項:
- 資料的來源
- 要將資料放置在 Onshape 中的何處
Onshape 匯入您資料的地方取決於您從何處開始匯入的過程:
- To import data into a new document, import from the Documents page - Click Create and then select Import to create one or many new Onshape documents with appropriate tabs from the imported file. The document is given the same name as the file you are importing. The document is listed on the Documents page and a version is automatically created. For more specific instructions and information, see Importing from the Documents page.
- To import data into an existing document, import from within an open document - Open a document, click the plus sign at the bottom left, then Import. This creates new Onshape tabs in the active document; the tab names reflect the file name, and the file name is reflected by the icon. For more specific instructions, see Importing from within a document.
資料的來源與格式會影響 Onshape 轉譯資料的方式:
- 來自大多數系統的資料會以像是 ACIS、JT、STEP、IGES、Parasolid、OBJ 或 STL 的通用格式匯入。對於 AutoCAD 實體,最佳的匯入格式是 ACIS,所有的 2D 資料會匯入為 DWG 或 DXF。
在 SOLIDWORKS 中:
-
選擇「展開至單一資料夾」。壓縮檔案並給定與最上層組合件完全相同的名稱。檔案名稱與最上層組合件不可以包含任何特殊的字元。
-
If your assembly uses configurations or lightweight components, use this procedure before importing:
- 按一下組合件分頁。
- 在組合件樹狀結構中的根檔案上按右鍵,然後選擇 [設定輕量抑制為解出]。
- 在組合件樹狀結構中的根檔案上按右鍵,然後選擇 [儲存時重新計算的標記] > [爲所有模型組態加入標記]。
- 儲存根檔案。
當 Onshape 將匯入的檔案辨識為 CAD 檔案 (根據檔案副檔名) 時,Onshape 會自動提供處理的選項。Onshape 會為支援的組合件檔案檢查組合件檔案名稱是否與 zip 檔案名稱相同。當壓縮組合件檔案來匯入至 Onshape 時,您可以選擇個別壓縮檔案或壓縮整個目錄。
Place all parts and the assembly in a zip file and import that into Onshape, making sure that the file name contains no special characters.
When zipping an entire directory, the zip file must have the same name as the top-level assembly (minus the extension) and you must not rename the zip file. You must ensure that the file extension is only .zip and does not include the old extension (such as .sldasm.zip or .asm.zip).
當匯入 CAD 檔案至 Onshape 中時 (任何隨身攜帶 .zip 檔案),您有下列的處理選項:
- Import to a single document - Part Studio and Assemblies are created as needed, depending on the contents of the imported file and named according to the names in the imported file.
- Split into multiple documents - This option creates a document and subdocuments that contain related parts, assemblies, and subassemblies. If an Assembly contains more than 100 unique parts (at its level), additional documents are created with the Part Studios for those parts.
There is a checkbox option to import the file into one document per part or Assembly. Those separate documents are placed in a folder with the name of the export file. The data structure and its links are preserved. This option is not recommended when working with large assemblies since the import can create a large number of documents that can be difficult to manage.
在下方的所有案例中,最上層的組合件僅有下載的選項。其他連結的零件文件同時有更新與下載的選項。
如果檔案僅包含多個零件 (沒有組合件),系統會將各個零件放在自己的文件中,並會建立一個連結這些零件的最上層組合件。
如果組合件沒有任何次組合件,系統會將組合件匯入至單一的文件中。
如果組合件有次組合件,則最上層的組合件與每個次組合件都會有自己獨立的文件。
- Combine to a single Part Studio - If the file is an assembly, or contains an assembly, you have the option to import it as only a Part Studio. In this case, the assembly is stored as a set of parts in a single Part Studio. There will be duplicate parts created whenever a part is instanced more than once. Be aware that this choice should only be made if the assembly is small, otherwise, performance will be affected.
無論您在上方所做的選擇為何,Onshape 允許匯入有問題的零件。如果零件並未通過 Onshape 的有效驗證,仍可以與問題一起匯入。有問題的項目在特徵清單與零件清單上會以紅色名稱標示,同時會出現在通知訊息中。 請注意,如果所匯入零件的幾何有問題,則接下來的操作可能會失敗。
如果 Onshape 偵測到零件在匯入時可能被折斷,則在匯入的過程中,屬於相同 (折碎) 本體的曲面與曲線會被自動轉變為單一的封閉複合零件。
其他選項:
-
匯入外觀 - 根據預設,系統會匯入在模型定義上的面外觀。取消核取來在匯入時移除面外觀。
在匯入時,無論「匯入外觀」選項是啟用或停用的,您可以在匯入之後選擇啟用或停用面外觀。從文件的 Part Studio 分頁中開啟「匯入」特徵,然後核取或取消核取「匯入外觀」:
- Import material density - Check this option to import any defined material density from some CAD systems into Onshape. In the document, the material density appears as a custom material, enabling certain properties (e.g., Mass) to be computed from imported parts. Material densities can be imported from the following file types:
SolidWorks
Solid Edge
CatiaV5
- Orient imported models with Y Axis Up - Onshape's up axis is the Z axis. When unchecked, the models are imported with the Z axis up. For CAD files from systems where the up axis is the Y axis, check this box to import the models with the Y axis up. Onshape supports the Y Axis Up option for all systems/files except Autodesk (.ipt) and CATIA (.catpart).
The up axis can also be changed post import. Open the Import feature from the document's Part Studio and check Source is 'Y Axis Up'.
- Create a composite part when importing multiple or non-solid bodies - If checked, a composite part is manually created when importing neutral CAD file (.step or .x_t, for example) consisting of multiple non-solid bodies. All parts in the imported Part Studio become a single closed composite part, regardless of whether or not the parts belong to the same body. Not available when Combine to a single Part Studio is selected.
The composite part can also be created post-import. Open the Import feature from the Part Studio and check Create composite.
- Join adjacent surfaces - When this option is selected, Onshape will attempt to join adjacent surfaces into Part(s).
- IGES postprocessing - (IGES imports only) When checked, this option repairs issues with linear edge translation. Note that checking this option can increase processing time by 50%.
自動處理僅針對 Onshape 可以轉譯的檔案提供,所有其他的檔案則會匯入至分頁中。
- 按一下 建立。
- To import from your hard drive, click Import files .
The file explorer opens on your local machine.
To input from your Google Drive () or Dropbox (), click Import from.
- Select a file (or files) to import.
If you belong to a company plan, Onshape prompts for the desired owner of the document: select yourself or the company.
- 選擇您想要的處理選項。關於每個選項的資訊,請參考處理 CAD 檔案的部分。
- Click the Import button to initiate the import.
The automatic processing happens only for files that Onshape has the ability to translate. All other files are simply imported into a tab.
Onshape 會顯示最近匯入檔案的清單:
- Now you have the ability to:
- 在匯入清單中按一下檔案名稱來馬上在 Onshape 中檢視檔案,會自動為檔案建立文件。
- 在移動游標暫留時,按一下「匯入」清單右側的 X 來關閉清單並回到文件的頁面中。剛建立的文件會列在文件頁面中。
If you have already integrated your applications, click on your cloud-source. If you have not yet integrated a cloud-source, click Connect service...; a wizard will lead you through the integration process. See Integrations for more information.
- In an open document, at the bottom of the page, click the Insert new tab icon () and select Import.
- 在您本機電腦上的檔案總管開啟;可讓您選擇要匯入的檔案。
-
在匯入對話方塊中對匯入類型做出選擇。關於每個選項的資訊,請參考處理 CAD 檔案。
- Click the Import button to initiate the import.
The automatic processing happens only for files that Onshape has the ability to translate. All other files are simply imported into a tab.
Onshape 會顯示最近匯入檔案的清單:
匯入的檔案現在是在開啟的 Onshape 文件中,擁有自己的分頁 (橫列在文件頁面的底部)。
In addition to being able to write directly to and from the Onshape format, you also have the ability to write to and from any of the Onshape supported formats. For supported formats, see Supported File Formats.
此處的說明解釋匯入 SOLIDWORKS、Inventor、Pro/Engineer 與 Creo、NX 以及 Solid Edge 零件與組合件檔案的細微差異。
組合件檔案
- Create a .zip file of your top-level assembly.
- 包括所有零件與次組合件。
- 展平檔案結構來使得 .zip 檔案中沒有資料夾。
- 請確定最上層組合件與 .zip 檔案有相同的名稱。
- 匯入整個 .zip 檔案到 Onshape 中。
For SOLIDWORKS assembly files, Onshape needs all of the parts and subassembly files alongside the top level .sldasm file. You can use the Pack and Go tool to create a .zip file of your top-level assembly, or follow the steps above.
Additionally, Onshape and SOLIDWORKS both run on the Parasolid modeling kernel and saving a SOLIDWORKS assembly as a Parasolid (.x_t) file is another way to import into Onshape.
零件檔案
匯入 Pro/Engineer、Creo、Inventor、SOLIDWORKS、NX 或 Solid Edge 零件檔案到 Onshape 中並不需要特殊的工作流程,只需要在 Onshape 匯入對話方塊提示時選擇零件檔案即可。
將 SOLIDWORKS 零件另存為 Parasolid (.x_t) 檔案是另一種匯入至 Onshape 的方式。
同時可以將未包含任何 CAD 資料的檔案匯入至 Onshape 中:PDF、圖片檔案等幾乎各種檔案。Onshape 會以處理 CAD 檔案同樣的方式來處理這些檔案:當您從文件頁面中匯入時,會將匯入的檔案放置在新文件中;當您在文件內匯入時,會將匯入的檔案放置在文件內的一個分頁上。在沒有資料可顯示的情況下,Onshape 會顯示關於檔案的此類資訊,像是:
You have the ability to import (upload) any type of file into Onshape, either into an existing and open document, or as its own document (from the Documents page). For a list of supported files, see Supported File Formats.
Onshape 行動裝置版本目前僅支援從雲端來源匯入檔案。在您的行動裝置上必須安裝有要使用的雲端儲存服務應用程式,且您必須要登入才能與 Onshape 整合使用。
Onshape 處理您匯入檔案的方式取決於您從何處開始匯入的過程:看是從「文件」頁面或是在文件之中
建立一個新的 Onshape 文件與適當的分頁;會將文件與分頁取名為與您匯入檔案相同的名稱。
步驟:
- 輕觸文件頁面右下角的匯入按鈕。
- Select where you want to import the file from.
Onshape supports importing files from cloud-based sources such as iCloud and Dropbox, as well as your device camera and photo library.
- The imported file will appear as a document in the Documents page. Specify the privacy of the document and, if you are importing a CAD file, specify import settings. For more info see Import settings below.
- 匯入的檔案在您的文件清單中以新文件的形式出現。新文件的名稱與您匯入檔案的名稱相符。
If you do not see your preferred cloud-based source, tap More and check the settings that follow.
取決您要從何處匯入檔案,可能需要在您裝置的設定中手動啟用從裝置的儲存處匯入的功能。
匯入對話方塊不會重新整理檔案。您必須到雲端儲存服務的應用程式中來查看更新的檔案清單。
在啟用的文件中建立新的 Onshape 分頁;分頁的名稱會反映檔案的名稱。
步驟:
- 在文件中開啟建立分頁功能表,然後選擇「匯入...」。
- Select where you want to import the file from: Import Files, Import from Camera, Import from Photo Library.
「匯入檔案」可讓您從裝置與像是 iCloud 與 Dropbox 的雲端式來源匯入。
If you do not see your preferred cloud-based source, tap More and check the settings that follow.
- The imported file will appear as a tab within your document. Specify the privacy of the document and, if you are importing a CAD file, specify import settings. For more info see Import settings below.
- The imported file appears as the appropriate tab(s) in your document. The name of the new tab (or tabs) matches that of the file you imported.
如果匯入的是 CAD 檔案且其成功地轉譯為 Onshape 格式,則會爲其建立第二個分頁。
每個匯入至 Onshape 的檔案會有自己的分頁,使用原始的檔案名稱來命名。如果檔案是 CAD 檔案,同時會建立適當的 Part Studio 和/或組合件分頁。
匯入 SOLIDWORKS 隨身攜帶檔案的提示
在 SOLIDWORKS 中:
-
選擇「展開至單一資料夾」。壓縮檔案並給定與最上層組合件完全相同的名稱。檔案名稱與最上層組合件不可以包含任何特殊的字元。
- If your assembly uses configurations or lightweight components, use this procedure before importing:
- 按一下組合件分頁。
- 在組合件樹狀結構中的根檔案上按右鍵,然後選擇 [設定輕量抑制為解出]。
- 在組合件樹狀結構中的根檔案上按右鍵,然後選擇 [儲存時重新計算的標記] > [爲所有模型組態加入標記]。
- 儲存根檔案。
匯入 CAD 檔案
當匯入 CAD 檔案時,您有下列的處理選項:
- Imported models are in 'Y Axis Up' coordinates - If the file was created in a system that orients with Y Axis Up, the models would by default be brought into Onshape (a Z Axis Up system) with a flipped coordinate system. Toggle this switch to reorient the axis system to match Onshape and display the model with the coordinates you expect.
- Import file to Part Studios only (flatten) - If the file is an assembly, or contains an assembly, you have the option to import it as only a Part Studio, by toggling on the flatten option. In this case, the assembly is flattened to a set of parts in a Part Studio. There will be duplicate parts created whenever a part is instanced more than once.
- Allow import of parts with faults - If a part doesn't pass Onshape validation, it can still be imported with faults. The fault is indicated in the Feature list and the Parts list by a red name, and also in the Notifications messages. The presence of this option does not indicate that a fault has been detected.
- Create a composite part when importing multiple or non-solid bodies - When this option is checked, all parts in the imported Part Studio become a single closed composite part, regardless of whether or not the parts belong to the same body. The bodies are combined to form the composite (one single part).
If you miss this option during the import process, after import you can double-click the Import feature in the Part Studio and select Create composite to create the composite part at that time.
-
Units - When importing .stl and .obj files, you can select the units you wish use upon import: centimeter, foot, inch, meter, millimeter, or yard.
如果切換開啟「允許匯入有問題的零件」,匯入的特徵在特徵清單中會顯示有錯誤存在,但仍允許您匯入並參考錯誤的幾何。但是因為幾何有錯誤,所以後續的操作有可能會失敗。
自動處理僅針對 Onshape 可以轉譯的檔案提供,所有其他的檔案則會匯入至分頁中。
當 Onshape 將匯入的檔案辨識為 CAD 檔案 (根據檔案副檔名) 時,Onshape 會自動提供處理的選項。您也可以為整個 Part Studio (包括隱藏的零件) 或為從零件清單中選擇的某一零件從環境選單中選擇匯出為另一個格式。Onshape 會為支援的組合件檔案檢查組合件檔案名稱是否與 zip 檔案名稱相同。當壓縮組合件檔案來匯入至 Onshape 時,您可以選擇個別壓縮檔案或壓縮整個目錄。請注意,當壓縮整個目錄時,zip 檔案必須有與組合件同樣的名稱 (不包括副檔名),且您不能重新命名 zip 檔案。
詳細資訊請參考「匯出檔案」。
You have the ability to import (upload) any type of file into Onshape, either into an existing and open document, or as its own document (from the Documents page). For a list of supported files, see Supported File Formats.
Onshape 行動裝置版本目前僅支援從雲端來源匯入檔案。在您的行動裝置上必須安裝有要使用的雲端儲存服務應用程式,且您必須要登入才能與 Onshape 整合使用。
Onshape 處理您匯入檔案的方式取決於您從何處開始匯入的過程:看是從「文件」頁面或是在文件之中
建立一個新的 Onshape 文件與適當的分頁;會將文件與分頁取名為與您匯入檔案相同的名稱。
步驟:
- 輕觸文件頁面右下角的加號按鈕,然後輕觸「匯入」按鈕:
- Select where you want to import the file from.
Onshape supports importing files form cloud-based sources such as DropBox, Google Drive, and One Note (any provider that implements Storage Access Framework is available).
- Select how you wish to import the file, tap the down arrow below the image, to the right of Import to a single document:
Import to a single document - Part Studio and Assemblies are created as needed, depending on the contents of the imported file and named according to the names in the imported file.
Split into multiple documents -If the file is an assembly, this option creates a folder with the file name that contains a set of documents. Each document contains a subassembly as well as the top-level parts belonging to that subassembly. Each part in the document is given its own Part Studio, which allows you to easily edit the parts in the assembly. If an assembly contains more than 100 unique parts (at its level), additional documents will be created with the Part Studios for those parts. Each subassembly is linked to the document containing the top-level assembly. This import method is recommended in order to achieve the best performance when working with large assemblies.
如果檔案僅包含零件 (沒有組合件), 系統會將每個零件放在同一文件的各自 Part Studio 中,並會建立一個最上層的組合件來包含這些零件。
如果您要讓匯入項為每個零件與組合件建立一個文件,系統提供有一個可選用的核取方塊。當操作大型組合件時不建議使用這個選項,因為會建立為數眾多的文件而難以管理。
Combine to a single Part Studio - If the file is an assembly, or contains an assembly, you have the option to import it as only a Part Studio. In this case, the assembly is stored as a set of parts in a single Part Studio. There will be duplicate parts created whenever a part is instanced more than once. Be aware that this choice should be made only if the assembly is small, otherwise, performance will be affected.
- Select whether to Orient imported models with Y Axis Up - If the file was created in a system that orients with Y Axis Up, the models would by default be brought into Onshape (a Z Axis Up system) with a flipped coordinate system. Toggle this switch to reorient the axis system to match Onshape and display the model with the coordinates you expect.
- 匯入的檔案在您的文件清單中以新文件的形式出現。新文件的名稱與您匯入檔案的名稱相符。
取決您要從何處匯入檔案,可能需要在您裝置的設定中手動啟用從裝置的儲存處匯入的功能。
匯入對話方塊不會重新整理檔案。您必須到雲端儲存服務的應用程式中來查看更新的檔案清單。
在啟用的文件中建立新的 Onshape 分頁;分頁的名稱會反映檔案的名稱。
步驟:
- 在文件中輕觸螢幕底部的圖示。
- 輕觸加號圖示來開啟「建立分頁」功能表,然後選擇「匯入」。
-
選擇要匯入檔案的來源。Onshape 支援從雲端來源匯入檔案,像是 Google Drive,也可匯入下載至您裝置中的檔案。
- 選擇要匯入的檔案。
- A folder is created inside the document, CAD Imports. The imported file has a tab in the folder. The imported data appears as the appropriate tab(s) in your document. The name of the new tab (or tabs) matches that of the file you imported.
如果匯入的是 CAD 檔案且其成功地轉譯為 Onshape 格式,則會爲其建立第二個分頁。
如果您匯入非 CAD 類型的檔案 (像是 PDF、JPEG 或其他種二進位檔內容),在來源檔案改變的情況下,請使用分頁環境選單中的 [更新] 指令來更新文件中的檔案。
每個匯入至 Onshape 的檔案會有自己的分頁,使用原始的檔案名稱來命名。如果檔案是 CAD 檔案,同時會建立適當的 Part Studio 和/或組合件分頁。
匯入 SOLIDWORKS 隨身攜帶檔案的提示
在 SOLIDWORKS 中:
-
選擇「展開至單一資料夾」。壓縮檔案並給定與最上層組合件完全相同的名稱。檔案名稱與最上層組合件不可以包含任何特殊的字元。
- If your assembly uses configurations or lightweight components, use this procedure before importing:
- 按一下組合件分頁。
- 在組合件樹狀結構中的根檔案上按右鍵,然後選擇 [設定輕量抑制為解出]。
- 在組合件樹狀結構中的根檔案上按右鍵,然後選擇 [儲存時重新計算的標記] > [爲所有模型組態加入標記]。
- 儲存根檔案。
匯入 CAD 檔案
當匯入 CAD 檔案時,您有下列的處理選項:
- Imported models are in 'Y Axis Up' coordinates - If the file was created in a system that orients with Y Axis Up, the models would by default be brought into Onshape (a Z Axis Up system) with a flipped coordinate system. Toggle this switch to reorient the axis system to match Onshape and display the model with the coordinates you expect.
- Import file to Part Studios only (flatten) - If the file is an assembly, or contains an assembly, you have the option to import it as only a Part Studio, by toggling on the flatten option. In this case, the assembly is flattened to a set of parts in a Part Studio. There will be duplicate parts created whenever a part is instanced more than once.
- Allow import of parts with faults - If a part doesn't pass Onshape validation, it can still be imported with faults. The fault is indicated in the Feature list and the Parts list by a red name, and also in the Notifications messages. The presence of this option does not indicate that a fault has been detected.
- Create a composite part when importing multiple or non-solid bodies - When this option is checked, all parts in the imported Part Studio become a single closed composite part, regardless of whether or not the parts belong to the same body. The bodies are combined to form the composite (one single part).
If you miss this option during the import process, after import you can double-click the Import feature in the Part Studio and select Create composite to create the composite part at that time.
如果切換開啟「允許匯入有問題的零件」,匯入的特徵在特徵清單中會顯示有錯誤存在,但仍允許您匯入並參考錯誤的幾何。但是因為幾何有錯誤,所以後續的操作有可能會失敗。
自動處理僅針對 Onshape 可以轉譯的檔案提供,所有其他的檔案則會匯入至分頁中。
當 Onshape 將匯入的檔案辨識為 CAD 檔案 (根據檔案副檔名) 時,Onshape 會自動提供處理的選項。您也可以為整個 Part Studio (包括隱藏的零件) 或為從零件清單中選擇的某一零件從環境選單中選擇匯出為另一個格式。Onshape 會為支援的組合件檔案檢查組合件檔案名稱是否與 zip 檔案名稱相同。當壓縮組合件檔案來匯入至 Onshape 時,您可以選擇個別壓縮檔案或壓縮整個目錄。請注意,當壓縮整個目錄時,zip 檔案必須有與組合件同樣的名稱 (不包括副檔名),且您不能重新命名 zip 檔案。
For more information, see Exporting Files.
For additional Learning center resources, follow the technical briefing articles here: Importing Data (Onshape account required) and Bulk Import Process (Onshape account required).