Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Volker Hüfner
Likes
Profile
Activity
Communities
Friends
Likes
Achievements
Bookmarks
Blog Posts
Questions
More
Cancel
RE: [MStn CE U16 C++] Attach URL link to element
Barry Lothian
Hi Jan, Does this example from Yongan.Fu provide you with the information you need? https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/216871/v8i-add-and-delete-design-links-within-a-cellelement…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [MStn CE U16 C++] Attach URL link to element
Yongan.Fu
Based on Barry Lothian pointed out thread, key lines need to be changed as below: auto leaf = DgnLinkManager::CreateLink(status, DGNLINK_TYPEKEY_URLLink); DgnLinkP link = leaf->GetLinkP(); DgnURLLinkP urlLink = dynamic_cast<DgnURLLinkP>(link); urlLink…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [CONNECT C++] Random crashes inside the function mdlCExpression_getValue()
Jon Summers
RAII Volker Hüfner said: surround the call with "mdlResource_openFile()" and "mdlResource_closeFile()" A clear usage case for the C++ Resource Acquisition is Initialisation (RAII) idiom. struct MdlResourceManager { MdlResourceManager () { mdlResource_openFile…
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
RE: Not Rule or Dependency
Jon Summers
MDL Pseudo Code is Obsolete Brenden OReilly said: I first want to compile and create a simple mc source file to a ma file Brenden OReilly said: I have not installed VS 2005. I'm not sure if I need to for what I am doing You're writing MDL pseudo-code…
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [bmake] replace characters in variables
Jon Summers
Volker Hüfner said: How could I do this trick in a bmake-file? Whenever I've posted a tricky question about bmake here, I seldom receive a response. I find that it's more fruitful to search other sources of make file information. For example... …
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [bmake] replace characters in variables
Jan Šlegr
Hi Volker, try this :-) MYVAR = was:immer:gefaellt always: |[== MYVAR1: $(MYVAR) ==] ~set MYVAR $(TMP)\\$[@subst :, \\, $(MYVAR)] |[== MYVAR2: $(MYVAR) ==] Regards, Jan
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
RE: Unable to build examples in SDK, Toolset Version, and just getting going
Jan Šlegr
Hi Viktor, can you confirm whether the problem was solved or not? I do not like an approach "try to install / run something and hope it will solve the problem", especially when the source of the problem can be tracked and (usually ;-) solved. Viktor_Kulik…
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [Connect | V8] [C# | C++ SDK] Finding Xattributes quickly and selectively, without the detour via "search element"?
Jan Šlegr
It would be nice to know a solution or best practice, in my opinion because XAttributes are often used (and not always they can be simply replaced by EC data), to search in direction XAttribute > element (and sometimes the element is not necessary) would…
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
RE: fetch full text from textnode (without carriage return)
Jon Summers
Nimisha Patel said: I want to fetch full text from textnode and need to replace it Here's a VBA project Convert Text Nodes to Text using MicroStation VBA . The project is not locked, so you can see the source code.
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
[CE SDK U12] Define ntLib in winntmdl.mki Line 543ff causes fatal error LNK1181
Volker Hüfner
Hello, I have "NTTOOLS=C:\PROGRA~2\MIB055~1\2017\PROFES~1\VC\Tools\MSVC\1416~1.27 0\ " with trailing slash. But the '{}' will cut the last '\' and I got Link error "fatal error LNK1181: Eingabedatei "C:\PROGRA~2\MIB055~1\2017\PROFES~1\VC\Tools\MSVC…
Answered
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
RE: scan GroupedHoleElement
Jon Summers
Jan Šlegr said: higher level of abstraction You're right: I found the GroupedHoleHandler Struct in MicroStationAPI help... A grouped hole is a sub-type of cell . A grouped hole cell must have a first child that is a closed curve with solid area…
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
ECSchema Editor 1.0 for viewing only now?
Jan Šlegr
Hi all, I found found out that ECSchema Editor version 1.0 is available for download from Fulfillment Center. It seems to be completely rewritten and redesigned successor of Bentley Class Editor, but after quick test, I did not find any way how to…
over 6 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [connect c++] where to find ConsHdr
Robert Hook
The mdlCons API remaining in the MicroStation CONNECT Edition was intended to be completely removed. However as you point out we need to remove mscons.h and mscons.fdf from the SDK. Thank you for reporting this. The replacement for the mdlCons API is…
over 7 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [Connect C++ Migration]mdlClip_... Parameter
Brien Bastings
ClipVectorPtr is a ref-counted pointer that holds a ClipVector, it will free itself when it goes out of scope/is no longer referenced. Code should be updated as follows: void foo(void) { ClipVectorPtr clip; if (mdlClip_fromElement(clip, elDescr, false…
over 8 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [Connect] MstnPrimitiveTool vs DgnPrimitiveTool and error C2248
Paul Connelly
Protected functions can't be called from outside of the class or its friends. Add a static member function like: class MyTool : DgnPrimitiveTool { private: MyTool(whatever args); public: static RefCountedPtr<MyTool> Create(whatever args) { return…
over 8 years ago
MicroStation Programming
MicroStation Programming Forum
>