AutoCAD Civil 3D Customization

AutoCAD Civil 3D Customization

Reply
*James Maeding
Message 1 of 17 (331 Views)

profile starting and ending station, not sure what they mean

331 Views, 16 Replies
03-11-2008 04:24 PM
They are read-only, so seem to reflect the start and end of the profile tangents.
Would you ever not set those to the alignment start and end stations?

I tried setting them to stations before and after the alignment start and end stations, that did not allow me to reach
my goal of allowing addition of PVI's before alignment start and after end.

I know you can have the profile extend beyond the alignment, it works fine if you add the PVI's with the C3D toolbar.
I can't figure out how to do it with the API though.
thx
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
*James Maeding
Message 2 of 17 (331 Views)

Re: profile starting and ending station, not sure what they mean

03-11-2008 05:11 PM in reply to: *James Maeding
I think the graphical edit thing is a bug.
You edit the station in the grid editor, and it will not allow the stations beyond the alignment start/end.

I have noticed this as a trend now. The objects will let you do illegal edits, without error.
for example, the pipe network pipes will let you stretch them away from the structure ins point but that behavior is not
supported from what I've heard.

Land Desktop allowed PVI's beyond the alignment start/end, its actually a critical need because many things start in the
middle of a vertical curve. I know I could extend the horiz alignment as a workaround, but what a shame (so far).

James Maeding
|>They are read-only, so seem to reflect the start and end of the profile tangents.
|>Would you ever not set those to the alignment start and end stations?
|>
|>I tried setting them to stations before and after the alignment start and end stations, that did not allow me to reach
|>my goal of allowing addition of PVI's before alignment start and after end.
|>
|>I know you can have the profile extend beyond the alignment, it works fine if you add the PVI's with the C3D toolbar.
|>I can't figure out how to do it with the API though.
|>thx
|>James Maeding
|>Civil Engineer and Programmer
|>jmaeding - at - hunsaker - dotcom
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Distinguished Contributor
jwedding
Posts: 1,513
Registered: ‎08-14-2006
Message 3 of 17 (332 Views)

Re: profile starting and ending station, not sure what they mean

03-11-2008 08:11 PM in reply to: *James Maeding
I do know that i had to check for those values in RAS. We had situations
where the alignment completely would cross the sample surface. If I
attempted to pull data starting at the Alignment.start, I'd get null
data, where if I started at profile.start, I got valid data.

--
James Wedding, P.E.
Engineered Efficiency, Inc.
The Site: www.eng-eff.com
The Blog: www.civil3d.com
The Book: www.masteringcivil3d.com
C3D SP2 Mac Book Pro, XP SP2, 3GB
*Expert Elite*
Sinc
Posts: 6,207
Registered: ‎11-18-2006
Message 4 of 17 (333 Views)

Re: profile starting and ending station, not sure what they mean

03-12-2008 08:35 AM in reply to: *James Maeding
I think a programmer somewhere thought it might be a good idea to limit PVIs to the alignment stations in the API access.

It's caused me problems, too. I have a routine in the Sincpac-C3D that allows you to move Profiles. It's for those circumstances where you create an alignment and profile, then realize you used the wrong reference station.

However, since the API takes exception to working with PVIs that extend beyond the limits of the alignment, it can create issues. For example, the user can create a Profile that is longer than the alignment and everything is fine, but I can't move that profile via the API, because no matter what I do, it extends beyond the limits of the alignment. Instead, I have to go through convoluted error-checking, and try to "prune" the profile down so that it actually fits in the Alignment. But this creates other issues...

It can get nasty.
Sinc
*James Maeding
Message 5 of 17 (334 Views)

Re: profile starting and ending station, not sure what they mean

03-12-2008 08:56 AM in reply to: *James Maeding
Out goes the call to Peter Funk.
I think I need a spotlight with intitials PF in it instead of the batman symbol.

Can you confirm, Peter or anyone who knows, if the intended behavior of C3D profiles is to allow PVI's outside the
alignment limits?
The API says no, the elevation editor palette says no, the Add PVI tool and graphical grip edits (stretches) say yes.
I need to plan strategy for this.
Thanks for everyones help so far, wading through this stuff is fun.

James Maeding
|>They are read-only, so seem to reflect the start and end of the profile tangents.
|>Would you ever not set those to the alignment start and end stations?
|>
|>I tried setting them to stations before and after the alignment start and end stations, that did not allow me to reach
|>my goal of allowing addition of PVI's before alignment start and after end.
|>
|>I know you can have the profile extend beyond the alignment, it works fine if you add the PVI's with the C3D toolbar.
|>I can't figure out how to do it with the API though.
|>thx
|>James Maeding
|>Civil Engineer and Programmer
|>jmaeding - at - hunsaker - dotcom
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom
Contributor
rafrbu
Posts: 25
Registered: ‎04-01-2008
Message 6 of 17 (336 Views)

Re: profile starting and ending station, not sure what they mean

04-18-2008 04:09 AM in reply to: *James Maeding
If you need to add PVIs beyond the scope of the alignment stationing, why not extend the alignment temporarily so that the station at which you try to add a PVI, becomes valid? I have tried this tactic with success. Of course, you need to delete the temporary entity you added after having made the Profile.
Employee
nzeeben
Posts: 1,102
Registered: ‎01-30-2004
Message 7 of 17 (337 Views)

Re: profile starting and ending station, not sure what they mean

04-18-2008 06:37 AM in reply to: *James Maeding
The intention is that you can have a profile that is longer than an alignment. We ended up with some additional protection in the API that limits you to the length of the alignment. We did not manage to get it corrected for the 2009 release but it is an issue we are aware of.
Thanks
Nick Zeeben
*Expert Elite*
Sinc
Posts: 6,207
Registered: ‎11-18-2006
Message 8 of 17 (339 Views)

Re: profile starting and ending station, not sure what they mean

07-20-2009 05:14 PM in reply to: *James Maeding
This issue still seems to exist, even with the managed API in C3D 2010...?

-- Sinc
http://www.ejsurveying.com
http://www.quuxsoft.com
Sinc
Distinguished Contributor
jmaeding
Posts: 1,057
Registered: ‎12-27-2006
Message 9 of 17 (176 Views)

Re: profile starting and ending station, not sure what they mean

08-17-2012 01:21 PM in reply to: Sinc

seems to still be present in 2012.

Autodesk, this is basics, for this to be broke still is a major letdown.

Can anyone confirm if this has or has not been fixed?

internal protected virtual unsafe Human()
http://onesmallstepforcad.com/

*Expert Elite*
Jeff_M
Posts: 4,521
Registered: ‎07-22-2003
Message 10 of 17 (171 Views)

Re: profile starting and ending station, not sure what they mean

08-17-2012 02:26 PM in reply to: jmaeding

C3D2013 .NET API for the AddPVI() method of the ProfilePVICollection:

 

Exceptions:
System.ArgumentException: Thrown when the value of the new PVI station is less than the start station or greater than the end station of the profile's parent alignment.

 

Pretty evident they don't want us doing that when creating the profile.

 

 

Jeff_M, also a frequent Swamper
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.