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…
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, 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…
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…
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…
...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…
...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…
Erik,
For polygon collections you can handle them just as you always have, working with a root (collection/container) feature and then the subfeature (member) geometries. You continue to use the MicroStation object library to create and manipulate…
...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…
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…