It is not clear what your quest is. Can you please elaborate a bit about the use case ?
Which Automation Reference are you looking at ? The PCB Automation reference (EEVX.2.x) has
Pads Property (Padstack Object)
Object: Padstack Object
Access: Read Only
Returns a collection of copper pads for the padstack object.
Padstack.Pads ([ByVal nLayer As Long])
(Optional) When specified, only the objects for nLayer will be returned. Use 0 (or omit the
argument) to return the objects for all layers.
IMGCPCBPads. A collection of pad objects (Pads) for the padstack object.
Ok, so you are doing some Library Padstack Editor work, correct ?
Yes, within a padstack, I try to userlayer1 using same pad that is currently on userlayer2
btw, in your previous answer, you make reference to padS which return collections, while "pad" return the pad on specified layer.
Reference say it's read/write, but looks like documentation is out of sync
Read this thread carefully: https://communities.mentor.com/message/65930#comment-65930
There are code samples and links to my automation templates in that thread. Feel free to use them however you like.
Take note that padstack objects are read-only in a PCB database. You can only edit them in a padstack library. In that thread I describe a scenario of using a library dedicated to padstacks only if you need to create custom padstacks for a particular design. If you do this a lot it will take a fair amount of planning and care to do it in such a way that you do not cause trouble on a future design by re-using a custom padstack without knowing it.