Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Unable to find what you are looking for?
Click here
Update tags when placing cell in VBA
Michael Reilly
I'm using VBA to place a cell that has attributes. Is it possible to update an attribute during placement? Or how can I select the last placed element (which would be the cell) in the dgn file? MS v17
2 months ago
MicroStation Programming
MicroStation Programming Forum
RE: [Microstation CE C#] Place cell as annotation cell - AnnotationHandler
Jan Šlegr
Hi Peter, Peter Norvin said: I am trying to place a cell as an annotation cell using the AnnotationHandler. Well, you are actually creating a cell, not placing (existing) cell ... which is different scenario when cells are discussed. Peter Norvin…
2 months ago
MicroStation Programming
MicroStation Programming Forum
RE: Excel VBA - place note with leader
Jan Šlegr
Carys Langsdale said: I've edited the post. Much better :-) Carys Langsdale said: and have not had issues using ActiveModelReference elsewhere In such case I recommend to test your macro (or a part of it) in MicroStation, to check whether the problem…
29 days ago
MicroStation Programming
MicroStation Programming Forum
RE: [C# MSCE 10.17.02] Place cell with annotation scale enabled & applied
Jon Summers
Mike Robertson said: Unless things have changed See this thread . Despite repeated requests, over several years, for that functionality, .NET remains immune to cell placement.
7 months ago
MicroStation Programming
MicroStation Programming Forum
RE: [V8i SELECTseries 10 VBA] Placing points on lines closest to the laser data points
Jan Šlegr
Acke Man said: But I wonder if the scan range allways is a perfect cube or can it be fit surrounding the line in an optimal way? The range is always cube, defined by min/max x,y,z. It's always the same or slightly bigger than the element, but it does…
8 months ago
MicroStation Programming
MicroStation Programming Forum
RE: [CONNECT Update 17 VBA] place text element above/below
Jon Summers
Julia Frid said: How is possible to place text along (above/below) programmatically? Here's a VBA macro I wrote to Place Text Along an element... It's an implementation of the suggestion I made earlier.
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
[MStn CE U17 C#/C++] Place cell from Components Center
Jan Šlegr
Hi all, I am preparing project, where several tools should place components (sometimes cells, but typically Parametric cells), published for a project team in Components Center. Even when the components are in fact (parametric) cell, ad-hoc downloaded…
Answered
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
RE: [VBA CE U13] Place cell with Item Type does not attach the Item Type
Jon Summers
Krister Surell said: Everything works just fine if the cell is placed using any of the standard commands Please describe 'just fine'. Does a MicroStation command create an Item Type instance hosted by the newly-placed cell? Krister Surell said: I…
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
RE: Microstation 2023 VBA - How replace points by cells?
MaryB
I can see a few things right off the bat. You are scanning for a Shape element, but then you are trying to get the center point of an Ellipse. Those are different element types, so you will not get any results from that type of code. A Shape does…
2 months ago
MicroStation Programming
MicroStation Programming Forum
[Microstation CE update 17] Place an annotation cell
pieter Dorp
problem I downloaded the VBA Cell Placement Project from this page. MicroStation VBA: Cell Placement (la-solutions.co.uk) It works pretty darn good but when I use an annotation cell it does not take in consideration that the scale has to be adjusted…
10 months ago
MicroStation Programming
MicroStation Programming Forum
RE: [V8i VBA] drop cell then put elements in graphic group?
Jan Šlegr
Hi Mary, MaryB said: To be honest, I went with named groups because that's the code I found. Well, the code should never be written based on such decisions :-) But to use Named Groups is generally better than old GG ... but the subject is confusing…
1 month ago
MicroStation Programming
MicroStation Programming Forum
RE: [CE VBA] Placing text with VBA - fractions not stacking
Jon Summers
John Ebersohl said: In the past, we used 'table.bas' provided by Bentley (BASIC) In response to many user requests, Bentley introduced the Table element with MicroStation CONNECT. Unfortunately, there's no VBA API for tables. John Ebersohl said…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
How can I write MicroStation VBA to create a leader who's note end is snapped/associated with cell?
Map_Man
I want to place a cell with a leader that is associated to it such that when the cell moves the note end of the leader follows it, leaving the terminator end associated to an element already in the file.
2 months ago
MicroStation Programming
MicroStation Programming Forum
Microstation VBA Create Parametric Cell using code
Daniel KARWOWSKI
Hi, I'm having an issue to find the right Microstation VBA Class to insert the parametric cell into a model. I got around this issue with recording macro and then adjusting the code. The problem with this is that this method is super slow. Other issue…
Answered
3 months ago
MicroStation Programming
MicroStation Programming Forum
RE: [MSCE u13 c++] how to get cell element ID after place cell?
Jan Šlegr
Hi, can you share more details and context? Element ID is one from core properties of both ElementHandle so it's available always when you work with element in C++ API. Where file position comes from? It is recommended (for last about 20 years) to…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
RE: [CONNECT] Place Normal Cell Instance from Library
John Drsek
Robert Hook Robert Hook said: UPDATE: I see your mention to be able to place existing from Cell library as normal. I will look into that aspect more. BUMP
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
RE: How do I place a cell with updated text in Open Roads Designer using C# WPF Application
Jon Summers
Joshua Durbin said: I am fairly new to C# WPF, especially interacting with and placing cells Here's an example of cell placement using .NET. It uses the VBA COM library to implement a primitive cell placement command.
10 months ago
MicroStation Programming
MicroStation Programming Forum
[VBA, V8i and Connect] Invisible shared cells
JM
I have an issue where DGN files may contain shared cells that are "invisible" (not displayed even when level is on and can't be directly selected) and a specific custom tool we use may cause them to reappear. This is a problem because they drawing changes…
Answered
7 months ago
MicroStation Programming
MicroStation Programming Forum
RE: Extracting instrument tags text from cell with VBA macro...help!
Jacob Thompson
I see that I may be able to use something with the "CellElements" as opposed to TextElements, but I'm not certain where I need to place it inside my macro. Can you offer any advice?
6 months ago
MicroStation Programming
MicroStation Programming Forum
CE 17 Cell Type property value VBA
mwlong
I am creating a vba project to report the settings in models. I have everything setup to report on the required fields but I am running into an issue with the Cell Type property. When the value of phCT.GetValue is displayed in the immediate window it…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
RE: Edit text within a Textnode, within a cell using VBA.
Derek Schmidt
That looks amazing. I haven't looked at the code, but I'll add a link to that page for future reference for when it might come in handy. I'm very familiar with regular expressions, and I value them immensely, so that future reference might come fairly…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
RE: [Connect CPP] Place parametric cells programmaticaly
Manuel Höger
Hi Robert, As I see, this example just starts the keyIn for placing a parametric cell. But I can't find any Code to manipulate the parameter values of the cell like in Evans Example above. I need to change the parameters of a placed parametric cell…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
Cell - place scaled + rotated
Artur Goldsweer
The VBA method CreateCellElement2 allows to place a cell from an attached cell library. Additional parameters allow to scale and rotate the cell with placement. The following VBA code example shows how to use the method CreateCellElement2 and is placing…
over 3 years ago
MicroStation Programming
MicroStation Programming - Wiki
RE: [CONNECT C++] How to set visibility on tags within a placed cell
Jon Summers
Element Visibility Brien Bastings said: eehTag.GetElementP()->dhdr.props.b.invisible = false; John Majerle said: I managed to get it to work using mdlElmdscr_setVisible() Those calls are doing the same thing, which is to set the inherited MSElement…
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT Update 12 VBA], [V8i SELECTseries 3 VBA] VBA place Tag text on active level works in V8i but not in CONNECT
Erling T.L. Kristensen
I have an old VBA program placing symbols with Tag data on different levels - it is running fine on V8i but not in CONNECT. I want to place symbol on active level and place the Tag text on another level ("Tag_Kote") - here is a small snippet from the…
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
>