Creating a bounding box of planes by selecting 2 sides?

Creating a bounding box of planes by selecting 2 sides?

shiftctrl.io
Enthusiast Enthusiast
2,243 Views
25 Replies
Message 1 of 26

Creating a bounding box of planes by selecting 2 sides?

shiftctrl.io
Enthusiast
Enthusiast

Hi all,

 

I'm exploring different approaches to a problem which I'm hoping to solve using a bounding box of planes. I'm not sure if this is even possible, but if it is, any guidance in the right direction would go a long way. 

 

Lets assume we have a rectangular box with an open front, Ideally what I would like to achieve is - an engineer clicks a add-in followed by clicking the inner right and left panels, then the add-in adds the 4 planes needed. I've attached two screenshots to depict what I'm trying to achieve. 

 

This is in part for something that I am working on, and in part for my learning. 

 

Has anyone made something like this before, anything similar that I may examine the code? Or ideas on how to approach this problem? A large part of this exercise if my personal knowledge as I'm trying to get to the point where I can create add-ins in my sleep. 

 

Thank you.

 

Inventor_YqefxZM6a2.png

 

Inventor_JqtQSWNMcd.png

 

 

0 Likes
Accepted solutions (1)
2,244 Views
25 Replies
Replies (25)
Message 21 of 26

robertast
Collaborator
Collaborator

You know @JhoelForshav  All your messages are worth gold, they must be collected in one book and you will get a unique student. 😊

Message 22 of 26

shiftctrl.io
Enthusiast
Enthusiast

First, @JhoelForshav @_dscholtes_ @WCrihfield @robertast   please allow me to apologize if my intentions were not obvious and for the late response. I had some matters that required my undivided attention and this thread grew faster than I had time to respond with the respect it deserved. 

 

Second, thank you all for the time and effort you put in to solving this problem. This community is one of the best. 

 

@JhoelForshav , you're a genius (period). If have any desire whatsoever to teach this stuff - please let me know so I can join! I'll even do my part in marketing your class.

 

In regards to what this exercise was for - I mentioned in my original post that I was simply "exploring options to a problem" and "A large part of this exercise if my personal knowledge" - the problem was in-of-itself adding a bounding box to the interior of a box. There is no one reason why I needed this function. Rather, is was just a base function for a few other methods in a much larger project which I'm playing with. In part, the add-in I'm experimenting with (in whatever free time I have) will do some supplemental processing on top of another add-in called Woodwork for Inventor (WW4I).

 

WW4I leverages the use of planes a lot, and the 4 planes which is part of the solution, will eventually have a lot more planes dynamically adjusted based on a list of variables.

 

It is quite possible that when all this is said and done, as the add-in evolves, these 4 plane might not have been needed. However, It was something which got me thinking and for the sake of learning I opted to tap into the community to see what other people (much smarter than myself) had to say on the subject. I most certainly didn't expect to find such an interest and the brilliant solutions proposed here by both @JhoelForshav and @WCrihfield 

 

Once again, thank you all for your time efforts - I think I'll be digesting these responses for a while. 

Message 23 of 26

robertast
Collaborator
Collaborator

@shiftctrl.io 

So just out of curiosity. Are you trying to update an existing Woodwork add-in? or creating a new one?

0 Likes
Message 24 of 26

shiftctrl.io
Enthusiast
Enthusiast

It's a new supplemental add-in specific to our use case and our standard library parts. I'm exploring options to reduce  the time it takes our engineers complete ETOs. 

0 Likes
Message 25 of 26

robertast
Collaborator
Collaborator

@shiftctrl.io 

Good luck with your work. It will be interesting to know the final result.
Then choose a name for your creation. As far as I know, the name of the inventor "Woodwork" is patented. 😉

0 Likes
Message 26 of 26

shiftctrl.io
Enthusiast
Enthusiast

Thank you. I hope to eventually develop something beneficial to the larger community, I have many ideas - just not the time to dedicate to this endeavor.  I'll be sure to post about it if/when the time comes. 

0 Likes