Is it possible to find the dimensions of SMD/Through pins (circle/square/rectangle) of cells/components through automation code?
You need to find this dimension in project components or in yours Central Library?
I need to find in project components
I think you can use NeutralFileExport Object (Siemens Digital Industry Software: Sign In )
This Object contains parameters for exporting PADS Data Property:
Object: NeutralFileExport Object
Sets the option to include pads data. This includes pin and via padstacks, pin types, drill dimensions, pad shapes, and layers.
NeutralFileExport.IncludePadsData = True | False
Boolean. If True, include pads data. If False, do not include pads data.
oNeutralFileExportEngine.IncludePadsData = True
I am looking for direct way to find the pad dimension similar to 'Geometry' .
By calling out Geometry property for placement outlines/obstructs we can find attributes listed below.
Similarly is there any way to find dimension of the pad by calling 'Dimensions' and 'find property'. ?
Pin.CurrentPadstack.Pads(0) will get you the collection of pads for all layers of the pin. Then, for each pad, Pad.Layer will indicate the layer, and Pad.Geometries will get you the collection of shapes on that layer.
FYI, Pin.Dimensions refers to the literal drawing-based measurements between the pin and some other object.
Got it . Thanks a lot.....
Another way is to open the padstack editor with automation, go over each pad and store the dimensions using the shape/height/width property.
And then you can check each pad with pinObj.pads(nLayer) for the layer(s) you want and retrieve the dimensions you collected from the padstack editor using the pad name as the identifier.
Retrieving data ...