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

RE: [CONNECT C# Addin] Using ElementPropertiesSetter on Text Elements

$
0
0
ReplaceInModel on its self has always been kinda iffy for me.
Try this:

IntPtr elementRef = element.GetNativeElementRef();
// Do your PropertySetter here..

Element originalEle = Element.GetFromElementRef(_elementRef);
element.ReplaceInModel(originalEle );
originalEle.Dispose();

Also, you should probably wrap your PropertySetter with Using as it should be disposed.

Viewing all articles
Browse latest Browse all 7260

Trending Articles



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