AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*Jon
Message 1 of 6 (85 Views)

Access points with vlisp

85 Views, 5 Replies
07-28-2004 05:14 AM
I have some routines that access and alter the aec points in ALD. These do not work in C3D since the points are held as a group. Can anybody guide me into at least accessing points with vlisp. I can write in vba as well, but I don't want to have to rewrite the old routines if I can help it. Any guidance would be appreciated. Regards, Jon
*James Wedding
Message 2 of 6 (85 Views)

Re: Access points with vlisp

07-28-2004 05:51 AM in reply to: *Jon
You'll have to look into the help. The object model itself changes drastically with C3D in that you go from external mdb files to dealing with the dwg entities as data. I've found the C3D VBA API quite tidy, so I don't think your time would be wasted in upgrading your routines to VBA. Just $.02 -- James Wedding, P.E. IT Manager Jones & Boyd, Inc. Dallas, TX XP/1 on P4-3.4/1G LDT2004&5+C3D Troll :a slang term for a person who posts messages without contributory content, simply intended to incite conflict. http://wikipedia.com
*Jon
Message 3 of 6 (85 Views)

Re: Access points with vlisp

07-28-2004 02:30 PM in reply to: *Jon
Thanks James. BTW, your replies, to other people, in other news groups, have been a great help to me. Thanks, Jon Rasmussen "James Wedding" wrote in message news:4107a15c$1_3@newsprd01... > You'll have to look into the help. The object model itself changes > drastically with C3D in that you go from external mdb files to dealing with > the dwg entities as data. I've found the C3D VBA API quite tidy, so I don't > think your time would be wasted in upgrading your routines to VBA. > > Just $.02 > > -- > James Wedding, P.E. > IT Manager > Jones & Boyd, Inc. > Dallas, TX > XP/1 on P4-3.4/1G > LDT2004&5+C3D > > Troll :a slang term for a person who posts messages without contributory > content, simply intended to incite conflict. http://wikipedia.com > >
*Laurie Comerford
Message 4 of 6 (85 Views)

Re: Access points with vlisp

07-28-2004 02:44 PM in reply to: *Jon
Hi Jon, Although the structure of VBA code is somewhat different from Lisp, you can start transforming your lisp code by simply clip boarding it into the VBA editor. Then do some judicious searching and replacing - not necessarily with the electronic tools.. For example (setq x y) becomes x = y (if (= x y) (something or other) (something else) ) becomes if x = y then something or other else something else end if (myfunction a b c) becomes myfunction a, b, c By doing this, you take advantage of the logic you have already worked out and you are unlikely to omit features. I converted the Aust Rainfall lisp code to VBA in about an hour this way. This was less time than the time it would have taken me to find the bug in the lisp code. The program had about a hundred lines of computations, as well as file handling. -- Laurie Comerford CADApps www.cadapps.com.au "Jon" wrote in message news:41081ac7_3@newsprd01... > Thanks James. > > BTW, your replies, to other people, in other news groups, have been a great > help to me. > > Thanks, > > Jon Rasmussen > > "James Wedding" wrote in message > news:4107a15c$1_3@newsprd01... > > You'll have to look into the help. The object model itself changes > > drastically with C3D in that you go from external mdb files to dealing > with > > the dwg entities as data. I've found the C3D VBA API quite tidy, so I > don't > > think your time would be wasted in upgrading your routines to VBA. > > > > Just $.02 > > > > -- > > James Wedding, P.E. > > IT Manager > > Jones & Boyd, Inc. > > Dallas, TX > > XP/1 on P4-3.4/1G > > LDT2004&5+C3D > > > > Troll :a slang term for a person who posts messages without contributory > > content, simply intended to incite conflict. http://wikipedia.com > > > > > >
*James Wedding
Message 5 of 6 (85 Views)

Re: Access points with vlisp

07-29-2004 07:27 AM in reply to: *Jon
That's nice work, Laurie. Glad to see you moving to VBA....to bad Peter Funk tells me we should all be working in VB.net now. I'm such a hack. BTW if anyone is still reading, I'm teaching a class at AU this year called, "It's your birthday:smileysurprised:pening up the Civil3D API" We're going to cover the changes in the object model compared to LDT and talk about some of the basic methods that the new C3D objects have. It's NOT a hardcore coding course, more of a What's New type thing. I hope I'll see some of you there! -- James Wedding, P.E. IT Manager Jones & Boyd, Inc. Dallas, TX XP/1 on P4-3.4/1G LDT2004&5+C3D http://au.autodesk.com Sign up now for AU 2004! Troll :a slang term for a person who posts messages without contributory content, simply intended to incite conflict. http://wikipedia.com
*James Wedding
Message 6 of 6 (85 Views)

Re: Access points with vlisp

07-29-2004 07:28 AM in reply to: *Jon
Thanks, I'm glad I can help occasionally. What I know is mostly from this group, so it's nice to occasionally give something back. -- James Wedding, P.E. IT Manager Jones & Boyd, Inc. Dallas, TX XP/1 on P4-3.4/1G LDT2004&5+C3D http://au.autodesk.com Sign up now for AU2004!
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.