AccusoftNotateXpress13 ActiveX DLL > NotateXpress Object : GetLayerIntoVariant Method |
The variant data will be in the format of the AnnotationType
The exception are that the NX_AnnotationType_I4W and NX_AnnotationType_TMS are not honored and will automatically try to use NX_AnnotationType_NXP
SubSaveLayerToDatabase(DBAsDatabase) DimvAsVariant DimcAsLong DimrsAsRecordset NotateXpress1.GetLayerIntoVariantv,NotateXpress1.CurrentLayer,c 'Oncethelayerdataisinavariant,youcanstoreitintoadatabase,etc. 'MsgBox"Lengthofdata="&Len(v) Setrs=DB.OpenRecordset("Layers",dbOpenDynaset) rs.AddNew rs.LayerName=NXP1.LayerName rs.NXPData.AppendChunkv rs.Update rs.Close Setrs=Nothing EndSub