Jump to content

Recommended Posts

Posted

HI,

 

 The yellow line is wall, red is a box. I would like to know if the box fits by turning and sliding into opening. I put it into a circle as a bounding box and manually moved it around to check. 

There must be a more elegant way of doing this and mabe a way to calculate the max height of such box knowing its width and the wall depth with header height.

 

image.thumb.png.fc248e514c6c172a0e3a5a5dff35a40f.png

Thanks!
 

Posted (edited)

@Discus84  Your question reminded me of the time my son asked me if I could determine if the couch he was planning to buy would fit in the frieght elevator of his aprtment building.

 

There are several way to solove this problem.

1. Make multiple copies of the red box at different angles and then position them with object snap against the walls and floor.

 

2.  Use the paramteric feature of AutoCAD to create  and constrain the wall and the box.

 

The following image shows only the angle contraint of the box.

image.png.a55d3ff4dc2ea6cd8439f05c8846efec.png

Tangency to the wall and floor is made via a dimensional contraint.

Here's the result of changing the box angle.

image.png.52492b5208682e89221fe16a94ffb584.png

The following shows the dimensional and geometric constraints.

image.png.9d1d0579ead7e224022d2d1015032996.png

Note, d3 constrains the box to be flush with the back wall and d9 with the floor.

 

You can edit the dimensions in the attached file to meet yout requirements.

 

 

box fit.dwg

Edited by lrm
  • Like 1
Posted

Did something similar for vehicle driveway checking, just a maybe make the box like 2mm smaller than true size and position and rotate, use intersectwith to see if the box and walls touch you will get nil if they dont.touch. Say stop when get points.

  • Like 1
Posted
7 hours ago, lrm said:

@Discus84  Your question reminded me of the time my son asked me if I could determine if the couch he was planning to buy would fit in the frieght elevator of his aprtment building.

 

There are several way to solove this problem.

1. Make multiple copies of the red box at different angles and then position them with object snap against the walls and floor.

 

2.  Use the paramteric feature of AutoCAD to create  and constrain the wall and the box.

 

The following image shows only the angle contraint of the box.

image.png.a55d3ff4dc2ea6cd8439f05c8846efec.png

Tangency to the wall and floor is made via a dimensional contraint.

Here's the result of changing the box angle.

image.png.52492b5208682e89221fe16a94ffb584.png

The following shows the dimensional and geometric constraints.

image.png.9d1d0579ead7e224022d2d1015032996.png

Note, d3 constrains the box to be flush with the back wall and d9 with the floor.

 

You can edit the dimensions in the attached file to meet yout requirements.

 

 

box fit.dwg 72.91 kB · 0 downloads

It works as expected...I'm running Autocad clone now and it's hard to get the constraint definitions but this certainly works ! Thanks

 

Posted

@Discus84  I have found that when creating geometry to be used with the parametric feature it is best not to create any lines or polylines orthogonal to the world.  E.g., Create you box somewhat rotated and then it's clearer what constraints you need, both dimensional and geometric constraints.

 

 

Posted

Try using `REGION` and `INTERSECT` to check for collisions as you rotate and slide the box through the opening. This method is more accurate than using a circle. The `REGION` command helps define the shape of the box and `INTERSECT` checks if it overlaps with the opening. It gives results because it follows the exact shape of  box instead of relying on a circle that might be too big or too small. You can test this by moving the box and checking for collisions at each step. It works well when the box is, at odd angles. Just make sure the box and the opening are properly defined as regions.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...