TheSwamp

Code Red => VB(A) => Topic started by: zombies640 on May 17, 2017, 01:54:33 PM

Title: Is creating/manipulating cogo points possible?
Post by: zombies640 on May 17, 2017, 01:54:33 PM
The task is to create and manipulate cogo point elevations according to a slope the user has to input. Is this even possible with VBA? Documentation on this kind of stuff is pretty scarce  :-(
Title: Re: Is creating/manipulating cogo points possible?
Post by: Jeff_M on May 17, 2017, 02:54:16 PM
Yes.

COM help docs: http://docs.autodesk.com/CIV3D/2012/ENU/API_Reference_Guide/com/civil_om.htm
Note that in the Object Model flow chart many of the links are broken. You may need to find a parent object and drill down from there.

There are some VBA samples in the C3D installation folder under Samples.

Using VBA you won't find too much information, as that was deemed to be a dead end language at one time. If you were to move to one of the .NET languages you would be able to find far more help.
Title: Re: Is creating/manipulating cogo points possible?
Post by: zombies640 on May 17, 2017, 03:08:08 PM
Yeah, I was in the progress of learning and playing around with .NET, but long story short, the internet security at work wouldn't allow me to enter in my email information to keep the free version of visual studio. Ridiculous, I know, but that's the way it is...at least for now.