This guide explains how to prepare a Shapefile (.SHP) for use as terrain in PVcase Ground Mount (GM). Because you can't do this directly in AutoCAD, you must first process the file in Civil 3D.
2D contours are polylines with 0 elevation, and 3D contours are polylines with non-zero elevation. AutoCAD 3D polylines are not a valid terrain option in PVcase GM.
Import the SHP file into Civil 3D
Open Civil 3D and run the MapImport command.
Select your .SHP file and click OK.
In the import window, click the Data column icon. In the new window that opens, select Create object data.
Click Select Fields, then in the new window select the elevation attribute (e.g., Contour).
Click OK in all three windows to import the contours (use Zoom Extents if needed).
The contours import at 0 elevation (2D), with the elevation attribute visible in the Properties tab.
Save the file as a 2D contour layout.
Create 3D contours in Civil 3D
Close the 2D contour file and open a new file.
Run MapWSpace command to turn on Map Explorer in the Task Pane.
Drag your saved 2D contour file from Windows File Explorer into the Drawings section of Map Explorer.
Under Query Library, right-click Current Query and select Define.
Under Query Type, click Location, confirm All is selected, and click OK.
Under Query Mode, select Draw.
Under Options, check the box and click Alter Properties.
In the Set Property Alterations window, select Elevation, click Expression, choose your elevation attribute under Object Data (e.g., Contour), and click OK.
Click Add to move it to Current Property Alterations, then click OK.
In the Define Query of Attached Drawing(s) window, click Execute Query to display the contours with their assigned elevations (use Zoom Extents if needed).
Save the file in .DWG format as your 3D contours.
Use the 3D contours as terrain in AutoCAD
Open the 3D contours .DWG in AutoCAD with PVcase GM and confirm the contours appear as polylines with elevations.
Open Layout Generation Settings, check the box in the Topographic Layout section, click Select terrain, and select the contour layer to load it for frame placement.
Export SHP
This section explains how to export a .DWG file (or specific objects within it) as a Shapefile (.SHP) for use in external software such as ArcGIS. This process requires Civil 3D.
Generate the line objects to export
If the objects that need to be exported are the frames, the PVcase Frames would need to be converted from block objects to polylines. Another option is to use the command "PVcaseDrawFrameModules" to generate a 3D polyline for each module separately, as is shown here:
Generate the SHP file in Civil 3D
To export the line objects (in this case 3D polylines):
Run the MapExport command.
In the pop-up window, name your file and choose a destination folder for the SHP package.
Select the object type (e.g., Line).
Choose Select Manually, click the selection icon next to it, and select all line objects to export (e.g., the individual PV modules).
Click OK to generate the SHP files, then check your destination folder to confirm the package was created.