Here you go.
You can also check or change the properties of the fillColor, strokeColor, strokeType etc. from the pageItem.
Thanks for your reply. But i need to check the stroke weight of placed illustrator file. Not indesign pageitem. I don't know is it possible or not. Can you please explain in that angle?
Thanks in advance.
every placed Illustrator file on an InDesign page is a closed container. You cannot look into it directly using scripting with InDesign.
However you can open the placed file by scripting in Illustrator (see bridgeTalk in the scripting documentation and elsewhere in this forum) and using Illustrator's own scripting engine to gather information of used paths.
For scripting Illustrator see:
No worries Karthi.
The workflow I use for vectors in InDesign is open the Illustrator file, copy the vector and paste in InDesign (not placing), from there you have all the options open to you inside InDesign as it is now an InDesign vector (this can all be done via script as well).
I understand that this isn't what you're doing so Uwe's advice is going to be the best for you I think. Good luck!
Hi Brett and Uwe,
Thanks for your suggestions. It is really useful.