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

Image may be NSFW.
Clik here to view.

[CONNECT C++] Don't Understand Why a Support (non-app) .dll is being Loaded

I've got an app (srs_dgnApp) that gets loaded as an MS_DGNAPPS entry. Loads fine, and does what it needs to do. I have next created a "helper" .dll file to handle some ElementTemplate operations. This...

View Article


Image may be NSFW.
Clik here to view.

[CONNECT DItem_ToggleIconRsc] Appearance Issues

In CONNECT, the ToggleIconRsc doesn't look "as good" as when used in MicroStation V8i. In V8i, when the ToggleIcon was depressed, you saw a slight "depression" and shadow line around the icon:yet in...

View Article


[CONNECT C++] Delete Item Type instance from Element

I want to remove a DgnECInstance of my Item Type from an element.  DgnECInstance.ScheduleDelete (EditElementHandleR) looks like it does what I want.However, a comment in MicroStationAPI says: The...

View Article

[CONNECT C++] Determine Cursor Screen Position

If I've got a IViewMonitor set up, does the ViewportP or ViewportP::ViewInfo contain any information about the current cursor location that I can retrieve. I'm attempting to monitor new elements being...

View Article

[CONNECT C++] IViewManager::LoadSpriteFromRsrc replacement attempt

Since LoadSpriteFromRsrc() isn't yet available (as of Update 4), I thought I would try to defined a class that would let me load an Icon and use it for view decoration purposes. The Help File states...

View Article


[V8i SS2 VBA] tag element code

Public Const Tag_Set_Name = "testTagSetName" Public Function GetTagSet(ByVal TagName As String) As TagSet Dim strName As String Dim oTagSets As TagSets strName = Tag_Set_Name Set oTagSets =...

View Article

[CONNECT C++] Converting old hidden line removal code using...

I'm porting some C++ drawing creation code where one of the usual operations is to create named views in model and then those views are attached into separate drawing file. One option is to have...

View Article

[CONNECT C++] PersistentElementRef raison d'être

Here's the definition of class PersistentElementRef, found in DgnModel.h...struct PersistentElementRef : public ElementRefBase { private: virtual void MakeClassAbstract() = 0; public: };It's an...

View Article


Get Reference to Active Design File C++ V8i SS4

I am wanting to iterate through all the models in my active design file in C++.  Note that I am using V8i.The "MDL Function Reference" says I need a DgnFileP in order to create this iterator.  Is there...

View Article


Image may be NSFW.
Clik here to view.

[CONNECT C++] DgnElementSetTool fence & selection processing

I seek guidance on writing a tool that performs fence processing using DgnElementSetTool.  Unfortunately there is no example delivered with the SDK that illustrates fence processing using...

View Article

[CONNECT C++] DgnElementSetTool enum ErrorNums

Class DgnElementSetTool defines enum ErrorNums...enum ErrorNums { ERROR_NUM_NoFence = 68, ERROR_NUM_NoFenceElems = 122, ERROR_NUM_NoFenceElemsOutside = 250, ERROR_NUM_NoSSElems = 85,...

View Article

_onDataButton question

Using the drawing tool example from the SDK there is a method for the _onDataButton.  Is there anyway to determine if this is a button up or button down event?  Right now it seems to fire twice if you...

View Article

Image may be NSFW.
Clik here to view.

[V8.i C++ ss4] API to get list of Point Cloud presentation style list

Hello,i'm using Microstation V8.i ss4 C++ sdk.Is there a way to get dynamically Point Cloud presentation style list ?In this example, i will get the following list :Couleur RVB, Intensité, Elévation,...

View Article


[Connect update 4 mdl] Does mdlKISolid still exists in Connect?

Hi,I am migrating from v8i to Connect and wondering about mdlKISolid functions like mdlKISolid_beginCurrTransmdlKISolid_elementToBodymdlKISolid_endCurrTrans What reference do I need or are these...

View Article

V8i C# Addin - raster attachments

I'm trying to report on the status of missing/found raster references in a dgn file. It appears I the RasterManager.Rasters only returns raster information on file open graphically, if I open a file...

View Article


Use Excel to run Macro in Microstation PowerDraft

Hello,I'm using MicroStation PowerDraft Version 07.01.01.16 Windows x86 and I'm wondering if there's a way to open a PowerDraft .DGN file and launch a macro via an Excel VBA macro.In other words, I...

View Article

[CONNECT C++] Header File Error/Omission

I'm trying to use SymbologyReporter to look at element properties. When I include SymbologyReporter.h, the compiler complains about these two entries in the header file: typedef...

View Article


[CONNECT C++] Line Style Name question. How does CONNECT resolve Line Style...

I'm developing a CONNECT "DGNAPPS" tool for importing MicroStation/J files. I've got some lines with "custom" linestyles (defined in our V7 .rsc file). When I open (and let MicroStation convert the...

View Article

[CONNECT C++] How to get a LevelId from a .dgnlib

In V8i we used to do this to get a LevelID:LevelID newLevelID; if ( ERROR == mdlLevel_getIdFromCode(&newLevelID, ACTIVEMODEL, 99999)) mdlLevel_getIdFromCode(&newLevelID, LEVEL_LIBRARY_MODELREF,...

View Article

[Connect C++] Attach reference file including a raster attachment

I want to attach a reference file that includes a raster attachment. I use these few lines of code:DgnAttachmentP newAttachment; DgnDocumentMonikerPtr moniker =...

View Article
Browsing all 4331 articles
Browse latest View live


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