![autocad civil 3d 2013 problem with drawing pipes autocad civil 3d 2013 problem with drawing pipes](https://cdn.lynda.com/course/504064/504064-636143701800277099-16x9.jpg)
- #Autocad civil 3d 2013 problem with drawing pipes manual#
- #Autocad civil 3d 2013 problem with drawing pipes code#
#Autocad civil 3d 2013 problem with drawing pipes code#
'If the user enter a radius value the code transforms the 3D polyline to a pipe-like solid, using 'Draws a 3D polyline in AutoCAD using X, Y, and Z coordinates from the sheet Coordinates.
![autocad civil 3d 2013 problem with drawing pipes autocad civil 3d 2013 problem with drawing pipes](https://aportesingecivil.com/wp-content/uploads/2014/11/Descargar-AutoCAD-Civil-3D.jpg)
![autocad civil 3d 2013 problem with drawing pipes autocad civil 3d 2013 problem with drawing pipes](https://i.ytimg.com/vi/2FrjgzY_VqI/maxresdefault.jpg)
If the user doesn’t enter a radius value (which determines the pipe radius), the code will draw only the 3D polyline. Here is the VBA code for drawing the 3D “solid” polyline. Moreover, we apply the Move method to move the 3D “solid” polyline back to its original position (since the AddExtrudedSolidAlongPath method will start drawing the 3D “solid” polyline at profile’s coordinates – usually at (0,0,0)). We can overcome this limitation with a simple trick: we rotate the Profile object! So, in this particular case, we rotate the circle 45 degrees over the y axis for the circle plane to be different than the 3D polyline plane(s). The path should not lie on the same plane as the profile, nor should it have areas of high curvature.Īlthough the available path objects do not include the 3D polyline, we can use this object, but taking into account that both Profile and Path objects must not lie on the same plane. Remarks: You can extrude only 2D planar regions. Path object: input-only – the Polyline, Circle, Ellipse, Spline, or Arc object only. Profile object: input-only – the Region object only. Object: ModelSpace Collection, PaperSpace Collection, Block – the objects this method applies to. RetVal: 3DSolid object – the extruded 3DSolid object. RetVal = Object.AddExtrudedSolidAlongPath(Profile, Path) From the AutoCAD VBA help, we get its structure: The new solid is extruded from the current location of the region using the translation of the path to the region’s Centroid. This method creates an extruded solid given the profile and an extrusion path. However, it has a similar method called AddExtrudedSolidAlongPath. Unfortunately, VBA doesn’t have a SWEEP command/method, making the procedure a little bit difficult.
#Autocad civil 3d 2013 problem with drawing pipes manual#
The manual way for drawing a 3D “solid” polyline, which looks like a circular pipeline in AutoCAD, involves the SWEEP command (see the video below), a 3D polyline representing the pipeline path, a circle the radius of which corresponds to the pipe radius. I remembered that some months ago, I published a VBA code for drawing 2D polylines in AutoCAD using data from Excel, so I started thinking of a way to expand this solution into three dimensions. In the particular case, I had the pipeline coordinates and pipe sizes in an Excel workbook, so I thought that I should write a VBA code to automate this procedure. I had to design some pipelines in an AutoCAD 3D drawing. The previous days I worked on a hydraulic project.