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

[V8i VBA] Accessing a variable (external of a Class) from within a class...

My nemesis (Properties & Classes) is causing me a slight headache. I have a simple UserForm containing 2 option buttons, and a Boolean variable (defined in the UserForm as Private) is set True or...

View Article


Microstation CE Update 16 C# : How to draw a line parallel to another line at...

I have a case where I have to draw a line parallel to another line at an offset distance in C#. The user will select the line and provide an offset distance and we have to draw line parallel to that...

View Article


[Microstation CE Update 16 C#] : How to create line at an offset distance...

I want to create a parallel line at an offset distance with Accudraw using C#. I give an offset distance, select the point on the line and then the point on desired side of the line through click and...

View Article

Image may be NSFW.
Clik here to view.

Compilation Error when trying to instantiate IModalDialogEvents class

Hi All,I am trying to write a macro that attaches a reference file. I am trying to do it the CadInputQueue way as shown in the attached code.However, I am running across this compilation error on line...

View Article

CreateCellElement2 function

using the createcellelement2 function the cell created as a scale of nothing.I have tried this in V8 8.11.08.63 and Connect 10.16.01.56the code:Sub xxx() Dim sc As ElementScanCriteria Set sc = New...

View Article


[CONNECT Update 16 C++] DgnLinkManager::WriteLinkTree

There are two overloads of DgnLinkManager::WriteLinkTree...StatusInt WriteLinkTree (DgnLinkTreeR linkTree) StatusInt WriteLinkTree (DgnLinkTreeR linkTree, EditElementHandleR elemHandle) The...

View Article

What is the keyin to load a mvba?

I want to execute a mvba function from c#.I can run the macro once the module is loaded but need to know how to load the module.I tried macro open "E:\ExportDGN\VBA\ExportToCAD.mvba"and macro open...

View Article

Microstation C# Update 16 : Set Scale and Active Angle

We want to scale an element and set its active angle.We are applying the below chunk of code for scale of element. Is this the appropriate way to do it?// where center is origin of the element and...

View Article


Microstation CE Update 16 C# : How to set level name and line style name for...

Need to set the level name and line style name of the existing line element.LevelHandle levelHandle = Session.Instance.GetActiveDgnModel().GetLevelCache().GetLevelByName("Plastic 20"); LevelId levelid...

View Article


Microstation CE Update 16 C# : Set Text Table Width

We are working to set the desired width of the TextTable as below, but nothing is happening. ModelInfo minfo = Session.Instance.GetActiveDgnModel().GetModelInfo(); double scale = minfo.UorPerMaster;...

View Article

Microstation CE Update 16 C# : How to update the Line style name of the line...

The project requires update of line style name for line elements, so we are looking out for the change of line style for line element with line style name.How to change the line style using line style...

View Article

[CONNECT Update 16.2 C++] Problem creating DgnLink for a URL

Following the examples posted on this Forum, I am experimenting with the DgnLink C++ API.I can successfully create a File DgnLink and a Folder DgnLink.  For example, this is working code...

View Article

[CONNECT VBA] Create Shapes from Areas Bounded by Elements

I'm looking to create a VBA macro would create shapes from all the possible flood areas within the selected elements. The solution I'm leaning towards would build a network from the elements then...

View Article


Microstation CE U12 C++:How to get the actual width and height of a text node?

After using TextBlockPtr to create a text node, we want to get the actual width and height of the created text node. But we can't find any useful functions within TextBlock classAny idea how to get the...

View Article

[C# MSCE 10.14] Change sheet number & name programmatically

I'm trying to change the sheet number & sheet name of a sheet model programmatically using the code shown using DgnPlatformNET.When I look at the sheetdefinition after I assign new values it shows...

View Article


[CONNECT Update 16 C++] TextTable Internal Structure: Cell Text

If I analyse a TextTable programmatically I can see rows, columns and cells.  The TextTableCell class provides method GetTextBlock().Suppose I want to add a DgnLink to a cell in a TextTable.  DgnLinks...

View Article

[V8i C++] Creating a DialogItemListRsc at run time

Hi,I  need to create a set of text items in my gui at run time. So I thought to build a DialogItemListRsc and then load it. But I don't know how to create DialogItemListRsc at run time. Is there a...

View Article


Image may be NSFW.
Clik here to view.

Element properties using VBA

We are using connect edition of Microstation on windows 10 OSI wanted the properties of the elements(see attached image) to be written to a text file or excel sheet. Any help is appreciated. I wanted...

View Article

Microstation CE Update 16 C# : Unable to create text element with fraction text

We are working to get the text block with fractional value, and create text element with it. The code below is the implementation we have performed, but while creating text element with text block as...

View Article

Image may be NSFW.
Clik here to view.

MicroStation CONNECT SDK 10.16.02.22

I note that the MicroStation CONNECT SDK 10.16.02.22 was published on 21-Dec-21.  Here are the settings I used on Bentley's Software Downloads page to see that version...I'm pleased to report that the...

View Article
Browsing all 7260 articles
Browse latest View live


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