@merlight, @votan, @sirinsidiator Thanks for the replies.
@votan thanks for showing me a way to get the itemid from the link, your methods is tidier than the one I was messing with.
@sirinsidiator I have the itemids already but I will double check the ids I have match your list.
I was planning to use IsSmithingStyleKnown(styleItemIndex, patternIndex) but I will take a look at IsItemLinkBookKnown also.
not sure if you can still use the dwemer style if you learn it at lvl 9 of the skill then downgrade your skills. So maybe (just maybe) you'd need both checks : is book known and skill lvl, if you wanna test if the style is available. which makes your idea IsSmithingStyleKnown(styleItemIndex, patternIndex) more reliable. (Except if you can't get the pattern info outside the crafting station :/)