Allplan Fórum

[Otázka] CREATE A HOLE IN THE BOX


Hello guys!

As the title, I'm trying to create a hole in the box.

I use Cuboid3D to create my box but I don't know how to make a hole. I read about ExtrudedAreaSolid3D in Examples folder but honestly I don't really get it.

This image is my target.

Can anyone show me the way or your example or document in somewhere?

Thanks!

Přílohy (1)

img
Capture.PNG
Type: image/png
Staženo 15
Size: 14,46 KiB
1 - 6 (6)
  • 1

I still need a hand so if anyone have any idea please reply below.

Thanks for your time!

Hi,

Create a cylinder and subtract it from the Box.

Jurij

Stecke im Allplan seit 1995
Hotline für Kunden in Slowenien seit 1997

Citoval Jurij_Sket
Hi,
Create a cylinder and subtract it from the Box.
Jurij

I use Polyhedron3D.CreateCuboid to create a cuboid and Cylinder3D to create a cylinder as you said, afer that, I use CreatePolyhedron(myCylinder, int) to create a Polyhedron3D because I want to use MakeSubtraction(Polyhedron3D,Polyhedron3D) function. But in this case, subtraction function retrun error MakeSubtraction(tuple, Polyhedron3D).

I really don't know how to say clearly, my bad English, so what subtraction function do you use in this case?

Sorry, I didn't notice "PhytonParts" - this is not my field, so unfortunatelly I can't help you.

Jurij

Stecke im Allplan seit 1995
Hotline für Kunden in Slowenien seit 1997

Hello,

Hope that's you already solved this problem.

If not, you can try:
- Create Box by BRep3D.CreateCuboid()
- Create Hole by BRep3D.CreateCuboid()
- make subtract using: err, brep_res = AllplanGeo.MakeSubtraction(Box, Hole)
The result is the Brep3D: brep_res

1 - 6 (6)
  • 1

https://connect.allplan.com/ používá cookies  -  Více informací

Souhlasím