...okay very good, thank you for that update. I would also recommend that before calling the .GetSubFeature(0) method, your code performs a check to ensure that the .SubFeatureCount property has a value greater than 0.
Jens,
Thank you for that confirmation. Please refer to this wiki article for information on the " Bentley Geospatial Desktop Platform Extranet " and the " Bentley Map - Development and Product Customization Guide " which includes the following VBA…
I have got a problem that at least did not exist in BentleyMap SS2. I have veryfied that it exist in Bentley Map SS3 built 95 and sadly enough also in the new service release with built no 107.
In short:
I have a small Mvba app that defines a new…
Krister,
I've posted a complete example here which includes a sample COM server written in C# which demonstrates one approach to calling the Bentley Map Interoperability managed API methods from VBA. The following sample VBA form should give you some…
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…
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…
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…
Jiri,
For the following compound geometry...
SHAPE(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES) --------------------------------------------------------------------------------------------------------------------------…
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…
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…
Jens,
I refactored the sample VBA application a bit to account for polygon collections, including instances consisting of disjointed areas. I did nothing to account for holes at this time. For details, please refer to comments in the findCentroid and…
...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…
...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…
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…
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…
...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.
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…
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…
Stefan,
You will most likely have to use regasm.exe to manually register the generated type library, something that is done automatically when Visual Studio compiles the assembly if the projects "Build > Output > Register for COM interop" option is…
Frank,
Using VBA along with the Bentley Map XFT (XFM Feature Toolkit) library, you can convert tag data into XFM business properties. A pattern similar to the following could be applied.
Function GetTagSet (strName As String ) As TagSet
Dim…
...you will need to use the CreateObjectInMicroStation method on the MicroStation application object to ensure that your XFT objects are created in the MicroStation's address space. The CreateObjectInMicroStation method is useful for an out-of-proc program…
Greetings Erik,
For the Bentley Map V8 i (SELECTseries 3) 08.11.09 release, many of the API enhancements will be for use by .NET developers in the interoperability area. A minimum number of XFT changes will be included. No changes are planned for the…