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

Corridor vba sample

14 REPLIES 14
Reply
Message 1 of 15
Anonymous
555 Views, 14 Replies

Corridor vba sample

Hello all,

I'd like to ask you if you have some example of creating corridor in VBA.
We'd like to see how it may be done.
Thank you for yours answers.

Marty
14 REPLIES 14
Message 2 of 15
Anonymous
in reply to: Anonymous

Marty,

You can't create a corridor with the API. I think there is too much
interaction needed with the user to make this pratical. The alternative
would be to make a new UI that ask the same questions as the current one.

Regards,

Peter Funk
Autodesk, Inc.
Message 3 of 15
Anonymous
in reply to: Anonymous

Hi Marty,

With monumental experiments on data and tab order, you can populate the
existing Dialog boxes via a "Sendcommand". It slows the program down as the
Send command has to open, poulate and close the Dialog Box.

For Peter,
How would the new interface work? Having got the data from it - you still
need an API to put that data into the corridor.

--

Laurie Comerford
CADApps
www.cadapps.com.au

; "Inc" wrote in message
news:5147120@discussion.autodesk.com...
Marty,

You can't create a corridor with the API. I think there is too much
interaction needed with the user to make this pratical. The alternative
would be to make a new UI that ask the same questions as the current one.

Regards,

Peter Funk
Autodesk, Inc.
Message 4 of 15
Anonymous
in reply to: Anonymous

I was just going to wonder if that's how managed to do it.

That's some serious commitment to a strong forced approach. Good stuff!

--
James Wedding, P.E.
Engineered Efficiency, Inc.
Civil 3D 2006 SP2
XP Tablet, SP2, 2GHz, 1.5G
www.eng-eff.com
www.civil3d.com
Message 5 of 15
Anonymous
in reply to: Anonymous

Hi James,

"Shhhhhhh". That's "Commercial in confidence"

--

Laurie Comerford
CADApps
www.cadapps.com.au
"James Wedding" wrote in message
news:5147915@discussion.autodesk.com...
I was just going to wonder if that's how managed to do it.

That's some serious commitment to a strong forced approach. Good stuff!

--
James Wedding, P.E.
Engineered Efficiency, Inc.
Civil 3D 2006 SP2
XP Tablet, SP2, 2GHz, 1.5G
www.eng-eff.com
www.civil3d.com
Message 6 of 15
Anonymous
in reply to: Anonymous

James,

for the record, it took quite some time to get that sucker going.

I have to admit, its rather strange that there is no ability to add a corridor programmatically.

When you look at the way the objects work, everything else has followed the rules - some stuff you wonder about - like arraying a surface or an alignment, but the ability to create a corridor (just to get going) is totally missing.

There are actually very few pieces of information needed to create a basic corridor (which is all that is required)

just a name, the alignment, a profile name, an assembly name and maybe a surface. Everything else can be defaulted.

It happens in the UI code. Compared to other things that have been achieved with the API and civil3d in general, this seems to be a 'no brainer'
Message 7 of 15
Anonymous
in reply to: Anonymous

"Everything else can be defaulted" but the logical name mapping can't be. To
me this is the kicker. There is no way for you to know the logical mappings
unless you wrote all the sub assemblies, and know all the surface, profile
and alignment names.

I'm sure we'll get there one day, but making corridors is down on my list of
API requriements.

Sorry,

Peter Funk
Autodesk, Inc.
Message 8 of 15
Anonymous
in reply to: Anonymous

I guess that we are only looking for a basic corridor creater (creator?), which would get the user running quickly without having to go through all the dialog boxes up front.

Quite happy for the user to edit the corridor to add all the logical name mapping at a later time.
Message 9 of 15
Anonymous
in reply to: Anonymous

That I'll buy into!

Peter
Message 10 of 15
Anonymous
in reply to: Anonymous

Thanks Peter.

The times when you want to create a corridor programmatically are often when you are creating a large number of small corridors to meet a specific need for the client.

In these cases, there are rarely logical names to be added, but it is painful for the user to create 15 or 20 corridors with just the basic information.

So, a basic corridor creator in the API would be most welcome.
Message 11 of 15
cadtown
in reply to: Anonymous

I called that "Basic corridor creator" a X-Section Viewer/Editor which allows the user to quickly create X-Section Templates, with maximum flexibility and ease, for reuse - somewhat similar to LDT but far more flexible... And I wouldn't be happy with "Basic" because a well written and conceived X-Section Editor should be able to handle just about any level of complexity. Remember how LDT creates a X-Section Template ?.... Obviously, it wasn't well conceived because the enclosed polyline constraint was killing the flexibility, and there was very little room left for any further improvement.

Peter,
Message 12 of 15
Anonymous
in reply to: Anonymous

I realize this is an older discussion but the problem still persists as to how to know which named object to pick when we all know that naming convention standards are very low on the list of things to do to get up and running. I think the simplest solution would be to include the description field in the dialog popup from which we pick the named objects for the corridor to use. It doesn't free us from the naming convention standardization but at least if we were disciplined enough to fill in the description fields for the objects we create it would alleviate a lot of head scratching when those popups appeared from which we are to pick the right object.
Message 13 of 15
Anonymous
in reply to: Anonymous

Are you kidding? YOu can't even access cui files or workspaces through VBA yet. I am not surprised at all

Mark
Message 14 of 15
Anonymous
in reply to: Anonymous

Hi Mark,

Speak for yourself.

--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
wrote in message news:5493442@discussion.autodesk.com...
Are you kidding? YOu can't even access cui files or workspaces through VBA
yet. I am not surprised at all

Mark
Message 15 of 15
Anonymous
in reply to: Anonymous

Hello everybody,

This is my first post in this useful discussion group. I did not found better topic to ask my question.

I am rather new to C3D customization. I need an iterative process in which in each step I can be able to have a corridor and calculate volumes in it.

I could not find any guide to create a corridor using baseline, assembely,... in .Net(and noticed it is not supported).

In this situation, i thought if I can create a corridor manually and then change the alignment and profile characteristics and update the corridor. If I can do it, i can update the volume in each step of my iterative process.

Does anyone have had the same experience? I would appreciate if you help me.

 

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report