Hello everyone,
I'm facing an issue while attempting to create a new DGN file directly within ProjectWise. I've successfully managed to create DGN files on my local drive using different approaches. However, I'm struggling to replicate this process…
Hello everyone,
This discussion is not new but still, I am not getting things in place even after looking at several threads here. I so thought to post a new one.
I'm facing some challenges in achieving a specific task using Microstation CE and…
The C++ MicroStationAPI provides an interface to SQLite . For example, BeSqlite.h .
There is no example of SQLite, unfortunately. Would somebody like to write one?
Hi Community,
I am a beginner in Microstation API programming, I have gone through some of the resources available and am able to create my first MDLCommand in .NET C# which does a set of tasks in the Microstation.
I still have some doubts on the…
Many StateFunc_ functions have incomplete documentation. For example...
typedef void(* StateFunc_DragInit)(DPoint3dCP point, int view)
UserFunction called when NEEDSWORK_VANCOUVER_DOC.
Parameters
[in] point NEEDSWORK_VANCOUVER_DOC
[in] view NEEDSWORK_VANCOUVER_DOC…
Hi I'm trying to implement a feature to "isolate" elements in drawings. (like on explorer form) my plan is next: 1. Create a display rule
foreach (var elementId in elementIdToIsolate)
{
var elementsConditions = $"element.DgnElementSchema::GraphicalElement…
Hi
I want to stroke a complex chain element and into an array of points. In V8i I used the function mdlElmdscr_stroke:
#define SCALE (mdlModelRef_getUorPerMaster(MASTERFILE))
if (mdlElmdscr_stroke(&pptdPts, &iVertices, pedCurve, 2.0 * SCALE) == SUCCESS…
Hi,
Working on migrating an application from interpreted MDL (written in MicrostationJ and ported to V8i SS3).
I'm slogging through the code to get a clean compile and am having problems figuring out how to handle the string list messaging that was…
Hello all,
I want to iterate over all Itemtypes in a all Libraries but I get an Memory Exception in the second iteration in following Code:
try
{
ItemTypeLibraryPtr itemTypeLibrary = ItemTypeLibrary::FindByName(libName.c_str(), *ISessionMgr…
I'm following the steps to create a new MDL addin using C# and I'm having an issue with getting the commands.xml to be recognized.
VS 2019 (recommendation says for the below version to load VS2017 or higher for .NET programming) Microstation CE 10.15…
bmake lets us define a C++ compiler switch like this...
nameToDefine=_UNICODE
%include $(MDLMKI)cdefapnd.mki
Macro MDLMKI points to the SDK \mki folder.
Those lines mean...
Assign value _UNICODE to macro nameToDefine
Call the make include…
When using the copy-and-increment command, MicroStation help tells us: Tag Increment : The amount by which the numeric part of the text element is increased (can be any integer between -32768 and 32767, inclusive). That is, the increment value is a signed…
Hello all,
I am practicing DgnElementSetTool
So far I am able to use _OnDataButton() to place a element. I have the UI box pop up with start of command and could modify the element before I place it with a click. I use _OnDynamicFrame to show effect…
Hello! I work in Microstation vi8 and trying to call an MDL function (mdlKISolid_minimumDistanceBetweenEntities function) in MVBA, but it return "0". Could you help me to solve this problem? Maybe there is a mistake in types of variables. My code below…
The MicroStationAPI help documentation for MSDialog::GetItemPtrByTypeAndId is messed up...
template
T GetItemPtrByTypeAndId (RscType type, RscId id, MdlDescP ownerMD=NULL, int startingIndex=0, bool searchChildren=false)
References GetItemByTypeAndId…
Actually, we are having the encryption logic at the below function,
SystemCallback::SetFileSaveFunction -->DgnSaveReason::UserInitiated -->DgnPlatform::ProcessChangesWhen::AfterProcessing
In setSavefileaction system callback function, we were not…
We need create unique menu to the other users the ribbon customization tab with group of labels. while group of labels or label button Clicked then the event connected to our custom dialog(*.rc) to load/display in the MicroStation main window.
How do…
I am facing some issues in Successful loading MDL apps on Startup.
I have modified code as below and loaded MDL app.
if (strcmp(l_str_argument.c_str(), "MS_INITAPPS") == 0)
{
mdlSystem_enterGraphics();
mdlInput_sendCommand(CMD_DIALOG_OPENFILE…
The MicroStationAPI help doc. has a useful description of Display Path...
The first few paragraphs (up to subsequent entries in the path ) are duplicated.
Hello,
I am trying to change the Text of a cell with the Microstation C++ Api.
The Code I am using is working well on normal Text Elements. But in a Cell the "ReplaceInModel" returns an Error (69645)
void TextTool::textChange(EditElementHandleP…
hello, i'm studying how to generate shadow of a solid exposed by solar light.
i have got the interface of the default solar, and createed a new one to adjust some parameters, while i cant find the shadow in dgn file.
i guess the shadow isnt rendered…
When writing code that footles with ECObjects the ECObjectsStatus enum provides a large set of error codes. It seems I'm often able to write code that results in one of those errors. Most are self-explanatory, but one or two are enigmatic. Could someone…
I can write a locate tool that enables a user to pick a closed curve (e.g. a DGN shape element). The user must datapoint a line or curve that defines the perimeter of the shape.
How can I write a tool that enables a user to pick that same closed curve…