Autocad draw polyline vba emulator8/30/2023 ![]() 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. 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. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |