I have created a custom point import with vb.net into Civil 3D 2012. I would like to be able to apply the description keys to the points after I import. Can someone point me in the right direction?
I don't think you can apply the DescriptionKeys after import. You can have them applied during the import, though, by setting the correct settings for the Create Points and/or Import Points.
Actually you can. Have you ever checked this blog?
Yes, Daniel, I check that blog often. I also have code to create custom Description Key Sets. But, I haven't seen a way to apply DKSets to existing points in the API prior to 2013. That blog post only shows how to create the DK's using the new API for 2013. The new API also has the ApplyDescriptionKeys() for a CogoPoint object. But that does not help the OP since they are using C3D2012.
Oops, I'd meant to add that there is another post on the blog that does show how to use the ApplyDescriptionKeys(). But, again, that is exclusive to 2013.
I adjusted my code to import PNEZD using Aeccpoints.Importpoints and it applys the description keys and then I run through the csv again to attach the object data to the point. After reading the blog it makes me wish I had 2013 to program with, it would have made everything I was trying to do a whole lot easier!
Thank you everybody for your input
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!