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: 

PVI Beyond end of alignment

11 REPLIES 11
Reply
Message 1 of 12
davidurban1
342 Views, 11 Replies

PVI Beyond end of alignment

This is probably a silly question, but I am writing a routine to draw a profile of a curb return. The thing is the curb return with its length goes beyond the start or end of the alignment. My profile view is long enough but my program breaks if the PVI that I try to create is beyond the bounds of the alignment.

Is this normal or is there a work around. I can do it manually with the profile tools and draw the profile. I was using the sample code from the profile sample.

Thanks


David Urban
11 REPLIES 11
Message 2 of 12
Anonymous
in reply to: davidurban1

Is your alignment not the curb return?

Maybe a pic or 2 would help....'cuz I'm not getting it.


wrote in message news:5869185@discussion.autodesk.com...
This is probably a silly question, but I am writing a routine to draw a
profile of a curb return. The thing is the curb return with its length goes
beyond the start or end of the alignment. My profile view is long enough
but my program breaks if the PVI that I try to create is beyond the bounds
of the alignment.

Is this normal or is there a work around. I can do it manually with the
profile tools and draw the profile. I was using the sample code from the
profile sample.

Thanks


David Urban
Message 3 of 12
Anonymous
in reply to: davidurban1

We have typically shown the curb returns on the main alignment for
construction. This is not for c3d construction. For graphical purposes we
follow the curb return length in the plan even though it is not correct
station wise. The profile would start at the PC or PT of the curb return
and follow along its distance translated onto the profile. Attached is a
picture of what I am wanting. I had to draw the profile manually because
the program errors when I try and have it draw the profile.

I was wondering if I could draw it with polylines then convert the polyline
to a profile.

Second Question is how to label the profile programatically. do I have to
set up a label set then apply it. Any examples would be nice.

David Urban
"Jeff Mishler" wrote in message
news:5869190@discussion.autodesk.com...
Is your alignment not the curb return?

Maybe a pic or 2 would help....'cuz I'm not getting it.


wrote in message news:5869185@discussion.autodesk.com...
This is probably a silly question, but I am writing a routine to draw a
profile of a curb return. The thing is the curb return with its length goes
beyond the start or end of the alignment. My profile view is long enough
but my program breaks if the PVI that I try to create is beyond the bounds
of the alignment.

Is this normal or is there a work around. I can do it manually with the
profile tools and draw the profile. I was using the sample code from the
profile sample.

Thanks


David Urban
Message 4 of 12
Anonymous
in reply to: davidurban1

Your first post stated:

"The thing is the curb return with its length goes beyond the start or end
of the alignment."

What does this statement mean? It appears that you are using the curb
return to make the alignment.

To somewhat answer your question with the PVI, I have found that you need a
lead in tangent, roughly 100' and one past the PT of approx 100'. This way
you can superimpose the C.L. grades of the two main alignments and get a
much better idea of your curb profile (gutter line) design.

Bill



"David Urban @PD" wrote in message
news:5869536@discussion.autodesk.com...
We have typically shown the curb returns on the main alignment for
Message 5 of 12
Anonymous
in reply to: davidurban1

I think this scenario is what David meant. I haven't found a way to do this
in Civil3d, but I haven't played with a whole lot either. I'm thinking this
could be done with superimposed profiles somehow.

"wfb" wrote in message
news:5869789@discussion.autodesk.com...
Your first post stated:

"The thing is the curb return with its length goes beyond the start or end
of the alignment."

What does this statement mean? It appears that you are using the curb
return to make the alignment.

To somewhat answer your question with the PVI, I have found that you need a
lead in tangent, roughly 100' and one past the PT of approx 100'. This way
you can superimpose the C.L. grades of the two main alignments and get a
much better idea of your curb profile (gutter line) design.

Bill



"David Urban @PD" wrote in message
news:5869536@discussion.autodesk.com...
We have typically shown the curb returns on the main alignment for
Message 6 of 12
Anonymous
in reply to: davidurban1

The curb returns are drawin on the roadway centerline alignment which does
not extend far enough to cover the entire length of the curb return. from
my picture on my last post the line work extends beyond the end of the
alignment. I am just trying to make a profile of the curb return (no
alignment for the curb return) on the centerline alignment.

Thanks

David
"wfb" wrote in message
news:5869789@discussion.autodesk.com...
Your first post stated:

"The thing is the curb return with its length goes beyond the start or end
of the alignment."

What does this statement mean? It appears that you are using the curb
return to make the alignment.

To somewhat answer your question with the PVI, I have found that you need a
lead in tangent, roughly 100' and one past the PT of approx 100'. This way
you can superimpose the C.L. grades of the two main alignments and get a
much better idea of your curb profile (gutter line) design.

Bill



"David Urban @PD" wrote in message
news:5869536@discussion.autodesk.com...
We have typically shown the curb returns on the main alignment for
Message 7 of 12
Anonymous
in reply to: davidurban1

The question I had has gotten of course. My question is can you with VBA or
other language create a PVI beyond the bounds of an alignment? I use the
addfixed tangent and give my station and elevation points and one of those
points is beyond the bounds of the alignment but not the PFV. I get valid
stations and I have a vailid elevaiton. but I get and error.

Any Idea?

David Urban

"David Urban @PD" wrote in message
news:5869799@discussion.autodesk.com...
The curb returns are drawin on the roadway centerline alignment which does
not extend far enough to cover the entire length of the curb return. from
my picture on my last post the line work extends beyond the end of the
alignment. I am just trying to make a profile of the curb return (no
alignment for the curb return) on the centerline alignment.

Thanks

David
"wfb" wrote in message
news:5869789@discussion.autodesk.com...
Your first post stated:

"The thing is the curb return with its length goes beyond the start or end
of the alignment."

What does this statement mean? It appears that you are using the curb
return to make the alignment.

To somewhat answer your question with the PVI, I have found that you need a
lead in tangent, roughly 100' and one past the PT of approx 100'. This way
you can superimpose the C.L. grades of the two main alignments and get a
much better idea of your curb profile (gutter line) design.

Bill



"David Urban @PD" wrote in message
news:5869536@discussion.autodesk.com...
We have typically shown the curb returns on the main alignment for
Message 8 of 12
Anonymous
in reply to: davidurban1

Hi David,

I think the best approach to this is to plot a polyline for the kerb return
"view". This way you wont run into trying to put an IP on a non-existent
location of the road alignment

In the Land Desktop Era, I plotted the kerb return view just as you do by
plotting as a normal kerb profile then copying the polyline onto the road
profile.


--


Regards

Laurie Comerford

"David Urban @PD" wrote in message
news:5869837@discussion.autodesk.com...
The question I had has gotten of course. My question is can you with VBA or
other language create a PVI beyond the bounds of an alignment? I use the
addfixed tangent and give my station and elevation points and one of those
points is beyond the bounds of the alignment but not the PFV. I get valid
stations and I have a vailid elevaiton. but I get and error.

Any Idea?

David Urban

"David Urban @PD" wrote in message
news:5869799@discussion.autodesk.com...
The curb returns are drawin on the roadway centerline alignment which does
not extend far enough to cover the entire length of the curb return. from
my picture on my last post the line work extends beyond the end of the
alignment. I am just trying to make a profile of the curb return (no
alignment for the curb return) on the centerline alignment.

Thanks

David
"wfb" wrote in message
news:5869789@discussion.autodesk.com...
Your first post stated:

"The thing is the curb return with its length goes beyond the start or end
of the alignment."

What does this statement mean? It appears that you are using the curb
return to make the alignment.

To somewhat answer your question with the PVI, I have found that you need a
lead in tangent, roughly 100' and one past the PT of approx 100'. This way
you can superimpose the C.L. grades of the two main alignments and get a
much better idea of your curb profile (gutter line) design.

Bill



"David Urban @PD" wrote in message
news:5869536@discussion.autodesk.com...
We have typically shown the curb returns on the main alignment for
Message 9 of 12
Anonymous
in reply to: davidurban1

This is the same situation the 3 line profile people run into.
You essentially need to overlap several different profile views, to represent what is needed.
Not sure if I am repeating what others said, but here is how I would say to do what the OP wants:
1) make a separate alignment and profile for the curb returns, it could extend past the actual BC EC's to allow the curb
return profile view to show superimposed profiles of approaching and trailing curbs.
2) design the CR profile, and either use viewports to show it on the main road profile, or overlap them (I have not
tried the overlap thing yet)

I'd be interested in hearing comments on if its cool to overlap profile views, thx

davidurban1 <>
|>This is probably a silly question, but I am writing a routine to draw a profile of a curb return. The thing is the curb return with its length goes beyond the start or end of the alignment. My profile view is long enough but my program breaks if the PVI that I try to create is beyond the bounds of the alignment.
|>
|>Is this normal or is there a work around. I can do it manually with the profile tools and draw the profile. I was using the sample code from the profile sample.
|>
|>Thanks
|>
|>
|>David Urban
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Message 10 of 12
Anonymous
in reply to: davidurban1

Sure, I have done it. Although I'm not sure how tough coding something like
this will be, which is what David is after.


"James Maeding" wrote in message
news:5870272@discussion.autodesk.com...
....
I'd be interested in hearing comments on if its cool to overlap profile
views, thx
Message 11 of 12
Anonymous
in reply to: davidurban1

Actually, I have a good idea on how to do this. I think I just came up with
my weekend project 🙂

I just wish my new laptop was here.....coding on my old Toshiba is
slow....well, the coding isn't, it's the testing things out by opening C3D
that's excruciatingly slow. Takes about 5 minutes to get to an editable
drawing.....but I'll give a try.


"Jeff Mishler" wrote in message
news:5870295@discussion.autodesk.com...
Sure, I have done it. Although I'm not sure how tough coding something like
this will be, which is what David is after.


"James Maeding" wrote in message
news:5870272@discussion.autodesk.com...
....
I'd be interested in hearing comments on if its cool to overlap profile
views, thx
Message 12 of 12
Anonymous
in reply to: davidurban1

Yep, I have a working solution. But I seem to have run into a small problem
that hopefully is just something I am overlooking.

The ProfileView object Properties ElevationMin & StationStart cannot be set
via code. I have tried with both of the lock settings either true or false
(I would think False would allow this to work). I have come up with a work
around, but it's not ideal.

It needs work to address other scenarios, but this should be a decent start
for you. This initial version works with a main alignment profileview drawn
left to right and a curb return whose stationing is going in the same
direction as the main align, and that return is on the upstation end of the
alignment. There will likely be quite a bit involved here, including using
different PVSTyles for left & right direction returns, swapping start/end
calcs depending which connects to the main alignment's curb, etc. But since
I will probably never use this for my own purposes, I leave that up to you.
This is more of a "yes, it can be done, here's an example" sort of help. And
yes, I have tried it on a number of returns. 🙂

The prerequisites are:

You MUST use a profile view that is based on the style that the main
alignment's PV uses(For the Vert.scale). Turn off the visibilty of all items
in the CR's PV Style.
Create an alignment for your curb return, add a PV for it and create the
Curb profile. This can be done with code, but I'm just using existing for my
testing.

Here's the code, David, including my Test sub so you can see how I call the
function. It's a bit messy, and there is NO error checking. It's up to you
to pass valid Style names and new profile name. Good luck and have fun!

[code]
''Sample code to add a Curb Return profile to the Main Alignment's
ProfileView.
''By Jeff Mishler
Sub test()
Dim oApp As AeccApplication
Dim odoc As AeccDocument
Dim oAlign As AeccAlignment
Dim oAlignPView As AeccProfileView
Dim oCRAlign As AeccAlignment
Dim sTCProf As String, sPVName As String
Dim sPVStyle As String, sBandStyl As String
Dim dCRStation As Double

sTCProf = "TopCurbCR1"
sPVName = "HiddenCR"
sPVStyle = "HiddenCR - 40 & 5"
sBandStyl = "_No Bands"
dCRStation = 509#


Set oApp = Application.GetInterfaceObject("AeccXUiLand.AeccApplication.5.0")
Set odoc = oApp.ActiveDocument
''Get the main alignment to add the CR to
Set oAlign = odoc.Sites("Roads & Lots").Alignments("B")
''Get the Profile to draw it in
Set oAlignPView = oAlign.ProfileViews(0)
''Get the CR Align
Set oCRAlign = odoc.Sites("Transition Alignments").Alignments("cr-ns2-ne")

''Add it to the profile
AppendCRProfiletoAlignProfile oAlignPView, oCRAlign, sPVStyle, sBandStyl,
dCRStation, sTCProf, sPVName, odoc

Set oApp = Nothing

End Sub

Function AppendCRProfiletoAlignProfile(oAlignPView As AeccProfileView,
oCRAlign As AeccAlignment, _
strPVStyleName As String, strBandStyl
As String, _
dCRSta As Double, strProfName As
String, _
strPVName As String, odoc As
AeccDocument)

Dim oCRPView As AeccProfileView
Dim dOrigin(2) As Double
Dim dX As Double, dY As Double
Dim dSta2 As Double
Dim dElev As Double

dSta2 = oCRAlign.StartingStation
dElev = oCRAlign.Profiles(strProfName).ElevationAt(dSta2)

oAlignPView.FindXYAtStationAndElevation dCRSta, dElev, dX, dY
dOrigin(0) = dX: dOrigin(1) = dY


Dim oPVStyle As AeccProfileViewStyle
Set oPVStyle = odoc.ProfileViewStyles(strPVStyleName)
Dim oBandStyl As AeccProfileViewBandStyleSet
Set oBandStyl = odoc.ProfileViewBandStyleSets(strBandStyl)
Set oCRPView = oCRAlign.ProfileViews.Add(strPVName, oAlignPView.Layer,
dOrigin, oPVStyle, oBandStyl)

''The following settings do not work in 2008....
''if they ever are usable, the origin will need to be changed when creating
the PV, _
I had tried the ElevationMin of the main PV and the CRstation.
'oCRPView.ElevationLocked = False
'oCRPView.StationLocked = False
'oCRPView.ElevationMin = dElev
'oCRPView.StationStart = oCRAlign.StartingStation
''So here is a workaround, by moving the pview
Dim dX2 As Double, dY2 As Double
Dim dBase(2) As Double
oCRPView.FindXYAtStationAndElevation dSta2, dElev, dX2, dY2
dBase(0) = dX2: dBase(1) = dY2
oCRPView.Move dBase, dOrigin
oCRPView.Update

Dim oOverride As AeccProfileOverride
Dim oProf As AeccProfile
For Each oOverride In oCRPView.Overrides
Set oProf = oOverride.profile
If Not oProf.Name = strProfName Then
oOverride.Draw = False
Else
oOverride.Draw = True
End If
Next

End Function
[/code]

"Jeff Mishler" wrote in message
news:5870297@discussion.autodesk.com...
Actually, I have a good idea on how to do this. I think I just came up with
my weekend project 🙂

I just wish my new laptop was here.....coding on my old Toshiba is
slow....well, the coding isn't, it's the testing things out by opening C3D
that's excruciatingly slow. Takes about 5 minutes to get to an editable
drawing.....but I'll give a try.

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report