2023-08-09 08:28 AM
How to try the OffsetEdge, OffsetPolyline, OffsetPolylineWithVectors... command?
GDL manual does not provide examples, please request assistance.
2023-08-09 08:42 AM
You mean the commands you can find in the Pet palette?
There are no GDL commands for these.
In what context do you want to use them.
Barry.
2023-08-09 10:31 AM - edited 2023-08-09 10:38 AM
For example, in GDL, if there is a series of point data, it can be assumed that these points form a poly, and then offset this poly to obtain a new poly and vertex data.
This is very useful in GDL.
I found the offset command description on page 632 of the document "05 GDL Reference Guide. pdf". But there are no examples,
It's difficult to understand how to use it.
2023-08-09 10:57 AM
Ah, that is an add-on.
I have never used it.
Having a quick look I can find no examples of using it.
Maybe one of the GDL gurus here has some information?
Barry.
2023-08-09 10:58 AM
Did not even know this existed...
From a quick read, have you:
Opened the channel for the extension
Created a container
Placed your vertices into the container
Set the OffsetParams / PolylineOffsetVectors
Defined a new array for your vertices
Run the fuction with the relevant "poly1" / "polyline1" matching your container
I do not quite get the GET portion, as it looks like it redefines your previous array?
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2023-08-17 10:58 AM
There is an example in the Example Library of the Libdev Toolkit: Polygon Operations Example.
And there are live examples in the library: Round Table 01, openingsymbol_m.
The addon always creates new polygons as a result of an operation. The original ones aren't modified, those can be reused for further operations. There are many cases when an operation results in different number of polygons than the input. For example offseting an edge of a concave polygon can give distinct polygons.
2023-09-05 12:01 PM
one example is much too few! Maybe 30 examples with different approaches would be enough! I tried it several times but didnt get this things to work for me and had to make my own GDL-solutions for things like that.. Many commands in GDL-Cookbook would need much more exaqmples to study for new users. Graphisoft should give muche more examples to us..
2023-09-05 02:11 PM
Sometimes I feel a little dumb trying to use the examples. Even the GDL center is sometimes having a single example that passes the message that the thing is "obvious", but at the end you're dropping 4 hours into it ant not being able to use it sometimes.
Like MEP coonection, I had a lot of trouble to figure it out.