Wednesday, February 03, 2021

Offset 3D Polyline VBA

Here is how I would offset a 3D Polyline for Civil 3D purposes. It's a bit different than for mechanical because civil engineering works in 2-1/2 D. 

The first step is to collect all of the 3D Vertices. this forum post has an example:

Then create a polyline from the 3D Vertices and offset the polyline. The help file has some good code for that:

Then collect the polyline vertices and create a new 3D Polyline assigning the appropriate elevation to the vertices. Here is a link to the help file for that:

No comments:


Blog Widget by LinkWithin