On 09/20/2016 10:15 AM, Morten Leikvoll wrote:
> On 19.09.2016 15:50, Richard Hammerl wrote:
>> Am 15.09.2016 um 12:23 schrieb Morten Leikvoll:
>>> On 15.09.2016 12:16, Morten Leikvoll wrote:
>>>> I did some deeper digging here and found ingrouped wires inside objects
>>>> that were not themself ingrouped, or even at the page where the context
>>>> function was triggered.
>>>> I was browsing schematic->sheets->nets->segments->wires and segments and
>>>> their ancestors were not part of ingroup even if the wire was. I guess
>>>> those are false ingrouped.
>>>>
>>>> I see I may add some redundancy to my script to only pick those ingroups
>>>> where the parent is also part of the ingroup, but still this is flaky.
>>>>
>>>
>>> Another interesting issue.. Those false ingrouped wires were something I
>>> moved to a different sheet not long ago. When just grouping them again,
>>> the false ingroup flags seems to get cleared.
>>>
>>> Maybe the context ingroup function should get a new function name, like
>>> incontext()? I guess its not too late to do that, flaky as it has been.
>>> Logically they are totally different, and using the ingroup() for this
>>> seems to be a horrible shortcut.
>>>
>>
>>
>> We tried this and could not reproduce the problem. Do you have any
>> further news on ths in order to reproduce it reliable meanwhile?
>
> I can reproduce this now. As I thought it seems to be related to moving schematic across pages.
>
> How to reproduce:
> 0-Unzip the files attached using the opensource 7zip tool (free download at
7zip.org)
>
> 1-Use the attached tiny test project
>
> 2-In the schematic editor, run the attached ulp using "run test_wire_context install" to install
> context menu
>
> 3-Group and move everything on page 1 to page 2
>
> 4-Undo
>
> 5-Rightclick the the wire between C3 and C4, get a multiple ingroup item error message and read the
> ingroup() status list in debug.txt.
>
>
We also could reproduce it and fixed it for next beta.
Thanks for your effort!
Regards,
Walter Spermann
--
----------------------------------------------------------------------------------------------------------
Walter Spermann
Software Development
CadSoft Computer GmbH
Pleidolfweg 15
84568 Pleiskirchen
Tel.: 08635/6989-10
www.cadsoft.io
----------------------------------------------------------------------------------------------------------