I have one of the lines in my macro that updates the title block. It goes like this:
Drawn = drawingdoc.CustomInfo2("", "DRAWN-BY")
I would like to do a center justification of Drawn. Could someone help me how to get this going?
I have declared Drawn as String.
I went through some of the posts on this subject but could not get my macro working. Any help in this regard is appreciated.
I recommend researching how to get the annotation object from the drawing. Once you find that and cast it to an INote object, then you can call this method:
2012 SOLIDWORKS API Help - SetTextJustification Method (INote)
Without more information to go on, I doubt you'll get much more feedback than this. Could you post an example drawing/model as long as your macro file so that we can see exactly what you're doing?
Retrieving data ...