Array fails to update
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-05-13 01:29 AM
‎2016-05-13
01:29 AM
back again fiddling around with GDL and banging my head again.
I have made a nice simple tube object based on an array, each row of witch contains defining information: tube/or elbow/ extrusion, sweep, etc etc.
All hotspotted and nice and editable (handrails, grab-rails, rebar and hydraulics here I come!).
Except my code for adding and deleting segments does not work fully and its driving me crazy.
I have a flag in the array, position 5, if a particular hotspot is dragged beyond a threshold ahead of the segment, the flag is set to 2, behind the segment, 1. These are then used to run a "add segment" or a "delete segment" routine where the array is shuffled around, a default piece added or and existing segment deleted.
I am doing all of this checking and shuffling of the array in the Master script. While editing the object in 3d I can see the geometry update correctly, but I let go of the mouse button and it all goes back to the original geometry - like the array failed to update.
WHY??? Oh Why....?
The only way I can add or delete sections at the moment is by going into the information pallet and setting the flags in the array there. Then it sticks and the geometry updates fine.
Hoping someone else has slayed this very same dragon before.
gsm file atatched for poking at (and if you find it of use, have at it!)
A
Using Archicad 19
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-05-13 11:05 AM
‎2016-05-13
11:05 AM
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-05-13 12:39 PM
‎2016-05-13
12:39 PM
Well there Seneca that's a nice piece of code work.
Much more advanced than what I'm trying to achieve but clearly you understand how to capture user changes and update an array (if that's what you are using).
So do you have more to add than your youtube link?
Much more advanced than what I'm trying to achieve but clearly you understand how to capture user changes and update an array (if that's what you are using).
So do you have more to add than your youtube link?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-05-17 12:45 AM
‎2016-05-17
12:45 AM
Hi.
You can always use this code and expand it to your needs. It is a bit dated but still works. The example by SenecaDesign is based on this (unless I'm wrong).
The version with arcs is done but not out yet, but further ahead on the thread you can find another option by mariosmic (3DMD). Check them out.
Best regards.
You can always use this code and expand it to your needs. It is a bit dated but still works. The example by SenecaDesign is based on this (unless I'm wrong).
The version with arcs is done but not out yet, but further ahead on the thread you can find another option by mariosmic (3DMD). Check them out.
Best regards.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-05-17 01:44 PM
‎2016-05-17
01:44 PM
sinceV6 wrote:You are correct. I posted the object a while back but don't have the means to link to it. If someone else has it they can post it.
Hi.
You can always use this code and expand it to your needs. It is a bit dated but still works. The example by SenecaDesign is based on this (unless I'm wrong).
The version with arcs is done but not out yet, but further ahead on the thread you can find another option by mariosmic (3DMD). Check them out.
Best regards.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2016-05-17 03:57 PM
‎2016-05-17
03:57 PM
SenecaDesignLLC wrote:I may have it somewhere...
You are correct. I posted the object a while back but don't have the means to link to it. If someone else has it they can post it.