Ad

Thursday, April 24, 2014

Creating a Point File Format

Sometimes we get survey information for a third party that doesn’t match any of the out of the box point file formats. We may need to create a new one to make it work. You can usually tell that you need to create one because you get a message that says “No point file format match found”.

image

To create a new point format press the format button on the same dialog box you get the message on.

image

When the dialog box pops up make sure to select a format that looks similar to your file and press copy. In my case I think the PNEZD is fairly close so I’m going to use that one.

image

The Point File Format dialog box will then show up which shows the current values.

image

I need to make some changes, the first is changing the format name to NNEZD (comma delimited). This represents Name, Northing, Easting, Elevation, and Description in a comma delimited format. I’m also going to change the file format to .csv.

image

Next I want to change the Point Number to Name by selecting the Point Number heading and then using the column name drop down to select Name.

image

I then press OK to close the dialog box and press Close on the Point File Formats Dialog box.

If you did everything correctly Civil 3D should then select your newly created file format.

You probably don’t want to do it each time, so make sure to add it to your template or use the Import Styles button on the Manage Tab of the ribbon to transfer the format from an existing drawing you’ve already done the transfer for.

image

Tuesday, April 01, 2014

Replace Last Entity

Finally I’ve created the million dollar application that you won’t be able to live without. In reality the application is priceless, but I’ve reduced it to an extremely affordable price of only $1,000,000. This app does what you were waiting for. It replaces the last profile entity from an entity and replaces it with a brand new refreshed copy.

You may have experienced drawing slow down in the past and wondered what the cause was. It just might have been due to a tired worn out last profile entity being the slowest chain in the link of objects. Autodesk may have told you in the past it was due to large amount of data in the drawing. My research as determined in reality it is caused by a tired last profile entity segment. Since I started using this application my drawing regen times have been increased by 3,500% (your results may vary).

The program is available in the Civil 3D App Store. After installing the program, type C3DRReplaceLastEntity at the command line, select the design profile, and sit back and watch your drawing performance improve exponentially. It’s like buying a new computer from the future to get the unlimited computing power of tomorrow. Here is the command in action: http://screencast.com/t/1mp9nrHTbAj see how easy it is to use? I’m sure it will be your go to tool when drawing performance starts to go downhill.

Another feature of this million dollar app is it fixes a glaring error in the newly announced Civil 3D 2015. A new feature allows you to extend a fixed or floating tangent or parabola to the extents of the profile view the object is currently in. To accomplish this it adds a line or curve extension to the end of the profile view. This makes it possible to hide the added portion of the profile, while still using the extension in a corridor. This would let the corridor not go to zero elevation. Unfortunately if you decide to adjust the last profile entity you can’t get rid of the extension line. Since this million dollar app replaces the last segment, it also gets rid of the extended line or curve. Think of how quick your return on investment will be for this app. Since Civil 3D 2015 was light on new features, and for this new feature to be included, I'm sure it will be quickly recouped.

To celebrate the release of this application I’m going to give away this application to the first million people to request it on the first day of April. That’s a value of $1 Trillion dollars I’m giving away. I must be crazy. To get a copy fill out this survey. Yes, it is that easy to get a copy of this million dollar app!

The survey is now closed and you have lost the opportunity to get the million dollar app for free. It doesn't look like the app was accepted into the Civil 3D App Store. If you'd like to purchase email me (link to the upper right) and we can make payment arrangements. While this post is an April's Fools day post the app does replace the last profile entity in Civil 3D 2015 in case you extended the profile and now want to have it show correctly. It must be worth that price since Autodesk wasn't willing to spend the supposed countless hours to include the command in Civil 3D 2015 to do it themselves.

Monday, March 24, 2014

shift STORM WATER

In the past two years I’ve attended Startup Weekend events, where you pitch ideas and a the end of the weekend you end up with a prototype product and a business idea that is fairly well developed. At each of them I’ve pitched a tool to help with Storm Water management. Many of the participants are students, so it’s not surprising I couldn’t get a team to do a real world useful app compared to another app to share music with others.

I recently got an email for a new product, which just happened to be the tool I was pitching at Startup Weekend. The product name is shiftStormWater. The product helps you track all of the required forms, rainfall, action logs and other required items. It makes it easy to have all of the information in one place. The tool is accessed over the cloud and provides all of the required forms.

image

The user interface is easy to navigate between items. Adding forms is as easy as clicking the + Forms button at the top of the screen. The dashboard provides an entry point to the data. The Details button allows you to enter and change the details for your project. There are alerts that are provided for rainfall events. If you do rainfall monitoring and stormwater development projects you might want to check out this tool. You can find out more information here: http://shiftstormwater.com/

Friday, March 07, 2014

Dell Announcements

Dell recently has been sending out some press release announcements, while I have been busy not putting out blog posts. I figured I would take this opportunity to do a blog post by passing on Dell’s information.

First up is a less expensive mobile workstation dubbed the M2800. It is a 15” screen with a system set up for utilizing AutoCAD (and I’m assuming the verticals). At a base price of $1,199 it hopes to fill the gap between a basic laptop and a workstation. I could see this machine as an away from the office machine that isn’t as bulky as 17” laptop workstation and a desktop at the office. I don’t have a permanent office space, so I’m going to stick with my 17” behemoth of a mobile workstation. More information may be found here and here.

Dell also announced the Dell Wyse Datacenter for Virtual Workstations. This allows Independent Software Vendors (ISV), such as Autodesk, to develop their software and then test it on the virtual workstations. Dell is providing free help for the ISVs to figure out any problems and then get help in solving them. Presumably once all of the kinks are worked out the virtual workstations may then be certified for use. You then could implement them for your company. The benefit of a virtual workstation is the ability to access a fast computer and your data in remote locations using a variety of devices. The benefit for Dell the ability to sell customers a cloud solution they they host. It also allows for the security of the data without having to trust cloud solutions provided by others such as Autodesk.

I see this as the future cloud solution. You create a series of virtual workstations in a central location and then install a version of the Autodesk’s cloud platform on your servers. This removes the big road block in Autodesk’s plan to move all of us to the cloud. Or I could be wrong and Autodesk will fail miserably as we stick to desktop versions because internet connections suck at this time and who wants to be dependent on a link to the outside of your walls to get and use a program and your data. For more information check this link out.

Dell has provided a free trip to me in the past to attend a press event of theirs. I also get invited to SWSX events, which I haven’t had a chance to attend. Maybe next year.

Monday, January 27, 2014

Profile View Bands

There appears to be a bug in adding a profile view band set to a profile view through the API in Civil 3D 2013 & 2014. The error is that the profiles, pipe network, and other information isn’t shown properly. In addition all of the settings don’t make sense. Here is some code that corrects the situation below. There is lots of code not shown, along with methods that are called that are included below. But the main concept is below.

ProfileViewBandSetStyle bandSet = profileBandSetId.GetObject(OpenMode.ForRead) as ProfileViewBandSetStyle;
ProfileViewBandItemCollection bottomBandItems = profileView.Bands.GetBottomBandItems();
ProfileViewBandItemCollection topBandItems = profileView.Bands.GetTopBandItems();

bottomBandItems.RemoveAll();
topBandItems.RemoveAll();

bottomBandItems = new ProfileViewBandItemCollection(profileView.ObjectId, Autodesk.Civil.BandLocationType.Bottom);
topBandItems = new ProfileViewBandItemCollection(profileView.ObjectId, Autodesk.Civil.BandLocationType.Top);

var bottomBandSetItems = bandSet.GetBottomBandSetItems();

foreach (var bandItem in bandSet.GetBottomBandSetItems())
{
bottomBandItems.Add(bandItem.BandStyleId);
}

int i = 0;
foreach (var bandItm in bottomBandItems)
{
bandItm.Gap = bottomBandSetItems[i].Gap;
bandItm.LabelAtEndStation = bottomBandSetItems[i].LabelAtEndStation;
bandItm.LabelAtStartStation = bottomBandSetItems[i].LabelAtStartStation;
if (bandItm.BandType != Autodesk.Civil.BandType.PipeNetwork)
{
bandItm.MajorInterval = bottomBandSetItems[i].MajorInterval == 0 ? 100 : bottomBandSetItems[i].MajorInterval;
bandItm.MinorInterval = bottomBandSetItems[i].MinorInterval == 0 ? 25 : bottomBandSetItems[i].MinorInterval;
bandItm.SetHorizontalGeometryPointsOptions(bottomBandSetItems[i].GetHorizontalGeometryPointsOptions());
bandItm.SetVerticalGeometryPointsOptions(bottomBandSetItems[i].GetVerticalGeometryPointsOptions());
bandItm.StaggerLabel = bottomBandSetItems[i].StaggerLabel;
if (bandItm.StaggerLabel != StaggerLabelType.None)
{
bandItm.StaggerLineHeight = bottomBandSetItems[i].StaggerLineHeight;
}
}
bandItm.ShowLabels = bottomBandSetItems[i].ShowLabels;
bandItm.Weeding = bottomBandSetItems[i].Weeding;
i += 1;
}

var topBandSetItems = bandSet.GetTopBandSetItems();

foreach (var bandItem in topBandSetItems)
{
topBandItems.Add(bandItem.BandStyleId);
}

i = 0;
foreach (var bandItm in topBandItems)
{
bandItm.Gap = topBandSetItems[i].Gap;
bandItm.LabelAtEndStation = topBandSetItems[i].LabelAtEndStation;
bandItm.LabelAtStartStation = topBandSetItems[i].LabelAtStartStation;
if (bandItm.BandType != Autodesk.Civil.BandType.PipeNetwork)
{
bandItm.MajorInterval = topBandSetItems[i].MajorInterval == 0 ? 100 : bottomBandSetItems[i].MajorInterval;
bandItm.MinorInterval = topBandSetItems[i].MinorInterval == 0 ? 25 : bottomBandSetItems[i].MinorInterval;
bandItm.SetHorizontalGeometryPointsOptions(topBandSetItems[i].GetHorizontalGeometryPointsOptions());
bandItm.SetVerticalGeometryPointsOptions(topBandSetItems[i].GetVerticalGeometryPointsOptions());
bandItm.StaggerLabel = topBandSetItems[i].StaggerLabel;
if (bandItm.StaggerLabel != StaggerLabelType.None)
{
bandItm.StaggerLineHeight = topBandSetItems[i].StaggerLineHeight;
}
}
bandItm.ShowLabels = topBandSetItems[i].ShowLabels;
bandItm.Weeding = topBandSetItems[i].Weeding;
i += 1;
}

UpdateBandProfileAndDataSource(PipeNetworkObjId, prof, bottomBandItems);
UpdateBandProfileAndDataSource(PipeNetworkObjId, prof, topBandItems);

profileView.Bands.SetBottomBandItems(bottomBandItems);
profileView.Bands.SetTopBandItems(topBandItems);

LinkWithin

Blog Widget by LinkWithin

Ad