Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

offsetting a hole in a PRISM, suggestions?

Anonymous
Not applicable
I have a triangle shaped object created with a PRISM. I need to cut a triangle shaped hole inside it that is equidistant (or basically offset) on all 3 sides. The width of my trim(determined by user) determines the offset.

Any suggestions on how to get the coordinates for the interior triangle?

The angles of the interior triangle are all the same as the overall triangles object.

This may be more of a math question than an
ArchiCAD question unless someone can tell me some secret offset command for inside a PRISM.
11 REPLIES 11
Anonymous
Not applicable
You could create a copy of the prism and use the "Resize" command to reduce the object the required amount. Be sure to select the center of the prism as the base point for the resize command.

Then use SEO with the newly created object to create the hole. Finally, place the new object on a hidden layer.
Anonymous
Not applicable
Can you do all that with scripting or do I have to give up the ability to select multiple trim sizes?
TomWaltz
Participant
How good are you with Trig and linear algebra? You could probably script it out, but it won't be pretty.

I think there are few objects like this in the Archicad library that you could look at for examples.
Tom Waltz
Anonymous
Not applicable
At the moment all I'm doing is spinning my wheels about different ways to use Sin, cos and tan to get the necessary angles. The initial object works correctly to change its shape based off user input roof pitches including when the roof pitches are not the same. The inner holes I've got working about 80% correctly. THey just aren't working for all cases. I'm trying to decided if I need an if-else loop to get the various cases to work right.

I don't think I do since the outer most layer works correctly. But yah, it's long and ugly.............
Anonymous
Not applicable
Taking a cue from Dominick's suggestion,
would it be possible to make a cutpolya with
the same parameters as the prism then
mul the cutpolya to make it proportionally
smaller and use it to cut the hole in the prism ?
The local origin of the prism would have to be
the geometric center of the shape.
Peter Devlin
Anonymous
Not applicable
I was able to make my object work by using an if-then statement for when the two pitches were not equal and a whole lot of math. I'm very curious as to how much shorter the code would be if I used the cutpolya command or attempted to script an SEO action. Thanks for all of the ideas.
Anonymous
Not applicable
I don't know what you are trying to make but it occurs to me
that the easy way to make this shape with the offset the same
regardless of the size and shape of the triangle is to make
the shape using the TUBE command.
Peter Devlin
LiHigh
Newcomer
Peter wrote:
I don't know what you are trying to make but it occurs to me
that the easy way to make this shape with the offset the same
regardless of the size and shape of the triangle is to make
the shape using the TUBE command.
Peter Devlin
Spot on! TUBE command is the way to go.
Howard Phua

Win 10, Archicad 19 INT
Anonymous
Not applicable
tube is the go, but I personally would love to see an answer to the question I have had many instances where offsetting a prism or a path is needed, but the trig is a headache. There must be an easy "plug in" bit of code using the cosine rule and co-ordinate geometry..
Any maths genius's or physics Nerds up for the challenge?