Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Browsing all 7260 articles
Browse latest View live

RE: [Connect VBA, AddIns] Problem with GetElementByID64

Hi dominic,it seems you posts are a bit off-topic (no GC or C++ API are discussed). In my opinion the main topic of this discussion is that VBA method works differently in V8i and CONNECT...

View Article


RE: [Connect c# addins]Possible bug , componentElement, ID and ParentID

Hi JanI am using update 2.I have not tried VBA or DgnTools.I'll leave this one for Bentley people, they can test this faster and better then I can.I use Visual Studio, and it is 32 bit application...

View Article


RE: [Connect c# addins]Possible bug , componentElement, ID and ParentID

Hi Nenad,[quote user="Nenad Poljcic"]I am using update 2.[/quote]In my opinion any API error should always be tested using the latest MicroStation version, because I know about several different issues...

View Article

Image may be NSFW.
Clik here to view.

[Connect c# addins]Possible bug , componentElement, ID and ParentID

Hi,My system is windows 7, Connect update2 and VS 2013I have CellElement with ID = 1681447One of cell components is element with ID= 1681548Using class with ILocateCommandEvents  I locate cell by...

View Article

Image may be NSFW.
Clik here to view.

RE: [CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback

[quote user="Robert Hook"]YongAn Fu posted a dependency code sample[/quote]I've written an article about dependency management.  It resurrects the BoxDependency example that Mark Anderson wrote in...

View Article


[CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback

I'm uncertain how to use this struct.  It contains two pure virtual methods, so I should do something like this...struct MyDependencyCallback :...

View Article

RE: [CONNECT C++] IRefCounted

MicroStation's APIs make extensive use of RefCountedPtr, and make zero use of std::shared_ptr. Since this is the MicroStation programming forum, the short, practical answer is: use RefCountedPtr where...

View Article

[CONNECT C++] IRefCounted

IRefCounted and C++ Smart Pointers[quote user="Brien Bastings"]If you sub-class from IRefCounted you'd increment an internal ref-count in AddRef, and decrement it in Release so that your instance is...

View Article


RE: [Connect VBA, AddIns] Problem with GetElementByID64

[quote user="Jan Slegr"]dominic SEAHbut I still a lot of people struggling to access nested elements, whether they are using VBA, GC or C#.Please share evidence or examples of this...

View Article


RE: VBA help, cannot delete tags(or any element) on a level in all models, in...

Hi Jonas,[quote user="Jonas Wahlberg"]I thought OpenDesignFileForProgram was much quicker than OpenDesignFile[/quote]These two functions have very different purposes. I did not do any speed test, but...

View Article

RE: [CONNECT C++] IRefCounted

Paul, thanks a lot for such valuable explanation! It would be nice to copy-paste this to MicroStation API documentation. With regards, Jan

View Article

[CONNECT C++] NO_LEGACY_DVEC3D

Is the NO_LEGACY_DVEC3D macro still used in CONNECT?  The macro continues to exist in the header files, but is it necessary or useful?

View Article

RE: VBA help, cannot delete tags(or any element) on a level in all models, in...

Thank You both! Yes I'm aware my code is a bit dirty, it's more of a sketch actually than clean code. I tried to use syntax highlighter but it stripped away some of the code. (maybe the dirty bits :) )...

View Article


RE: [Connect VBA, AddIns] Problem with GetElementByID64

[quote user="Nenad Poljcic"]Why is function GetElementByID64 returning CellElement and not componentElement with entered ID?I have tried this in VBA and I am getting same reult.[/quote]Hi Nenad,we can...

View Article

[CONNECT C++] DisplayHandler.GetBasisXxx

The DisplayHandler class has two methods that get a 'basis': GetBasisRange and GetBasisTransform.What is that 'basis'?  If there were a hypothetical method GetRange or GetTransform, how would that...

View Article


RE: [C# v8i] Class not registered (Exception from HRESULT: 0x8004015)

Hi Oto,[quote user="Oto"]How to re-register Microstation?[/quote]Particular dll files (libraries) can be register, not MicroStation itself.[quote user="Oto"]Unable to run C# Add-in[/quote]Is it yours...

View Article

RE: [C# v8i] Class not registered (Exception from HRESULT: 0x8004015)

In addition to Jan's questions: is your AddIn in-process (a DLL) or out-of-process (an EXE)?How is the AddIn installed?  The installation process should register the AddIn's COM components with Windows.

View Article


RE: [C# v8i] Class not registered (Exception from HRESULT: 0x8004015)

You can register the MicroStation COM (ustation.exe) by going to msdos in admin mode, navigating to microstation directory, and using "ustation.exe /regserver"

View Article

[C# v8i] Class not registered (Exception from HRESULT: 0x8004015)

Unable to run C# Add-in as it throws error Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).How to re-register Microstation?

View Article

RE: [V8i VBA] Listbox item mover - Class coding query

[quote user="Barry Lothian"]I am wondering if its possible to create only 1 instance of the class and have it operate on the listbox with the currently selected item?[/quote]Probably yes, but that's...

View Article
Browsing all 7260 articles
Browse latest View live


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