Programming C3d

Programming C3d

Anonymous
Not applicable
556 Views
8 Replies
Message 1 of 9

Programming C3d

Anonymous
Not applicable
I am not much of a programmer, lisp was about it. We are trying to create a routine that will force a Civil 3d feature line to slope 1% from the end point we choose.

1st) Does anyone have sucha routine.

2nd) Can someone give me some direction as to what programming language seems most successful in regards to manipulating Civil 3d objects/properties. I am assuming something like VBA or some sort of .Net would work, but I am not familiar enough with these to know where to even begin. Online information/tutorials/examples would be appreciated.

Thanks
0 Likes
557 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
There is a routine in Breakline Designer, Edit 3d Pline/featureline, that
allows you to set grades or elevations on any point in the feature line, it
also includes a viewer !

View the avi http://www.rsteltman.com/content/downloads/surveytools.avi
Download the FREE 30 day fully functioning evaluation version
http://www.rsteltman.com/


wrote in message news:6015484@discussion.autodesk.com...
I am not much of a programmer, lisp was about it. We are trying to create a
routine that will force a Civil 3d feature line to slope 1% from the end
point we choose.

1st) Does anyone have sucha routine.

2nd) Can someone give me some direction as to what programming language
seems most successful in regards to manipulating Civil 3d
objects/properties. I am assuming something like VBA or some sort of .Net
would work, but I am not familiar enough with these to know where to even
begin. Online information/tutorials/examples would be appreciated.

Thanks
0 Likes
Message 3 of 9

Civil3DReminders_com
Mentor
Mentor
Does the Set Grade/Slope Between Points not do this already?

VBA is easiest, sample programs come in the Sample folder in the Programs Folder.

Nothing with feature lines, but there is some VBA stuff on this page.
http://fredbobchris.googlepages.com/intermittentblockoftheday

Christopher
http://blog.Civil3DReminders.com/
Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
0 Likes
Message 4 of 9

Anonymous
Not applicable
We'd like to be able to do it on multiple vertices on multiple lines a little quicker then editing each one. Message was edited by: civilychallenged
0 Likes
Message 5 of 9

Anonymous
Not applicable
Hi civilychallenged,

One of the things that occurs with programming is that the program is
stupid and will only do what it is programmed to do.

Unless you want to do exactly the same thing to each feature line
independently of its number of elevation points, you may find the
programming task never repays the effort.

Unless you are in a large organisation you will find it hard to recover
the costs of programming.

It will almost certainly be more cost effective to learn to use tools
like Robert Steltman suggested and revise you work processes around
them. Or talk to Robert about a company specific customisation of his
routines.


Regards


Laurie Comerford

civilychallenged wrote:
> We'd like to be able to do it on multiple vertices on multiple lines a little quicker then editing each one.
>
> Message was edited by: civilychallenged
0 Likes
Message 6 of 9

Anonymous
Not applicable
Well, I imagine eventually C3d will eventually become unaccessable, probably as well lisps and stuff will go away. Is there a way to edit several feature lines to be @ a 1% slope all at once??? If so, that sounds good to me. I just don't want to have to edit over 800 vertices, then, when I adjust my road, have to reedit them. We are using the feature line as to model our Flow Lines on our lots, tying them to the street Corridor. As only the vertice tied to the corridor changes when we adjust our profile, we will have to change / check these high points every time we adjust it. We are tying a dynamic block to the feature line that will update to exhibit our Finish Floor and Pad Elevations based on our High point. Hope all this makes sense.

This is a major part of our production so if we can make this simple
0 Likes
Message 7 of 9

Anonymous
Not applicable
Well, you could make the FL from an alignment+profile. Then you'd be
able to very easily adjust the profile to make your changes. It's not
common, but it's definitely a use case.
--
James Wedding, P.E.
Engineered Efficiency, Inc.
The Site: www.eng-eff.com
The Blog: www.civil3d.com
The Book: www.masteringcivil3d.com
C3D 08SP2/09 Mac Book Pro, XP SP2, 4GB
0 Likes
Message 8 of 9

Anonymous
Not applicable
I have this code. I am having a problem making it work when it's attached to a street corridor; it works otherwise... any thoughts??? it appears to work on ome side of a corridor but not the other. if we change the start point to a "pause" awaiting users click it works.... it just wont work if we dont do that strange... any thoughts (vl-load-com) (defun c:tt() (setq x (car (entsel)) acadobj (vlax-ename->vla-object x) stpoint (vlax-curve-Getstartpoint acadobj) edpoint (vlax-curve-getendpoint acadobj) ) (command "_setfeaturegrade" x stpoint "" edpoint "s" 100 "") ) Message was edited by: civilychallenged
0 Likes
Message 9 of 9

Anonymous
Not applicable
Perhaps another way I could do that is try to extract the vertex data (generally won't be more then 4 or 5 points in a polyline) and have the routine recreate the feature line. Does anyone know how to extract this data or can answer my pevious post.

Thanks!
0 Likes