Gets the current annotation data for the specified layer into a variant byte array.
- v
- A variant to receive the annotation data.
- Layer
- The handle of a layer returned by the CreateLayer method.
- count
- The address of a long to receive the size of the byte array copied to the variant.
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
SaveLayerToDatabase (Visual Basic) | ![]() |
---|---|
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 |