Thanks for a much useful plugin. I had coded something similar in AutoLisp a few years ago to do this in Autocad, precisely for stairs and contours.
pbacot wrote:... interpret the height of contours in plan by the user drawing a section line.
This sounds very complicated, I'll see what I can do.
I think this could be simpler than it sounds, maybe one of the forum's rubymasters could help out with the code. Here's how i would imagine it:
Method 1, should work with lines:
-User draws a line across the contours he wishes to raise and sets H=riser height.
-Plugin figures if it's a generally horizontal or vertical line (is that necessary?)
-Plugin finds all intersection points and makes an array ordered based on their X (or Y?) coordinate
-Plugin traverses array raising each line by H x its index in the array.
Method 2, perhaps this is the solution for faces?
-User selects all faces that need to be raised (by window or select all or whatever... if one by one, it's just the current method)
-User draws a line L through all said faces
-Plugin filters out non-faces from selection and makes an array as above, ordered by X or Y coordinate of mid-point of segment created by intersection between line L and each face.
-Plugin traverses and raises as above.
Hope this makes sense!