Forum

Author Topic: Apply patch on multiple shapes  (Read 10634 times)

Lorenzoo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Apply patch on multiple shapes
« Reply #30 on: April 10, 2024, 10:57:47 AM »
Thanks for your reply Paulo  :)

When I type the same as you, I get the following 'NameErrors' (see attachment) - not sure why this is happening? Does it make sense?

Also, is there a way that I can find out which parts of the code need to be updated so that it will run in version v2.1  ?

Appreciate any and all feedback :)

Thanks
Loren
« Last Edit: April 10, 2024, 02:14:06 PM by Lorenzoo »

Paulo

  • Hero Member
  • *****
  • Posts: 1338
    • View Profile
Re: Apply patch on multiple shapes
« Reply #31 on: April 10, 2024, 08:48:31 PM »
lorenzoo,

you must define s as your selected shape as:
Code: [Select]
s = [s for s in chunk,shapes if s.selected][0]
s.geometry.coordinates[0]
Best Regards,
Paul Pelletier,
Surveyor