The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Topics specific to the scripting and development of Library Parts and Libraries using Param-O or the Geometric Description Language – GDL. (Example: How do you use “REQUEST” GDL commands?)

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, Gordana Radonic, nbalogh, mnguyen, gkmethy, rmasaki, Akos Somorjai, Csilla Mai, Peter Baksa

By JGoode
#317288
Hello,

I've attached an image and I was wondering how to do it. Firstly, is this achievable?
The idea is basically to create a rounded shape but allow these dimensions to be added in to create it.

Any help would be much appreciated.
Thanks
Attachments
Curved example.JPG
Curved example.JPG (26.83 KiB) Viewed 590 times
By Braza
#317315
JGoode wrote:CAN I CREATE THIS...?
I presume, by the fact that you can enter different dimensions on each parameter, that your circle could end being a double eccentric ellipse, right?
Could you elaborate on what the object is for?
User avatar
By Joachim Suehlo
#317320
If you want to put in the dimensions in the floor plan, this is only possible with moveable Hotpots, which also have a numerical input field; but I think these input fields are not placed in the center and are only visible when you click on the hotspot.
By Braza
#317322
Absolutely right Joachim.
I didn't get the parameter direct input value part.
It looks like some Revit user wish. Right JGoode? :wink:
By JGoode
#317397
Sorry, the dimensions would be entered on the interface and I'd potentially have dynamic hotspots at the top, bottom and sides of the 'circle' that would end up not being a circle. The use of this would be for our tree object where in plan they can be a funny shape and therefore we want to reflect that and have a bit more control instead of a just a circle! :D

The query was more so about creating the shape than it was inputting the dimensions!

I hope this makes a little more sense now, I was a little unsure as to how to explain it to begin with! :D

Braza, to answer you question... I am not a Revit user! :D Just trying to figure out if ArchiCAD has the functionality in GDL to do something a little more outside the box.
By Braza
#317400
JGoode wrote:Braza, to answer you question... I am not a Revit user! :D
Congratulations! This is a good start. :D
JGoode wrote:Sorry, the dimensions would be entered on the interface
Do you mean the User Interface inside Object Settings?
If so... This is perfectly doable.
By JGoode
#317402
I did mean that but I'm very happy with creating the User Interface but it's the creating the actual geometry I'm struggling with as I want it to be a continuous arc rather than a point like a regular prism with curved sides would create. Does this make sense?
#317405
Try this in your 2d script.
Code: Select all
HOTSPOT2 0, 0
mul2 lRightWidth, 1
ARC2 0, 0, 0.5, -90, 90
del 1

mul2 lLeftWidth, 1
ARC2 0, 0, 0.5, 90, 270
del 1
Hope this helps.
#317406
Ok. Forgot to add the Height parameters. Here it is:
Code: Select all
HOTSPOT2 0, 0

mul2 1, lTopHeight
mul2 lRightWidth, 1
ARC2 0, 0, 0.5, 0, 90
del 1

mul2 lLeftWidth, 1
ARC2 0, 0, 0.5, 90, 180
del 1
del 1

mul2 1, lBottomHeight
mul2 lRightWidth, 1
ARC2 0, 0, 0.5, 270, 360
del 1

mul2 lLeftWidth, 1
ARC2 0, 0, 0.5, 180, 270
del 1
del 1