Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access points with vlisp

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
142 Views, 5 Replies

Access points with vlisp

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
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

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
Message 3 of 6
Anonymous
in reply to: Anonymous

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 > >
Message 4 of 6
Anonymous
in reply to: Anonymous

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 > > > > > >
Message 5 of 6
Anonymous
in reply to: Anonymous

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:Opening 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
Message 6 of 6
Anonymous
in reply to: Anonymous

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!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report