AutoCAD Civil 3D Customization

AutoCAD Civil 3D Customization

Reply
Contributor
tdunn3
Posts: 18
Registered: ‎09-13-2007
Message 1 of 7 (256 Views)

Applying Description Keys to points using vb.net

256 Views, 6 Replies
08-10-2012 09:32 AM

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?

*Expert Elite*
Jeff_M
Posts: 4,426
Registered: ‎07-22-2003
Message 2 of 7 (251 Views)

Re: Applying Description Keys to points using vb.net

08-10-2012 03:27 PM in reply to: tdunn3

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.

Jeff_M, also a frequent Swamper
Board Manager
Daniel.Du
Posts: 213
Registered: ‎12-23-2008
Message 3 of 7 (244 Views)

Re: Applying Description Keys to points using vb.net

08-11-2012 02:35 AM in reply to: Jeff_M

Actually you can. Have you ever checked this blog? 

http://adndevblog.typepad.com/infrastructure/2012/06/creating-a-new-point-description-key-sets-using...

 



Daniel Du
Developer Technical Services
Autodesk Developer Network

*Expert Elite*
Jeff_M
Posts: 4,426
Registered: ‎07-22-2003
Message 4 of 7 (239 Views)

Re: Applying Description Keys to points using vb.net

08-11-2012 08:33 AM in reply to: Daniel.Du

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.

Jeff_M, also a frequent Swamper
*Expert Elite*
Jeff_M
Posts: 4,426
Registered: ‎07-22-2003
Message 5 of 7 (237 Views)

Re: Applying Description Keys to points using vb.net

08-11-2012 09:05 AM in reply to: Jeff_M

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.

Jeff_M, also a frequent Swamper
Board Manager
Daniel.Du
Posts: 213
Registered: ‎12-23-2008
Message 6 of 7 (222 Views)

Re: Applying Description Keys to points using vb.net

08-13-2012 12:01 AM in reply to: Jeff_M

Yes, Jeff, it is a new API for Civil 3D 2013. :smileyhappy:



Daniel Du
Developer Technical Services
Autodesk Developer Network

Contributor
tdunn3
Posts: 18
Registered: ‎09-13-2007
Message 7 of 7 (215 Views)

Re: Applying Description Keys to points using vb.net

08-13-2012 06:51 AM in reply to: Daniel.Du

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.