Already I did some research but still not sure what part of codes need to be modified to make it work so I hope to get some hints/helps.
Basically the goal is to add a custom widget onto my web map which can let users select/draw a rectangle (area of interest) and export the feature layers' data contained within it to .dwg file.
There is also another clue I got from this forum post .
(Please see the attached zip file - which I tried to add 2 feature layers to be extracted but it seemed to get error when I executed it)
Could someone please give me a hand or example code to realise this? 🙂