Ad

Sunday, June 14, 2009

Surface Subgrade Creator – Step 2

In the last post a finish grade surface was selected. In this post I’ll do step 2 which is to select the polylines to be used to outline the areas for the subgrade to be applied to. To do this post I downloaded the ObjectARX code available the Autodesk website. The ObjectARX has some examples on how to select objects. The sample code I used is located at C:\ObjectARX 2010\samples\dotNet\SelectionSet\SelectionSet.vbproj. I copied the filter selection set example and modified it to meet my needs. As in the previous post I put the code in the Utilities class in case I have to use it for another feature.

image

Now in the SurfaceSubgrade class I’ll call the GetPolylines function to have the user select the polylines. At this point I added some code to make sure it worked. Once I need to use the polylines I’ll remove that portion of code.

image

In the next post I’ll do step 3 and have the user define the subgrade type.

No comments:

LinkWithin

Blog Widget by LinkWithin

Ad