Author Topic: Is creating/manipulating cogo points possible?  (Read 29 times)

0 Members and 1 Guest are viewing this topic.

zombies640

  • Mosquito
  • Posts: 8
Is creating/manipulating cogo points possible?
« 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  :-(

Jeff_M

  • King Gator
  • Posts: 3879
  • C3D user & customizer
Re: Is creating/manipulating cogo points possible?
« Reply #1 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.

zombies640

  • Mosquito
  • Posts: 8
Re: Is creating/manipulating cogo points possible?
« Reply #2 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.