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…
The original text2xfm VBA sample application could convert multiple text elements to XFM text features using a fence, selection set or the entire design file. If you could upload a copy of the text2xfm.mvba version you are using we can verify whether…
Bruce, thank you for that confirmation. If you could send me one more sample design file that contains shapes, complex shapes and grouped holes connecting to at least 3 different MSLINK values then I will complete verification testing of my revised code…
Stefan,
In the "xfmOracleExtensions" sample available in the online " Bentley Map - Development and Product Customization Guide ", take a look at the editInstance() method for an example of using XftCmdMgr.ActivateMethod() to open the "Edit" dialog…
Success! Although I did not have much luck with PlaceAnnotation2 (It seemed aimed at interactive placement, and I could never quite get the subfeature to rotate), I adapted a function provided by Bentley services. The main deal was to set the rotation…
...in VBA you can use the XFT.ILocateOpEvents interface as follows. First declare a new XFT locate operation object and set desired criteria.
Private Sub CommandButton1_Click() Dim oLocateOp As New xft.locateOP oLocateOp.IncludeOnlyFeatures = True…
Jiri,
For you adhoc connection (e.g. without a schema) code, you will need to add the following highlighted lines to the connectAdhoc method:
public void connectAdhoc(string userName, string password, string serviceName) { GDI.GDIExplorerOracleImportsNode…
Hi
I have a problem with making a locate while running through a feature enumerator from a previos made scan, PowerMap crashes when going to the second item in the outer loop.
I have made this very simple application to show the problem (The application…
...not familiar with that particular error, but at this time I would recommend the use of Visual Studio 2005 Edition when developing applications for the Bentley Map V8 i (SELECTseries 1) platform. Also when adding/replacing references to accomodate your…
Hello sphinxo,
The Road feature placement code is available in ..\Workspace\Projects\Examples\Geospatial\geo_example\designer\vba\example.mvba. See PlaceRoad subroutine in SimpleExamples module. (You may already have seen this, but thought I would…
...the network API is not formally documented at this time. Please forward questions regarding it's use directly to me. I would recommend that you search the MicroStation SDK or VBA documentation for the term "transient" to get a better idea of how they…
Yes, in addition to MDL (e.g. native C/C++) libraries, Bentley Map provides the XFM Feature Toolkit (XFT) COM object for development using VBA or .NET (e.g. C# or Visual Basic.NET) languages. Depending on your applications functional requirements, you…
...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…