Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4331

Preventing reloading the same attachment file by MSTN-Connect 10 Update 14 via VBA as it was in MSTN 8i with error -2147220766.

$
0
0

Dear all,

i'am setting my Attachments Attachments with a Command:

Set oReferenz = oReferenzen.AddCoincident1(RefFile, "", "", "", msdAddAttachmentFlagCoincidentWorld)

In MSTN 8i was tested whether a Reffile is already loading.   In this case i've got oReferenz is Nothing and  a Error -2147220766.
In a MSTN Connect i am getting a same Attachment with a Suffix Ref, without any Errors.

My Standardsetting for Loading of Attachments is: MS_REF_DEFAULTSETTINGS=display=1,snap=1,locate=1,treatAsElement=0,trueScale=1,useLights=0,saveRelativePath=0,scaleLineStyles=1,ignoreWhenNesting=0,displayRasterRefs=0,newLevelDisplay=fromconfig,nestMode=none,nestDepth=1,nestOverrides=allow,useAnnotationscale=1,plotAs3D=0 

How can i prevent of reloading same Attachments in MSTN Connect?

Thank you.


Viewing all articles
Browse latest Browse all 4331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>