Ad

Wednesday, June 27, 2012

Surface Boundaries

I noticed an option in the surface styles in Civil 3D 2013 that I hadn’t noticed before. It is possible to show toggle off the display of exterior and interior boundaries.

SNAGHTML3223be94

This would come in handy if you didn’t want to show interior boundaries around a building or a hill you are daylighting around. I think this feature may come in handy.

Corridor Retaining Walls

So I’m sitting in a class room and spy a drawing of a Retaining wall sketched out. Well not any retaining wall, but the retaining wall I’ve created in Civil 3D Subassembly Composer. Not quite sure if they are modeling walls like this in Civil 3D, but if they wanted to they could create the wall subassembly and use it to help model their project. The subassembly I create may be found here: http://www.civilreminders.com/applications I even created a help file for it: http://www.civilreminders.com/applications/caltranstype1rw

I may want to add the ability to model the Selective Backfill, but I think that may be a project for another day.

Transparent Commands

Often times I’ll need to do some calculations when I’m doing a task in AutoCAD / AutoCAD Civil 3D. I recently sat in a class to observe. One of the transparent commands that I didn’t know about was the ‘CAL transparent command.

This transparent command lets you use an expression to calculate the value. So if you wanted to create a line a certain distance based on two values that you have you could start the line command and select the starting point. Then type ‘CAL, then type in your expression. One valid expression is 2*6 to get 12 units. Now this is certainly a simple example with a number you could probably get in your head, but it does provide an example on how the transparent command works.

Monday, June 18, 2012

Autodesk Infrastructure Modeler projects via the cloud

Autodesk released the a new product called Autodesk 360 Infrastructure Modeler today. I’ve got to say I’m extremely disappointed in what Autodesk is providing for Civil Infrastructure users. I see lots of great BIM features for other disciplines, but when it comes to site design there doesn’t seem to be any movement towards improving the work flow.

Infrastructure Modeler 2013 is essentially being moved to the cloud to allow collaboration in the conceptual phase of a project. But who is asking for a conceptual tool? Is it you? Do we really need another way to create an alignment? Is pushing and pulling a point on the roadway the way you want to do design?

I want your feedback! Am I wrong? Is this what you are asking Autodesk to develop? You’d rather have a conceptual design tool that brings in data from Map 3D and then use an entire new tool set to create alignments, profiles, and corridors? I don’t get the AIM product or why it’s needed. It feels like it should be an added feature set in Map 3D or an improvement in Civil 3D for corridor generation at the time of alignment creation.

You’d rather Autodesk provide valuable resources to a conceptual design tool rather then having Autodesk Storm and Sanitary Analysis integrated into the product?

I just don’t get it. Please tell me why you are excited about this offering for the Civil Infrastructure users.

Monday, May 28, 2012

Profile View Band Labels

I took on a project which required replacing Profile View Band label text components, but I had a problem. The problem was that I couldn’t figure out a way to find out what the label was labeling. The Civil 3D API doesn’t provide access to what it is labeling, in this case. This caused the program to sometimes not replace the contents of the correct band label. The solution is to use the AchorInfo property of the label. Using this property I may find the station and elevation location of the label. This will return a nearly correct station value of what the label is labeling, even if the label is adjusted so they don’t overlap. The code that I was using is below. 

        private static ObjectId ReplaceBandLabelTextComponent(ObjectId vgpLabelObjId, ProfileDataBandLabelGroup profDataBandLabelGroup, List<PVIPointInfo> pviPtInfo, ProfileView profView)
{
double station = double.NaN;
double elev = double.NaN;

foreach (LabelGroupSubEntity label in profDataBandLabelGroup.SubEntities)
{
if (label.StyleId == vgpLabelObjId)
{
profView.FindStationAndElevationAtXY(label.AnchorInfo.Location.X, label.AnchorInfo.Location.Y, ref station, ref elev);
PVIPointInfo pviPtToUse = GetPviAtStation(pviPtInfo, station);
if (pviPtToUse != null)
{
foreach (ObjectId textObjId in label.GetTextComponentIds())
{
label.SetTextComponentOverride(textObjId, pviPtToUse.PointDescription);
}
}
}
}
return vgpLabelObjId;
}



Some of the objects are custom objects that I use to make it easier to pass information between the methods. I said almost correct in that with floating points computers use there is some rounding difficulties which may be encountered. The PVI might be reported at 23.32233412121 and the AnchorInfo at 23.32233418354. Most of the digits match, except for the ending digits. This will make any equality checks fail. To get around this we have to use a technique to see if it is approximately correct.



To do this I created an extension for double types. An extension makes the method like it always belongs to the object type. This way it may be used where ever I need it. The code is below.



    public static class DoubleExtensions
{
public static bool AreEqual(this double number, double number2)
{
double difference = Math.Abs(number * .0001);

// Compare the value
if (Math.Abs(number - number2) <= difference)
return true;
else
return false;
}
}



Source: http://msdn.microsoft.com/en-us/library/sy5fbaw6(v=vs.95).aspx



Now I put the code together and I can now replace the text in the correct label.

LinkWithin

Blog Widget by LinkWithin

Ad