Did you tried like this
myObj.strokeWeight = "2pt";
I have tested it with a rectangular frame, it worked for me.
Thanks for your effort. Yes. I tried that too. if the line thickness is 2pt, the line thickness dialog box will change to 'medium' and if pt size is 3 then the property of line thickness will change to 'thick' but the line style remains 'solid' and i would like to change to 'bevel' or 'inset' depends on the condition.
Can you just me the example of what you want in indesign (not in PDF). I am not clear what you mean. May be I understand wrongly.
obj1.strokeWeight = "2pt";
obj1..strokeType = app.activeDocument.strokeStyles.item("Dotted");
obj2.strokeWeight = "2pt";
obj2.strokeType = app.activeDocument.strokeStyles.item("Solid");
Try the above line to apply a stroke style to a frame object.
Thanks. Unfortunately this is not what i require. What i require is, i would like my forms to use the effect 'inset', 'bevelled' in acrobat. Since the PDF been created using indesign, i would like to know how to do this using indesign. For example the below attached form layout has a bevelled rectangular box due to the property 'inset'. I would like to know how to set value for 'line style column' the default value is 'solid'
@bala281972 – I fear you have to script Acrobat to get the effects you want…