Hello, ive got a problem, but first i'll explain what ive done so far and what im trying to achieve.
Ive made a program (vb.net) that automatically generates drawings from selected parts. To calculate the correct scaling, im using the rangebox maxpoint and minpoint to measure the x, y, z lengths of each part and from that, I can scale accordingly. The problem im encountering is when the user has changed the default front view of the part (by right-clicking the cube and choosing 'select current view as front') Because the part x,y,z coordinates do not update when a new front view is selected, my scaling algorithm calculates the scaling incorrectly because it is relating to the coordinates instead of based on the front view location.
Worst case solution: programatically press the 'reset front view' button by right-clicking the 3d cube in the part document - is there a bit of code for this?
medium solution: programitaccly figue out the realtionship between the current front view and the original x,y,z coordinates - how would I do this?
Best case solution: re-set the x,y,z part coordinates to equal the new front view each time a new front view is selected - not sure if this is possible?
Thanks in advance, Craig
does anyone have any ideas?