[Connect CPP] Place label programmaticaly
HiIn V8i we are using tags in some of our applications. In MicroStaton Connect we would like to use items instead. When you work with tags you can choose whether they should be visible or not. In CE...
View ArticleRE: [V8i VBA] Cell Creation and Annotation Scale
We can't see where that error occurs. Step through the code using Debug to determine the line where that occurs.Use assertions to test your assumptions. For example...Set oCell =...
View ArticleRE: [V8i VBA] Cell Creation and Annotation Scale
[quote user="Jon Summers"]Your code looks similar to the example Annotation Scale for Elements in VBA help, so it should be OK. The only thing that occurs to me is that you're modifying a brand new...
View ArticleRE: [V8i VBA] Cell Creation and Annotation Scale
[quote user="Barry Lothian"]The highlighted error line shown in the debug is propH.SetValue True[/quote]That method is documented as taking Variant, Point3d etc. I think Boolean should be handled as a...
View ArticleRE: MVBA causing Microstation to lock up?
I seem to be running into this issue with many of my customers recently. The only solution I have found is deleting the VBA file.. Luckily I have just about finished up phasing out all VBA.
View ArticleRE: MVBA causing Microstation to lock up?
If it happens again I will probably get rid of it as well. I only use it for rotating text to match the rotation of an element. There are other ways to do that but nothing as quick and easy as that VBA...
View ArticleMVBA causing Microstation to lock up?
I regularly use the ActiveAngleAssistant.mvba with V8i and it usually works fine. I recently had an issue where that MVBA caused MicroStation to lock up. It's set to pre-load in my workspaces which...
View ArticleRE: [V8i VBA] Cell Creation and Annotation Scale
[quote user="Jon Summers"]Try this (you realise I'm grasping at straws?)...[/quote]Heh, it's probably the first time I've found you struggling with a query :/I tried changing the variable type but its...
View ArticleSetting a loaded raster to read/write in VBA (Microstation v8.5)
I'm trying to change the Read/Write status of an attached raster through VBA.Recording a macro gave me the following code.SetCExpressionValue "tRMDlgSettings.bOpenReadOnly", 1, "RASTMGR"This worked to...
View ArticleRE: [CONNECT DgnPlatformNet] How do I measure dimensional properties?
At this time the managed API does not provide direct access to element linear and volumetric properties. We will file a enhancement request to get the functionality added. Until that time, here are a...
View Article[CONNECT DgnPlatformNet] How do I measure dimensional properties?
If I'm writing a C# AddIn using the DgnPlatformNet, how do I get planar properties such as area & perimeter? How do I obtain volumetric properties such as volume & centroid?
View ArticleRE: Microstation VBA - calling mdl function - mdlSurface_extractExtrusion
Jon, do you have a similar solution for Type 19? Im trying to do the same thing for solids Regards, Cesar
View ArticleRE: Microstation VBA - calling mdl function - mdlSurface_extractExtrusion
[quote user="Cesar Mattos"]Do you have a similar solution for Type 19?[/quote]Please start a new thread. This thread is (a) stale and (b) lengthy. Also, I'm unsure what a 'similar solution' might be....
View ArticleRE: Microstation VBA - calling mdl function - mdlSurface_extractExtrusion
I have a new thread here communities.bentley.com/.../127746
View ArticleMicrostation VBA - calling mdl function - mdlSurface_extractExtrusion
Hi,I have a type 18 suface element that contains two line strings (and a lot of other line element that I'm not interested in) that are being used to represent railway rails in a 3d drawing. I've been...
View ArticleRE: [V8i VBA] Cell Creation and Annotation Scale
Hi Barry, a few quick notes "without hands-on coding": In my opinion PropertyHandlers can be used with elements existing in ElementCache (in design file). Until the element is added, it exists in...
View Article[V8i VBA] Cell Creation and Annotation Scale
I'm looking to update a macro which creates and places a cell using CreateCellElement2 however although the cell I am placing is an annotation cell its being placed at its original scale which is set...
View ArticleRE: [CONNECT VBA] GetCExpressionValue
The source code for GetCExpressionValue for both MicroStation V8i and CONNECT is identical - no changes to the topmost level of the functions. If there is a specific use (or test) case you can point...
View Article[CONNECT VBA] GetCExpressionValue
A couple of posters have noted that VBA's GetCExpressionValue doesn't work in CONNECT as it worked in earlier versions of MicroStation. Are C expressions fully-functional in CONNECT? Are all MDL...
View ArticleRE: mdlMeasure_elmDscrArea : is this changed in connect version
[quote user="djeten"]cExpression = "mdlMeasure_elmDscrArea(" & VarPtr(area) & "," & VarPtr(perimeter) & "," & desc & ")"[/quote]What could be happening is that the pointers are...
View Article