Ad

Saturday, June 13, 2009

Surface Subgrade Creator – Step 1

As discussed in the previous post, the first step is to select a FG surface. I figure I’m going to have to select an object more then once, so I’m going to create a new class called Utilities. This way when I need to select an object I can just reuse the code. I’m also going to create a class to hold the program in the Civil3DReminders pack named SurfaceSubgrade.

image

In the utilities class I’m going to copy the code from the ToggleTIN and remove the portions I don’t need and make the select surface more general. It also needs to be able to pass information back and forth. In this case the prompt that should be used and returning the ObjectId of the object selected.

image

For the SurfaceSubgrade I’m using the code from the ToggleTIN code in the Civil3DReminders pack. I removed the part where the user selects the object and replaced it with a call to the Utilities Class.

image

That’s all the time I have right now. Next time I’ll cover step 2.

No comments:

LinkWithin

Blog Widget by LinkWithin

Ad