May be you can try the below JS lines, set as the default styles paragraph and character styles.
app.activeDocument.textDefaults.appliedParagraphStyle = app.activeDocument.paragraphStyles.item ("[Basic Paragraph]"); app.activeDocument.textDefaults.appliedCharacterStyle = app.activeDocument.characterStyles.item ("[None]");
Thanks for you reply, but im asking for cellstyle and tablestyles.
I think you said, if you create the new table all the cells around the stroke weight is applied around 0.5pt or some values. This value you need to set as 0pt right?
To understand what you really want, you should describe your specific problem.
Want to do this.
But result is that.
Screenshots would help. Also example files as IDML for downloading.
Or a code snippet that does not work as expected…
Message was edited by: Laubender
CellStyles and TableStyles come with a lot of properties tied to text formatting and positioning.
You could look up all these at Jongware's DOM documentation for InDesign ExtendScript:
I recommend the CHM file versions, because they are easily searchable.
HTML versions are also present. Some are online. Like this one:
With tables in mind you'll find your way around in this one:
It does not matter if you are using a different version of InDesign, the CS6 documentation for Tables, CellStyles and TableStyles should be the same for CS4, CS5, CS5.5 and CS6 and even CC. Of course properties of ParagraphStyles have changed and/or have been added in the course of InDesign's development since CS4.