• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

rhino - generation average plans

  • Thread starter Thread starter paolodemichiel
  • Start date Start date

paolodemichiel

Guest
Hello, I would like to ask everyone if someone knows a procedure, a command, an application or even a program to automatically extract the average plan of a solid, typically a parallelepipedo, in rhino.

I explain better; for meshare in automatic of the constructive details of metal structures in rhino I have to import precisely in rhino-type files. therefore the structure must be drawn in advance in rhino: as the mesh in rhino is made with flat elements type "plate" the design in rhino must represent the average plan of the steel plate.
often happens to have at the disposal of the files obtained from the tekla that if imported in rhino (files type .xml I think) they represent a steel plate like a solid and at what point I am forced to draw by hand, slab by slab, the average plan: this thing is feasible if the structure or detail is not very complicated but becomes rather laborious and expensive if you have to do whole structures of large size or complex construction details.

I ask precisely if someone knows a fast and quick way to get in rhino the average plans (exemptively simple solids like the parallelepipedo) starting from a solid geometry.


Thank you.
 
Bye-bye
If I can allow you I would advise you to contact harpaceas that most likely will help you find the most suitable way to get what you need.
Keep in mind that tekla also allows you to be programmed and so you could create or create an application from a programmer that generates the export file to feed to strauss without having to pass through rhino.
 
...strandà already tried, but without success! ! !
to the eye and cross I would say that using the __areacentroid command you should save some time, at least in finding the point through which the average plan of a solid (and not) complex stunt passes.

question : but the average plan is parallel to what reference? to one of the parallelepiped faces or one of the absolute planes?
 
Okay thanks for the board.
As soon as I can try!

Yes, I intend to generate the medium plane parallel to one of the faces of the parallelepiped. This is steel plates with two dimensions much greater than the third (thickness), I must generate the average plane or that placed half the thickness of the slab.
 
Okay thanks for the board.
As soon as I can try!

Yes, I intend to generate the medium plane parallel to one of the faces of the parallelepiped. This is steel plates with two dimensions much greater than the third (thickness), I must generate the average plane or that placed half the thickness of the slab.
In this case I would proceed like this:
1) centroid area to find the central point of parallelepipedo (point 1 )

2) _extractsrf command with copy option to extract (copying) one of the solid faces

3) areacentroid on the newly extracted surface to find its average point (point 2)

4) _move command moving the surface extracted from point 1 to point 2

the whole could be enclosed in a macro that sequences the commands, associating it with any key to put it running
 
Okay thanks for the board.
As soon as I can try!

Yes, I intend to generate the medium plane parallel to one of the faces of the parallelepiped. This is steel plates with two dimensions much greater than the third (thickness), I must generate the average plane or that placed half the thickness of the slab.
a curiosity.... volleyball games?:smile:
 
have they not been able to answer you or is it too expensive or it takes too long to create a plugin that makes the export of the average plans?
no need for a plugin to create the average plans...
this simple Script extracts the average plane of a space oriented cmq parallelepipedo...poor extra instructions and it is possible to expand it because it computes the plans also of thousands of parallelepipeds, and of course exposes them automatically

-_runscript

dim strobject,area

area=0.0
strobject = rhino.getobject("select polysurface for calculation medium plan", 16)

if rhino.ispolysurface(strobject) then

(False)
surface=rhino. explodepolysurfaces (strobject)
end if

for each surface surface

arrmp = rhino.surfacearea(superfice)
if arrmp(0)> area then

area=arrmp(0)
sup=superfice

end if
' rhino.print "the surface area is: " & cstr(arrmp(0))

next
rhino.selectobject (sup)
arr1 = rhino.surfaceareacentroid(sup)
arr2 = rhino.surfaceareacentroid(strobject)
plan_medio=rhino.copyobject (sup, arr1(0),arr2(0))
rhino.deleteobjects surfaces
rhino.selectobject piano_medio
rhino.enableredraw(true)
)
 
no need for a plugin to create the average plans...
this simple Script extracts the average plane of a space oriented cmq parallelepipedo...poor extra instructions and it is possible to expand it because it computes the plans also of thousands of parallelepipeds, and of course exposes them automatically

-_runscript

dim strobject,area

area=0.0
strobject = rhino.getobject("select polysurface for calculation medium plan", 16)

if rhino.ispolysurface(strobject) then

(False)
surface=rhino. explodepolysurfaces (strobject)
end if

for each surface surface

arrmp = rhino.surfacearea(superfice)
if arrmp(0)> area then

area=arrmp(0)
sup=superfice

end if
' rhino.print "the surface area is: " & cstr(arrmp(0))

next
rhino.selectobject (sup)
arr1 = rhino.surfaceareacentroid(sup)
arr2 = rhino.surfaceareacentroid(strobject)
plan_medio=rhino.copyobject (sup, arr1(0),arr2(0))
rhino.deleteobjects surfaces
rhino.selectobject piano_medio
rhino.enableredraw(true)
)
Bye-bye

if the marius script works in rhino you solved your problem
 
Good morning.
Thank you for your help.

Unfortunately I have not yet been able to implement the script of mariuss.r but after a short resumption of the fundamental notions of programming it will be a pleasure to try it! !anzi, any advice on how to move the first steps on macro programming (view basic for example) is well accepted!! so you can complete the script of mariuss.r.

now I would be ready for the next step to that of the generation of the average plans: After generating the average plan, it is obviously a matter of collecting the surfaces if they do not intersect. By the way, I made a hand sketch.

for bimchecker : the fact that a first attempt had not gone to good end was reported to me, I had not personally interested in it before! ! !


for mariuss.r: handball game.. do we know each other? ?

Thank you all again. See you soon.
 

Attachments

  • Cad3D_Sketch.webp
    Cad3D_Sketch.webp
    35.7 KB · Views: 5
Good morning.
Thank you for your help.

Unfortunately I have not yet been able to implement the script of mariuss.r but after a short resumption of the fundamental notions of programming it will be a pleasure to try it! !anzi, any advice on how to move the first steps on macro programming (view basic for example) is well accepted!! so you can complete the script of mariuss.r.

now I would be ready for the next step to that of the generation of the average plans: After generating the average plan, it is obviously a matter of collecting the surfaces if they do not intersect. By the way, I made a hand sketch.

for bimchecker : the fact that a first attempt had not gone to good end was reported to me, I had not personally interested in it before! ! !


for mariuss.r: handball game.. do we know each other? ?

Thank you all again. See you soon.
Bye-bye

the script only generates the surfaces that represent the average planes, then you will have to extend the sides until the surfaces intersect.
the comnado to use is _extendsrf, at that point you can apply a fillet with r=0 to the surfaces.

unfortunately these last two operations I see difficult to do with a script

ps: no we do not know each other, I follow only a little the world of volleyball and I remember having found references about you:smile:
 

Attachments

  • piani medi.webp
    piani medi.webp
    51 KB · Views: 4

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top