Editing ProfilePVI´s GradeIn and Out - API

Editing ProfilePVI´s GradeIn and Out - API

LyOnnet
Explorer Explorer
320 Views
2 Replies
Message 1 of 3

Editing ProfilePVI´s GradeIn and Out - API

LyOnnet
Explorer
Explorer

Hello,

 

I´m new to Autodesk via API programming and I would like to ask you for advice.

 

I have a task to create a plugin for C3D. First, it should require to select a profileView and than PVI in that profileView. After that a form is shown and user fill there an angle for GradeIn and Out (%). Then it should edit station and elevation of that PVI according to filled values. PVIs before and after the selected one can´t move. For better ilustration please see attached picture.

 

I want to ask you for advice about the last part, editing PVI´s station and elevation. I found that i have to edit Before´s PVI GradeOut and After´s PVI GradeIn if I want to achive these two PVIs not to move. But if I tried to edit values more, application crashed. Via GUI it shows a dialog "It has not a solution" but I don´t know how to catch this state via API and so App crash.

 

The second thought was to use two lines from "Before and After" PVIs with demanded angles and where they intersect so it will be a new PVI´s station and elevation. But I´m not sure how to do that.

 

Please, can anyone help me to solve that or point me to the right direction? A short part of code would be excellent.

 

Thank you.

0 Likes
321 Views
2 Replies
Replies (2)
Message 2 of 3

wfberry
Mentor
Mentor

I believe you need to use the Civil 3D Customization forum:

 

https://forums.autodesk.com/t5/civil-3d-customization/bd-p/190

 

Bill

 

0 Likes
Message 3 of 3

LyOnnet
Explorer
Explorer

Thank you and sorry for bad section. Meanwhile I found a solution of some problems so I will edit my text and post it to the right section.

 

Thank you again.

0 Likes