Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
Bentley Map
VBA
API
autorun
Bentley Map API
Bentley PowerMap Field
BentleyMap
c#
COM
Database
GCS
geographic coordinate system
Interoperability
KEY-IN
LAT/LON
Macro
MicroStation V8i
mvba
Network
OpenCities Map
Oracle Spatial
Programming
Programming VBA
Promote
SQL Server
XFM
XFT
- Automatically execute commands upon file open [XFM project]
Nelson Hobdell
Users leveraging OpenCities Map XFM projects are able to execute key-in commands upon project open via definition of MS_GEOINITCMD as a macro (variable definition) within the XFM project, for a given XFM project workset. Is there a likewise strategy…
over 1 year ago
OpenCities Map
OpenCities Map Wiki
VBA check if a feature is queried from database
Nikolay Tsonev
Hello all, I have a features queried from database and another I just placed. Can I check if feature is queried from database in VBA?
over 1 year ago
OpenCities Map
OpenCities Map Forum
VBA - Adding ActiveX controls to the toolbox
Utente 7 Lapisgroup
OpenCities Map on Windows 10, 64 bit - VisualBasic for Applications How to add a Microsoft TreeView control to the form toolbox ? The TreeView control is contained into the mscomctl.ocx file (32 bit), which is in the c:\Windows\SysWOW64 folder and…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
Why VBA XML file parsing and element creation is slower in OCMCE than BMv8i?
FlexiTon ADT
Using Bentley Map v8i SS4 we had to move our XML file parsing and element creation code to VBA from C# due to very slow execution. Now we are migrating to OpenCities Map Connect Edition, and the same VBA code performance is about 1.7x slower for the very…
over 4 years ago
Geospatial Programming
Geospatial Programming Forum
RE: Selecting elements by elevation
Jeff Bielefeld
Greetings Turkay, This type of data manipulation is best done programmatically. If you could provide a sample design file and details on what elevations should be moved to which levels, I would gladly craft a sample VBA application which could be used…
over 6 years ago
OpenCities Map
OpenCities Map Forum
RE: How to query feature with specific where clause?
Jeff Bielefeld
Robert, Your VBA program is sending GDI keyins which unfortunately do not provide the ability to specify the WHERE clause. There are however ways to use the GeoDataInterchange .NET API wrapped up as a COM server, exposing to VBA ways to specify WHERE…
over 6 years ago
Geospatial Programming
Geospatial Programming Forum
RE: convert lot of txt elements to xfm
Jeff Bielefeld
I reviewed the provided text2xfm v1.5 application and it appears the ability to process multiple text elements still exists. If a " Fence " is active when the " Process " button is pressed then all of the text or text node elements in the fence contents…
over 7 years ago
OpenCities Map
OpenCities Map Forum
RE: Collection sub feature in Bentley Map
Jeff Bielefeld
Robert, Use of collections in sub-features is not currently supported.
over 7 years ago
Geospatial Programming
Geospatial Programming Forum
RE: Bentley Map SS4 change feature name
Jeff Bielefeld
Bjorn, Yes, features can be renamed programmatically using code that updates the .name and .alias properties on the feature instance then calls the .write method. Attached is a VBA example which illustrates one way in which this can be done. rename_features1…
over 7 years ago
OpenCities Map
OpenCities Map Forum
RE: [BM SS4] User Data Linkages and Group Hole Elements
Jeff Bielefeld
Bruce, I appreciate the additional sample data. I've been out of the office for the past few days travelling on business but earlier today using the new data I ran the attached promote2.mvba process which created 4 new polygon collection feature instances…
over 7 years ago
OpenCities Map
OpenCities Map Forum
RE: [BM SS4] User Data Linkages and Group Hole Elements
Jeff Bielefeld
Bruce, After a quick review, I believe your use of the DFS rules file is causing the observed difference when running the promote1.mvba process. I will perform some additional verification testing and update you with my findings. Question, I noticed…
over 7 years ago
OpenCities Map
OpenCities Map Forum
RE: [BM SS4] What happens to User Data Linkages?
Jeff Bielefeld
Bruce, Please zip up and send me via private message... Your modified MVBA file. A sample design file containing the original MicroStation shape elements. A current copy of your Bentley Geospatial Administrator schema file. ...and I will…
over 7 years ago
OpenCities Map
OpenCities Map Forum
Auto Annotation features
Nikolay Tsonev
Hi, I try to place annotation feature to exist features by VBA but only one feature in annotated. This is my code: Dim oLocateOp As New locateOp Dim oFeatureEnum As FeatureEnumerator Dim oFeature As feature Dim oAnnotation As feature Dim oInputPoint…
over 8 years ago
Geospatial Programming
Geospatial Programming Forum
RE: [V8i SS3 VBA] Get Fillcolor and Patterninfo from Polygon Collection feature
Jeff Bielefeld
Martin, Is the printing app to which you refer unable to process the XFM V1 08.11.07.xx formatted file? I suggested that to potentially eliminate the need to process the XFM V2 08.11.09.xx formatted file. Attempting to read the fill and pattern information…
over 8 years ago
Geospatial Programming
Geospatial Programming Forum
RE: [V8i SS3 VBA] Get Fillcolor and Patterninfo from Polygon Collection feature
Jeff Bielefeld
Martin, Using your data and code have been able to replicate what you are reporting. I'm working now to determine if this is a previously unreported defect. I will update you my findings once complete. I would be interested to know more about what…
over 8 years ago
Geospatial Programming
Geospatial Programming Forum
RE: [V8i SS3 VBA] Get Fillcolor and Patterninfo from Polygon Collection feature
Jeff Bielefeld
Martin, The shape elements are stored as sub-features in the XFM type 106 polygon collection. The following bold Bentley Map VBA code should give you an idea of how you can traverse the polygon collection and obtain information from each sub-feature…
over 8 years ago
Geospatial Programming
Geospatial Programming Forum
RE: [PowerMap v8i Select Series 1] Key-In "attach maps"
Jeff Bielefeld
Jan is correct. No VBA wrappers are provided for the Bentley Map C API functions. The most commonly used Bentley Map functionality, including the XFM data modeling engine is provided in the XFT (XFM Feature Toolkit) COM object. Use of other Bentley Map…
over 8 years ago
OpenCities Map
OpenCities Map Forum
MVBA application to generate (rectangular or geographic) coordinates reports from Cells, Text and Text Nodes elements
Elivagner Barros
This is a second version of a MVBA application to generate rectangular or geographic coordinates reports from elements like Cells, Text and Text Nodes. to run this tool, extract the .zip contents to your computer; Updated on Monday, 29th July, 2013…
TextCellXYZReportTool.zip
over 8 years ago
Peer Blogs
Elivagner Barros' Blog
label_latlon2.zip
Jeff Bielefeld
To assist Bentley Map users in generating these LAT/LON coordinate labels. See the " Creating LAT/LON Coordinate Value Labels with Bentley Map " wiki article for more information.
label_latlon2.zip
over 11 years ago
OpenCities Map
OpenCities Map Files
- Label latitude and longitudes (VBA)
Inga Morozoff
This macro runs on V8i only. To place latitude/longitude labels use label_latlon2.mvba Bentley Map example VBA application. This example Bentley Map application has been developed using VBA so that it can be easily modified by anyone requiring similar…
over 4 years ago
OpenCities Map
OpenCities Map Wiki
Re: Looks like methode "ZoomInView" in the xft object is not working in the new SS3 version
Jeff Bielefeld
Erik, You sample code works fine after adjusting the ZoomFactor argument such as follows: oFeature.ZoomInView CommandState.LastView, 1#, 50#, True I would also recommend setting the last argument to True to handle those features which may have…
over 11 years ago
Geospatial Programming
Geospatial Programming Forum
Re: Where to read actual PlotScale and selected feature in Comand Manager
Jeff Bielefeld
Greetings Erik, Using XFT the following approach should work. Dim plotscaleTypeString Dim plotscaleTypeValue As New xft.InputValue plotscaleTypeValue.SetTypeAndValue ValueType_DWGSCALENAME, "" plotscaleTypeString = plotscaleTypeValue.EvaluateAsString…
over 10 years ago
Geospatial Programming
Geospatial Programming Forum
Re: Looks like methode "ZoomInView" in the xft object is not working in the new SS3 version
Jeff Bielefeld
Erik, I've tested using .91 and .95 builds with both performing the ZoomInView method as expected. I will have some of my other colleagues perform independent tests after which I will contact you with results.
over 11 years ago
Geospatial Programming
Geospatial Programming Forum
Re: Looks like methode "ZoomInView" in the xft object is not working in the new SS3 version
Jeff Bielefeld
Erik, As suspected it appears the proper transform is not being applied when the VBA code is started directly from the "Project Manager" so I've filed an issue to have the matter resolved in the upcoming Bentley Map V8i (SELECTseries 3) 08.11.09 maintenance…
over 11 years ago
Geospatial Programming
Geospatial Programming Forum
Re: VBA
Jeff Bielefeld
Ruben, I'm not aware of any specific VBA that converts XFM business properties to equivalent MicroStation tags. However using the "XFM Feature Toolkit" (XFT) one can read the business properties of an XFM feature instance with the following: …
over 11 years ago
Geospatial Programming
Geospatial Programming Forum
>