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

RE: [CONNECT C++] Find Associated Element

Functions/methods for spelunking over dependency back pointers tha may...

View Article


RE: [MVBA] Best way to retrieve Point3d Object from Tentative Snap like...

[quote user="Matt Spencer"]It looks like the IPrimitiveCommandEvents_DataPoint Method does what I want, but I am having trouble calling it from a dialog box button[/quote]A locator class does what you...

View Article


RE: [V8i SS2 MDL/C++] Exiting an MDL Program

[quote user="Daniel MacNeil"]Is there another way to just unload the app?[/quote]My apps. always have an exit command, which does this...mdlDialog_cmdNumberQueue (FALSE, CMD_MDL_UNLOAD,...

View Article

[V8i SS2 MDL/C++] Exiting an MDL Program

Hi,I have an old MDL program that I am upgrading to C++. It is a small utility program that loads, runs and is then unloaded using mdlSystem_exit (0,1). In C++ that function call causes Microstation to...

View Article

[CONNECT C++] DgnElementSetTool: Query Elements in Reference Attachments

My query tool inherits from DgnElementSetTool.  It works fine for elements in the active model, but what should I do to enable it to locate elements in a reference?Currently the tool shows a pop-up...

View Article


RE: Using script to link multiple files to respective text node, using...

Does anyone have any ideas how to make this work? Is it possible to use relative path rather than full path?

View Article

Using script to link multiple files to respective text node, using relative path

I am trying to create a script to link individual jpg files (hundreds) to respective text nodes (geographically unique), using relative paths.  For what it is worth, I am generating the script using...

View Article

RE: Using script to link multiple files to respective text node, using...

[quote user="Todd Moser"]Is it possible to use relative path rather than full path?[/quote]I can see why that would be useful, but it's not really a question for the Programming Forum, since it doesn't...

View Article


[Connect C++] Setting Active Z for NamedView

How do you set active Z for NamedView? There is a function GetActiveZ in ViewInfo, but no SetActiveZ. And mdlViewInfo_setActiveZ  takes ViewInfoP as argument and I don't see how I cat get that from...

View Article


RE: [CONNECT C++] DgnElementSetTool: Query Elements in Reference Attachments

I answered my own question.  The solution is to add mdlLocate_allowLocked() in the _OnPostInstall event...void QueryTool::_OnPostInstall () { //Enable picking of elements _BeginPickElements ();...

View Article

RE: [CONNECT C++] DgnElementSetTool: Query Elements in Reference Attachments

Hello Jon,Apologize a long time not in this English forum because there is always a lot Chinese posts on ChinaFirst Programming forum.A formal and simpler approach to do this is to override...

View Article

RE: [CONNECT C++] DgnElementSetTool: Query Elements in Reference Attachments

Another recommendation: mdlAutoLocate_setComplexComponentMode can normally be called in _SetupAndPromptForNextAction where _BeginPickElements has been called.

View Article

RE: [CONNECT C++] Reading ElementTemplate Components

There are a lot of ElementTemplateParamsHelper::GetXXX methods you can call. Does it your desired ?

View Article


[CONNECT C++] Reading ElementTemplate Components

Is it possible to examine an ElementTemplate to inspect if it has an "item" definition? I don't see anything in ElementParameterType that looks like an item.  Thanks,Bruce

View Article

RE: [CONNECT C++] DgnElementSetTool: Query Elements in Reference Attachments

[quote user="Yongan.Fu"]Apologize a long time not in this English forum[/quote]Good to hear from you again![quote user="Yongan.Fu"]virtual bool _IsModifyOriginal () override {return false;}[/quote]I...

View Article


RE: [Connect C++] Setting Active Z for NamedView

Active z isn't really used for anything anymore, so you probably don't need to do anything. Un-snapped points are always projected into the ACS plane. If you have a ViewInfoR viewInfo, then you can...

View Article

RE: [V8i VBA] Removing Sub-Element from Cell

[quote user="Barry Lothian"]How do you remove them from the cell before calling rewrite?[/quote]See the Cell.CopyCurrentElement and Cell.ReplaceCurrentElement methods.  There's an example in VBA help.

View Article


Bentley Systems Position on "passcodes"

The following position statement supersedes all previous statements or positions on this topic:Since the introduction of PowerDraft in the 1990s, MicroStation-based products have included programming...

View Article

RE: [CONNECT C++] EditElementHandle::AppendElementLinkage() - Where is...

You're right LinkageUtil::SetWords isn't published, mdlLinkage_setWords is however. Yes, you *could* set wdExponent and wdMantissa directly...but it gets ugly when your linkage exceeds 255 words, so,...

View Article

[CONNECT C++] EditElementHandle::AppendElementLinkage() - Where is...

Trying to use EditElementHandle::AppendElementLinkage() and the doc's say to call LinkageUtil::SetWords() first on the new linkage header. I don't see that method declared anywhere. Anyway, wouldn't...

View Article
Browsing all 7260 articles
Browse latest View live


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