6.1.4 BlocksCAD objects that include imported .stl files

Using BlocksCAD’s “Import STL file into Current Project feature (see Figure 6.12) brings up special issues when transferring objects back and forth (and back and forth...) between BlocksCAD and the Polar Cloud. There is no issue when one-time transfer is all you care about. Section 6.1.2 discusses exporting BlocksCAD objects directly to the Polar Cloud; a resulting Polar Cloud object is complete in the Polar Cloud, regardless of whether it was created in BlocksCAD using any imported .stl files. Section 6.1.3 discusses using BlocksCAD’s “Import STL file into Current Project feature to import an entire Polar Cloud object into BlocksCAD; this imports the Polar Cloud object as a single, manipulable “STL import” block in BlocksCAD.

But be aware that BlocksCAD does not save imported .stl files along with its blocks; note the ! warning icon on any such BlocksCAD “STL import” block, as shown in Figure 6.20. This has implications for use of the BlocksCAD logo link on a Polar Cloud object (generated by direct export from BlocksCAD) to re-instantiate BlocksCAD object blocks.


Figure 6.20: Expanded warning icon on a BlocksCAD STL import block

pict

Now when a BlocksCAD object that made use of one or more STL import local-stl-filename ” blocks is exported directly to the Polar Cloud, the imported local .stl file content is included in the Polar Cloud object: the Polar Cloud object is complete-in-itself. However, clicking on the usual BlocksCAD-logo-link on that Polar Cloud object to return to BlocksCAD and load the original BlocksCAD blocks for the object will load the original BlocksCAD blocks, but it can’t do anything about installing the source files of any originally-imported-in-BlocksCAD .stl files, as BlocksCAD does not save those source files along with its blocks.8 Instead, the BlocksCAD blocks re-instantiated on the BlocksCAD design screen simply include generic “STL import” blocks (each with a comment regarding the name of the file originally imported, but no link to actual file contents). To re-construct the object in BlocksCAD, each such block will need to be individually told what underlying .stl file to import – and of course you’ll need a local copy (on the device from which you’re accessing BlocksCAD) of the .stl file in question. So you won’t be able to re-build the object in BlocksCAD unless you have access to copies of any such original.stl files.

As mentioned above (and discussed in detail in Section 6.1.3), the Polar Cloud version of the object, regardless of whether or not the object was originally created in BlocksCAD, can be downloaded as a complete-in-itself .stl file, and that entire .stl file can be imported into BlocksCAD (or other CAD packages) as a monolithic imported .stl block (or object). This general approach for any Polar Cloud object can also be used on an object originally created in BlocksCAD, but where some original .stl file components of the BlocksCAD object are not available.

But if, as a BlocksCAD object designer, you would like to be sure to retain the option to manipulate the details of the original BlocksCAD design blocks when re-instantiating the BlocksCAD object from the Polar Cloud version of your object, there is another alternative: also upload your original imported .stl files into the Polar Cloud object, to be saved there! This will allow you, or others to whom you share the Polar Cloud object, to download those files, as needed, when desiring to re-instantiate the object in BlocksCAD.

Therefore, when exporting a BlocksCAD object to the Polar Cloud, it is a good idea to also explicitly copy (upload) into your Polar Cloud object any such .stl files that you imported into BlocksCAD when creating the object, especially if you might sometime wish to share your object in the Polar Cloud. Then when re-instantiating the original BlocksCAD blocks, you can also download out of the Polar Cloud the original .stl files that some of those original BlocksCAD STL import blocks want to import.

To demonstrate, here is an example of exporting an object directly from BlocksCAD to the Polar Cloud and uploading into the Polar Cloud an underlying .stl file BlocksCAD used when creating the object.

1.
An example of a BlocksCAD design making use of (two copies of) an imported .stl file is shown in Figure 6.21.
2.
Exporting the BlocksCAD object directly to the Polar Cloud using the “Polar Cloud” button will create a Polar Cloud object, whose manage screen is shown in Figure 6.22. (Note that the object manage screen at this point shows only two files comprising the object, a ChannelCubesOnBase.stl file comprising the entire object, and a ChannelCubesOnBase.xml file describing the BlocksCAD blocks for the object.) Click the “UPLOAD button on the manage screen’s “FILES” pane.
3.
Then at the “UPLOAD FILES” pop-up screen, specify the file(s) originally imported into BlocksCAD, in this example “channelcube.stl”, and click the “UPLOAD button (towards the lower right of the “UPLOAD FILES pop-up screen), as shown in Figure 6.23.
4.
Now the Polar Cloud ChannelCubesOnBase object will have available as a separate, downloadable file, the channelcube.stl file, as shown in Figure 6.24.


Figure 6.21: BlocksCAD ChannelCubesOnBase object using imported channelcube.stl file

pict


Figure 6.22: ChannelCubesOnBase object exported to the Polar Cloud: object manage screen

pict


Figure 6.23: Uploading channelcubes.stl to the Polar Cloud version of ChannelCubesOnBase

pict


Figure 6.24: Polar Cloud ChannelCubesOnBase object detail page, now with channelcube.stl file

pict

Now, whenever you wish to use the Polar Cloud object ChannelCubesOnBase logo link back to BlocksCAD to “rebuild” the object in BlocksCAD, you can also obtain the necessary channelcube.stl file for BlocksCAD by downloading it out of the Polar Cloud:

1.
Click the “DOWNLOAD” button on the object detail screen, as shown in Figure 6.25.
2.
At the “DOWNLOAD FILES” pop-up screen, select the file(s) that BlocksCAD will need to import, channelcube.stl in this example, and click the “DOWNLOAD” button (at the lower right of the “DOWNLOAD FILES” pop-up screen); see Figure 6.26.
3.
Now, when you click the BlocksCAD logo on the Polar Cloud object and go to the BlocksCAD design screen and see a warning that you need to reload .stl files to be imported, see Figure 6.27, you’ll have the file(s) available!
4.
You can check what name of file was originally imported via an “STL import” block by clicking the “?” comment icon on the block. Reload each such file into BlocksCAD, by clicking “Reload” on each “STL import” block, see Figure 6.27, and then selecting the file, see Figure 6.28.
5.
Once you’ve reloaded all such instances of imported .stl files, the blocks will no longer have the red warning outline, and you may click the “Render” button; see Figure 6.29.
6.
After clicking the “Render” button, the object is rendered; see Figure 6.30.


Figure 6.25: Polar Cloud ChannelCubesOnBase object detail screen DOWNLOAD button

pict


Figure 6.26: Polar Cloud ChannelCubesOnBase object DOWNLOAD FILES screen

pict


Figure 6.27: BlocksCAD object re-instantiated from Polar Cloud logo link: must Reload imported .stl files

pict


Figure 6.28: BlocksCAD: selecting an .stl file to reload

pict


Figure 6.29: BlocksCAD: all .stl reloaded

pict


Figure 6.30: BlocksCAD ChannelCubesOnBase object image rendered

pict

8And you wouldn’t necessarily want BlocksCAD to automatically install on your local device files originating from other people’s arbitrary objects!