Editing ProfilePVI´s GradeIn and Out - API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.