RE: [CE5 C#] DgnPrimitiveTool with WPF
Oh yes, a subclass works for DgnPrimitiveTool too, quite complex but I did it.But what is the following (from document) meaning?[quote user="ToolSettingsHost"]But a DgnPrimitiveTool class will be...
View ArticleRE: [CONNECT SDK] .NET Framework version
Because in the "ManagedToolsExample" has the same error. And I spent lots of time to find out the "Illegal characters".[quote user="Jon Summers"]Those two lines have the same meaning in...
View ArticleRE: [CONNECT SDK] .NET Framework version
Hi JonError message you are receiving from TargetFrameworkMoniker has nothing to do with framework version.It is simply message about illegal path name.Path...
View ArticleRE: [CE5 C#] DgnPrimitiveTool with WPF
Hi,[quote user="clever_anthony"]Oh yes, a subclass works for DgnPrimitiveTool too[/quote]I am not quite sure what is the meaning of this sentence. ToolSettingsHost is class responsible to host WPF...
View ArticleRE: [CE5 C#] DgnPrimitiveTool with WPF
We are in the same SDK version. I saw it in the MicroStationAPI (just was to seek if any example).
View ArticleRE: [CE5 C#] DgnPrimitiveTool with WPF
[quote user="clever_anthony"]I saw it in the MicroStationAPI (just was to seek if any example).[/quote]Ok, I see it now. Well, it seems this information is at least partially stil...
View ArticleRE: [CE5 NET API] Import Model from non-active dgn file
Start with the DgnFile Class in DgnPlatformNet help.You can use DgnFile.CreateNewModel() on your active DGN file.Open another DgnFile as your source. Then DgnFile.CopyModelContents() to copy elements...
View ArticleRE: [CE5 NET API] Import Model from non-active dgn file
Hi Jon,I will try your suggestionthanksNenad
View Article[CE5 NET API] Import Model from non-active dgn file
Hi,I want to import model from dgn file into active design file but I do not know where to start.thanksNenad
View ArticleRE: [CE5 c#] using DgnDocument
[quote user="Nenad Poljcic"]bool test = System.IO.File.Exists("C://Temp//Test3d.dgn");[/quote]When using a forward slash (/) as a path separator you don't need to...
View ArticleRE: [CE5 c#] using DgnDocument
Hi Jon,Thanks for help, DgnDocument object is know created.However I need more help with DgnDocument.After excuting line DgnDocument.Access access= targetDgnDocument.AvailableAccess; and checking...
View Article[CE5 c#] using DgnDocument
Hi,My system is VS 2015, Framework 4.6.1, c#I am trying to use DgnDocument in order to copy Model from one dgn file to another.It looks like function DgnDocument.CreateForLocalFile does not find dgn...
View ArticleRE: [CE5 c#] using DgnDocument
[quote user="Nenad Poljcic"]I could see in properties that no DgnFileOwner object is created[/quote]You mean this?Debug.Assert (null != dgnFileOwner, "dgnFileOwner is null");
View ArticleRE: [CE5 c#] using DgnDocument
I use "Attach to Process" to attach VS to microstation.exeThen I create break point and just look at properties to each variable/object. If I continue to execute code all objects return "Empty"Nenad
View ArticleRE: [CE5 c#] using DgnDocument
[quote user="Nenad Poljcic"]DgnFile dgnF = dgnFileOwner.DgnFile;[/quote]Try loading the DGN file...DgnFile dgnF = dgnFileOwner.DgnFile; StatusInt openForWriteStatus = 0; DgnFileStatus status =...
View Article[CONNECT C++] mdlCell_getLibraryObject
The MicroStationAPI help for mdlCell_getLibraryObject...StatusInt mdlCell_getLibraryObject ( DgnFileP * ppLibraryObj, WCharCP pLibName, bool unused ) Parameters [out] ppLibraryObj pointer to the cell...
View ArticleRE: [CONNECT C++] Issue with TextBlock->FindText() and TextNode Elements
Hi Bruce,[quote user="Bruce Reeves SRNS"]It will crash when you run the code in the zip file[/quote]This is reproducible and caused by the CaretPtr endCaret with executing this line:while ((textMatch =...
View Article[CONNECT C++] Issue with TextBlock->FindText() and TextNode Elements
I have encountered an issue with the use of TextBlock->FindText() when the TextBlock is from a TextNode element, The issue is obscure, and I am including a reproducible "test case". The testing...
View Article[CE5 C++] MS_PAGALLOC
Hello,I launch MicroStation CONNECT updt5 from a bat file setting MS_PAGALLOC=1 and I obtain the alert Window joined.( My operating system is W7 SP1 64Bit and Microsoft Visual c++ 2015...
View Article