RE: [DGN platform] How to update reference location via API
I'm pleased to read that you solved your problem.However, the best way by far to attach reference files is using a MicroStation configuration variable. MicroStation configuration variable MS_RFDIR is...
View Article[DGN platform] How to update reference location via API
Hello everyone,I'm trying to parse dgn file and update location of it's reference file.Say I have c:\Main.dgn which has reference c:\refs\Ref1.dgnAnd I want it to be moved Ref1.dgn to another...
View ArticleRE: [CONNECT] Delivering an Application
Hi Jon,I am not sure I can be a lot of help in this area, but which installer software or toolkit are you using? I have some lite-weight use of Microsoft Visual Studio installer projects back in 2010;...
View ArticleRE: [CONNECT] Delivering an Application
[quote user="Robert Hook"]I would think the installer APIs would provide either a Product or Registry search capability[/quote]Yes, they do.[quote user="Robert Hook"]I am not sure I can be a lot of...
View ArticleRE: [CONNECT C++] mdlLevelIterator_setIterateType()
Attempting to use the LevelCache to remove unused levels, but the sample "To remove a level while iterating" in the help file isn't quite right. The compiler is choking on levelCache.RemoveLevel()....
View ArticleRE: [CONNECT C++] mdlLevelIterator_setIterateType()
yep, mdlLevelIterator_setIterateType() does the exact same thing whether you pass LEVEL_ITERATE_TYPE_UNUSED_LEVELS or LEVEL_ITERATE_TYPE_USED_LEVELS. At present I don't see a good workaround. A bad...
View ArticleRE: [CONNECT C++] mdlLevelIterator_setIterateType()
DgnFile::GetLevelCacheR() returns a FileLevelCacheR. Just declare your variable of that type instead of the LevelCacheR type used in the sample.
View ArticleRE: [CONNECT C++] mdlLevelIterator_setIterateType()
I think one or two of the MDL functions have developed faults as their functionality has been refactored into classes.In your case, the FileLevelCache or LevelCache class may provide a solution. Look...
View Article[CONNECT C++] mdlLevelIterator_setIterateType()
While writing a function to delete unused levels in a model, I called mdlLevelIterator_setIterateType(), passing LEVEL_ITERATE_TYPE_UNUSED_LEVELS, and the resulting iterator only contained USED levels....
View ArticleRE: [CONNECT] Delivering an Application
It is always good to hear of new tools. Though not 100% sure this will help, this FAQ may be of some help with the Registry entries provided above:#00014: How to enumerate subkeys of a specified...
View ArticleRE: [CONNECT] Delivering an Application
[quote user="Robert Hook"]this FAQ may be of some help[/quote]There are similar questions on SetupBuilder's user Forums. In response to some of my questions, Lindersoft added functionality to...
View ArticleRE: [CONNECT C++] mdlLevelIterator_setIterateType()
Just in case anyone else is removing unused levels, this is what is working for me:FileLevelCache& fileLevelCache = mdlModelRef_getActive()->GetDgnFileP()->GetLevelCacheR(); for...
View ArticleRE: [CONNECT C++] Placing Cells - An Implementation Question
[quote user="Bruce Reeves SRNS"]My thought is that the constant "read" of the cell from the library on the server would be a big performance "hit"[/quote]Maybe it is, and maybe it isn't. You don't...
View ArticleRE: [CONNECT C++] Placing Cells - An Implementation Question
For obtaining cells from a network storage location (LAN/WAN) there will always be some file access latency issues. However as you state (1) elmdscr (now in memory) read from the library (over...
View Article[CONNECT C++] Placing Cells - An Implementation Question
I've got numerous "tools" that essentially place a cell. In thinking about upgrading these tools to CONNECT, I'm wondering if my method could be improved. The cell libraries reside on a server. In V8i,...
View ArticleRE: ModelReference & Attachment base class for polymorphism
using Bentley.Interop.MicroStationDGN; using Bentley.MicroStation.InteropServices; using BNS = Bentley.Interop.MicroStationDGN; namespace Scanners { public class Scannable : IScanMe { protected...
View ArticleRE: ModelReference & Attachment base class for polymorphism
Unfortunately I do not see an Interface available similar to what you describe. Since an attachment is a specialized case of model reference the only way to treat both types in a similar sense via the...
View ArticleRE: ModelReference & Attachment base class for polymorphism
That should work. I'll just have to write this portion in C++/CLI and call into native code. Thanks!
View ArticleModelReference & Attachment base class for polymorphism
I am wanting to use polymorphism to Scan() with ModelReference & Attachment instances. Do these classes implement a similar interface? Something like IScannable?I see that Attachment inherits...
View ArticleRE: How to disable or enable the Menuitem or Toolitem of microstation using c#?
[quote user="Sudhakar Arimanda"]I am developing an addin for MicroStation ...[/quote]Please follow the MicroStation Programming forum best practices.Identify Your PlatformPlease identify the version of...
View Article