Same as always ...
I can't divulge the code as a whole, but I can offer this tidbit just to see what is going on ..
If Activedocument.ActiveSpace = AcModelSpace Then
Set blk = Activedocument.ModelSpace.InsertBlock(InsPt, BlkName, Xscl, Yscl, Zscl, 0)
Else
Set blk = Activedocument.PaperSpace.InsertBlock(InsPt, BlkName, Xscl, Yscl, Zscl, 0)
End If
MyAtts = blk.GetAttributes
For X = 0 to Ubound(MyAtts)
strTag = MyAtts(X).TagString
Select Case strTag
Case "IDNO"
MyAtts(X).TextString = "Some random text previously defined"
' lots more case statements here
End Select
Next X
I did just notice that in certain circumstances, the block is programmatically rotated after the attributes are filled in like such ..
blk.Rotation = RotAng
but programmatically, it should not cause the attributes to be changed from the original rotation settings in the original block.
I think I'll try making sure the blocks are at 0 deg only when inserting them and see if it makes a difference.