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

open Profile follows open path in 3d

Hmooslechner
Moderator
Archicad 18 open Profile follows open path in 3d:



its an Archicad 18 3D profile-polygon:

in a few days at Bimcomponents:

"DynPolySchrIstTubeQuerschnitt"

before there downloadable:
https://www.dropbox.com/s/1c3svw53ipdp1a4/FreiformPolygon.pln?dl=0
my Dropbox. Its an AC18EduAut - file

Youtube english:

https://www.youtube.com/watch?v=jWLnMUIT6yA
AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
48 REPLIES 48
sinceV6
Advocate
Hi.

Issue with z coordinates in 2D in original Dynamic Polyline base code object thread:

http://archicad-talk.graphisoft.com/viewtopic.php?t=43721

In 2D, when moving a point on top of the previous one, z coordinate is not carried over. Has to do with removing points and the way the script iterates from the first point to the last. Never had time to take another shot at solving it, but not a major issue for me.

Best regards.
Here is the updated object with the x,y,z replacements. its way less painful to look through now for sure. the tube is working well as long as i leave the base locked. Ill probably fix that next. I am still getting the material to map the way i want, probably something easy im just missing.

https://copy.com/G0GN8Z4Bs34SmOsq

edit: its a new link now i fixed more things or made them work with my tube, still struggling to map the material along the path of the tube
Okay, Here is my final base excluding the arcs. the tube works in all scenarios if the base is locked or not and if the first and last points are the same. and i got the materials to map correctly! at least so far it is working.

Its crazy how the same thing can be accomplished in such different ways. I have no clue how Hmooslechner mapped the materials in his object, i still read through it and get confused. but here it is, let me know what you guys think


Edit: the material mapping currently is only on x and y. im still working on the z

Edit: okay i got the 3d mapping to work now too.




https://copy.com/R39vEN0JWisTqFX4
Now I can post an object relative to this thread! ha ha, here is my version of your open profile to follow open path. I still have to work out the kinks in the z space but it works with its material mapping in x and y, the z just skews the tube with out flat spots. ill try to add that next and then the 2d stuff, i added a project for now but i plan on changing it to be hotlines with a fill too.

from what i can tell other than the z it works almost just like yours you all have been some major inspiration.

https://copy.com/rIYwGGJuGgN0AFTy


and here is my initial attempt to loop the polyline infinite, i have the master and parameters scripts working (or so i think) but im lock in place with the current errors. it would be cool if we can get it to work


https://copy.com/WPAzuJVc8K0Tm2Et
Mario Sacco
Expert
Hmooslechner wrote:
Hi Mariosmic!
Thx for the flowers..
Some ideas to Your polyline:
........
Hi Hmooslechner.
I read only now your message. I don't understand sometime I don't recive notify.
I worked hard and created a final objects editable both 2d and 3d as a polyline, adding new point and curve. It's possible. But it's part of an objects I'm selling and I can't share it. I need to get out the only part of the code of the polyline to share it. I don't know if I'll have ever time. I promise you I'll try. Let me know what is your problem now; I'll try to give you the solution with words. I'm also updating the objects 3DMD Polyline Fence and 3DMD Polyline Path with the same macro; but the code is locked because I use it to create selling objects.
I don't have time to download your objects and test them; please share photos.
Here the video of the object 3DMD Polyline Rail Panel that uses the polyline.

http://youtu.be/Czm-tmcHpls

A limited dimension version of the objects is on BIM Components
https://bimcomponents.com/GSM/Details/20056
MacBook M1 Max 64GB- OS X 12.2.1 - Archicad 27
https://www.archiradar.it/en/
Hmooslechner
Moderator
Hi Mariosmic!

Your Railing-part is obviously the best railing-Object for Stairs i have seen so far!

I will spread Your Video - in our region - to raise Your chances for selling it - if You like! Now its all going the right direction! i hope You are very proud of this!

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
Hmooslechner wrote:
They made a function-change possible by using the normal object-dialog. That is a little bit "stone-age" in my opinion...

My idea goes this way: (not really my idea - it has been done similar in the random city object)


Place a little pictogram near the polyline in the drawing-editor - with a hotspot-switch. This should be possible to be turnd off after the operations.

If the switch is in the normal edit-field - the edit of the cornerpoints is possible.
If the switch is in the field for "growing" - the same hotspot works for growing of the polygone-shape
If the switch is in the field for segment-growing - the middle-point grows just this one segment.
If the switch is in the field for Corner-rounding - the same klick on the hotspot rounds the corner
If the switch is in the field for rounding the segments - the middlepoint works to round it like Your functionality.

This could be very near the normal polygon-behaviour in Archicad like editing slabs or hatches with the pet-pal.


The next thing i am thinking of - is: to use just one simple parameter for one polygon - one array with three dimensions for x, y, z and maybe some Flags for function changes - but that is future-music.. So it would be much easier to work with it in GDL - to copy the functionality for more open polygons in one GDL

In my last objects where i made three open polygons-profiles following an open path - it had to copy Esteban ramos-code in the 2D-GDL, the Masterscript, the Parameter-script and the 3D-Script and had to change the name of every parameter for each different polygone x+y (+ Z). The possibility of making some mistakes is very high - and very time-consuming for each profile.

Just one parameter-Array for all of this should be much easier and easier to understand... to alter and to use with less mistakes!

I honestly can't believe i hadn't though of this single array idea. nice. so i applied it, well mostly. take a look


edit: it seems doing this created a bug with adding points... attempting to fix it but not sure what is causing the problem or how its is i guess

https://copy.com/CH9DBzzEu8cHrd0R
Well i got my arcs started... they are half working in the polyline, still have to apply them to the tube. but you can edit the profile in 3d and the second profile can be a hole

https://copy.com/lFKKPyJ2F2nYRco0
Mario Sacco
Expert
Hmooslechner wrote:
Hi Mariosmic!

Your Railing-part is obviously the best railing-Object for Stairs i have seen so far!

I will spread Your Video - in our region - to raise Your chances for selling it - if You like! Now its all going the right direction! i hope You are very proud of this!

Thank-you Hmooslechner. I'm working on many other parameters. It's very hard. But it seems there are not obstacles in the languages. It needs only time.
Now I'm working on moving and adding new post. In a 3d polyline arc/straight there are a huge amount of variables. Sometime I lost!!!!

I'd like to share my work. But in this forum there is not a section for these kind of post, such us: "what are you working on? Post here!"
It could be nice have a section like this.
MacBook M1 Max 64GB- OS X 12.2.1 - Archicad 27
https://www.archiradar.it/en/
boatingcow
Booster
These are brilliant. I'm slowly getting to grips with GDL and I wonder if you have a version that works in ArchiCAD 17 to look at the code? Thanks!
ArchiCAD 24 | Dell Precision 5750 | 32GB RAM | Nvidia RTX 3000 6GB | Windows 11 Pro