Jump to content

road curve design using vba


majicleaf

Recommended Posts

hi, i have been designing curves of road manually with autocad a it is a very tedious and repitive task. i need to know how to automate the curve design using vba (i use vb & vba for other applications)

 

i need to:

 

1. know the radius of a curve of existing polyline

2. know the deflection angle

3. display the curve design data on a table beside the curve

4. repeat for whole length of the road for each curve (1km normally have average of 10 curves)

 

P.S. i know you can do it in civil3d & mxroads but i want to know how to code it myself :-)

 

can anyone please help??

 

image attached

curve.jpg

Link to comment
Share on other sites

Without writing the code you need to find the formula which is contained in your countries road design manual then just write a lisp or vba to do the table. Lots of stuff here about interrorgating polylines getting radius etc.

 

Its not rocket science basic road design of the 1st principles.

 

It would make sense just pick polyline and it just finds every curve and writes a table.

Link to comment
Share on other sites

coding the formula to do the table is not an issue. The hard part is how to know the radius and deflection angle of every curves on the existing polyline using vba, then placing the table beside each curve.

Link to comment
Share on other sites

A lot of the information needed can be derived from the vertex’s coordinates and Bulge property at each index. See the attached spreadsheet for an example.

BulgeLen.zip

Link to comment
Share on other sites

when i click on your attachment (bulgelen.zip), i downloaded a "php" file named "attachment" and i can't open it with my browser (iexplorer). when i opened with firefox, a dark grey page with 'home' button and 'site search' button at the top right corner appears. when i click on them, nothing happens. any suggestions??

 

i downloaded the same link again and opened it in firefox. i took me to the login page of this site. i'm confused????!!!!!

Link to comment
Share on other sites

The file is a compressed(.zip) Microsoft Excel 2003 spreadsheet file, (BulgeLen.xls). It may not be useful if you don't have Excel installed. Though, Open Office may have an import filter for Excel files.

 

I'm not sure why clicking on it from a browser would bring you anywhere.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...