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

PolygonOperations

Pertti Paasky
Expert
There is a macro object called "PolygonOperations.gsm" in the objectlibrary 12. What objects call this macro? Is it possible to capture Archicad Complex Profiles to be used in gdl objects?
For example a tube could use different profiles created by Complex Profiles.
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
15 REPLIES 15
Pertti Paasky
Expert
Pjotr wrote:"the trick is in pouring one array to another such way that adding or removing point is found out in the right position"
-good idea! A new point can distinguish it´s position if it is moved between existing points. Pouring ? any examples?
I´m a poor pourer but it doesn´t stop me trying.

The oher thing, saving profiles, may be done by "polygon operations extension" GDL-manual page 328. Needs studying...

Petri´s Mesh3d -object is a fine exaple of smart programming - thank you Oliver of this link.
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
ztaskai
Graphisoft Alumni
Graphisoft Alumni
Pertti wrote:
There is a macro object called "PolygonOperations.gsm" in the objectlibrary 12. What objects call this macro? Is it possible to capture Archicad Complex Profiles to be used in gdl objects?
For example a tube could use different profiles created by Complex Profiles.
This macro was made with the same mindset as all others in the Basic Library: to give a quality implementation of useful generic task. In this case, this function is to provide some basic geometric operations with points, segment and polygons. It doesn't have any background magic in it.

Unfortunately, there is no way to use the complex profiles of ArchiCAD in GDL, yet(!). You shouldn't wait for that with any of your elements because it won't come in AC13 and there is no official promise for a given date.

Until then, dealing with polygons in GDL is a pain, indeed. I think you already do it as it can be done - via arrays of coordinates.
Olivier wrote:
About your first question, I don't find examples in 12 Library, using "PolygonOperations" macro.
Doing this complicated function is more efficient to implement in C++, that's why we made a new, faster and more rich implementation in a GDL add-on. It is called "PolyOperations", you can read about it in the GDL Reference Manual 12 from page 326. It provides a much more sophisticated way for executing operations on polygons.

We replaced all uses of the v11 macro by this add-on in v12.

Regards,
Zsolt
Zsolt Táskai
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...
Anonymous
Not applicable
Zsolt,

Thanks for the clarification, that's very helpful.
ztaskai wrote:

Unfortunately, there is no way to use the complex profiles of ArchiCAD in GDL, yet(!). You shouldn't wait for that with any of your elements because it won't come in AC13 and there is no official promise for a given date.

Regards,
Zsolt
I hope for it soon - as it would be a quick workaround for badly joining columns with beams, beam& beams and so on....

Best Regards,
Piotr
Erika Epstein
Booster
ztaskai wrote:
Pertti wrote:
There is a macro object called "PolygonOperations.gsm" in the objectlibrary 12. What objects call this macro? Is it possible to capture Archicad Complex Profiles to be used in gdl objects?
For example a tube could use different profiles created by Complex Profiles.
Unfortunately, there is no way to use the complex profiles of ArchiCAD in GDL, yet(!). You shouldn't wait for that with any of your elements because it won't come in AC13 and there is no official promise for a given date.

Until then, dealing with polygons in GDL is a pain, indeed. I think you already do it as it can be done - via arrays of coordinates.

Zsolt
When I first read Pertti's question I thought he was describing how the MEP routing works: various sectional profiles called along a path. How then does MEP work?
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
ztaskai
Graphisoft Alumni
Graphisoft Alumni
Erika wrote:
When I first read Pertti's question I thought he was describing how the MEP routing works: various sectional profiles called along a path. How then does MEP work?
MEP works by utilizing lots of API, GDL and even some inside-ArchiCAD functions. Basically, it implements the polygon editing in C++ in an add-on using API functions of ArchiCAD. Then it places GDL elements along the routed path. It's quite complicated. It's good that you mentioned it though - I forgot to mention the API based solution before.

Regards,
Zsolt
Zsolt Táskai
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!