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…
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…
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…
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…
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…
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…
Hi
After Installing (and running) Bentley Map SS3 Beta 2 something funny has happen to VBA both in SS3 and in SS2 version of Bentley Map. VBA ha stopped accepting classes from the XFT object as ByRef parameters when calling function between two mvba…
Alan,
The ability to edit multiple XFM feature instances unfortunately is not included in Bentley Map at this time. We have received a number of customer requests for this functionality and are working to provide that capability later this year…
Hi
I have a funny problem. When I try in a VBA program to update a Property to a blank or empty line PowerMap keeps the old value. If I use any other string the property is set to the new value.
All my Properties are strings. There is no XFM schema…
Hi
Are there any possibility to make the LocateOp ScanAtPoint to only look at the distance in the XY plane instead of 3D
I am working in VBA with the XFT object. My problem is that we work in 3D and sometimes I need to find a nearby feature that…
Greetings Erik,
The " Copy Centroid Business Properties To Polygon Feature Instances " example provides a minimum user interface...
...which allows the Bentley Map user to select a centroid (or point) feature class and polygon feature class then…
Your VBA based applications which leverage the XFT object model should work directly in Bentley PowerMap Field w/o modification in most cases. However you should be aware that while Bentley PowerMap Field provides redlining/markup capabilities it does…
...you could try to set the _USTN_USERNAME environment variable to the name of the user workspace (e.g. SET _USTN_USERNAME=geo_example_designer) in the shell before starting your session.
Erik,
It seems that the first method used exposes a defect which is encountered when the FeatureMgr.GetFeatureDefinitionByIndex method is called with an index that references a feature class that is not included in the schema, which of course you are…
Erik,
No worries and your memory is absolutely correct as that was in fact one of the VBA example applications I provided during the Bentley Map development workshop at the 2010 Be Together user conference. Hopefully the example will at least provide…
...in any Bentley Map installation look for the " Bentley Map V8 i (SELECTseries 1) VBA Programmers Reference Guide " program shortcut to open the xft.chm help file. Expand the table of contents as follows...
...or simply use the "Search" capabilities…
...you should be able to use the CreateFeatureByUuid method of the FeatureMgr to create an instance using a known UUID as in the following from the help.
Private Sub MySub(rootUuidString As String)
Dim oFeature As Feature
Set oFeature = xft…
After looking at the provided budynki_shape2.dgn file, it is at first not apparent which elements contain your user attribute data. Using pure MicroStation scanning and elements (e.g. no XFT constructs) it seemed that .GetUserAttributeData(lIDGL) always…
Stefan,
As mentioned, the Bentley Map V8 i (SELECTseries 2) 08.11.07 release provides the new Interoperability API services, documented in the ...\Bentley \Documentation\GeoDataInterchangeAPI.chm help file. The " gdi connect " keyin is also new to…
Jiri,
For the following compound geometry...
SHAPE(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) --------------------------------------------------------------------------------------------------------------------------…
I suspect the error is being caused by the fact that in an XFM feature collection, the root feature does not contain any geometry. The root feature acts as a "container" which only holds references to all of the "member" sub-feature instances. Depending…
Attached is very brief VBA example (and sample design file) which uses XFT to rotate cell feature instances using a "ROTATION" property. Please note this sample does not perform the following verifications...
Which cell feature class is being…
Charlie,
I would recommend that you review the PlaceAnnotation2 method in the Library module of the xfmStdOpsLib.mvba (e.g. the XFM Standard Operations Library) delivered with Bentley Map in the ...\Bentley\Map\vba folder. The code in that method will…