RE: Get Coordinate
As you can see in code example it already contained DoEvents and that is the method which causes issue with zoom as it takes too long to process. Found out that better GUI response I can get using...
View ArticleRE: Get Coordinate
[quote user="Oto"] What I am trying to achieve by using this example code is to replace "running coordinates" and show GPS position instead[/quote]Write a class that Implements IPrimitiveCommandEvents....
View ArticleRE: [V8i VBA] Detecting if coordinate is above or below target element
[quote user="Jon Summers"]Barry LothianThis could be 1 of 2 possible directionsThat's what the cross product help you to resolve. It's another vector, that will be pointing up or down (i.e. positive...
View ArticleRE: How to activate a model in C# V8i
[quote user="HDR_Coder"]How does one get model refs in C# on V8i?[/quote]I suggest that you create a prototype of your code in VBA. If that works, you're in a strong position to analyse why it doesn't...
View ArticleRE: How to activate a model in C# V8i
I did. Here is the ugly workaround.Sub iterateModelsAndRunKeyin() Dim Model As ModelReference For Each Model In ActiveDesignFile.Models Model.Activate Pause 10 CadInputQueue.SendKeyin "MDL LOAD...
View ArticleRE: How to activate a model in C# V8i
[quote user="HDR_Coder"]ForEachModel InActiveDesignFile.Models[/quote][quote user="HDR_Coder"]foreach(ModelReference model innewapp.ActiveDesignFile.Models)[/quote]Is it an issue with temporary object...
View ArticleRE: VBA does not recognize reference logical name change unless file is...
Jan ... I found the issue but, not sure how to fix it. What I am doing after attaching the reference is running a sub function that will do a text substitution on the attached reference.Then running a...
View ArticleRE: VBA does not recognize reference logical name change unless file is...
Please follow the MicroStation Programming forum best practices.Identify Your PlatformPlease identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation...
View ArticleRE: How to activate a model in C# V8i
My bad, the "new app.ActiveDesignFile.Models" was a typo from "foreach(ModelReference model in new List<ModelReference>(){app.ActiveModelReference})."I already tried foreach(ModelReference model...
View ArticleHow to activate a model in C# V8i
I am trying to activate a model. The below code gives me the error:An exception of type 'System.EntryPointNotFoundException' occurred in Bentley.Civil.CadSystem.Microstation.2.0.dll but was not...
View ArticleRE: How to activate a model in C# V8i
Hi,a few unsorted comments and thoughts that crossed my mind when I read the discussion:It's not mentioned in documentation if VBA method Activate() is (a)synchronous. My feeling is that it behaves...
View ArticleRE: VBA does not recognize reference logical name change unless file is...
Hi Rolands, I agree with Jon that the method side effect - the activation of a reference - probably invalidates existing VBA objects, so the code does not work as expected. I also dislike to use Find...
View ArticleRE: VBA does not recognize reference logical name change unless file is...
[quote user="Jan Slegr"] I also dislike to use Find and Replace Text tool and using key-ins[/quote]Yes, it does make the code look rather messy.Here's a VBA text find-and-replace tool...The VBA project...
View ArticleRE: [CONNECT C++] mdlRaster_clipBoundarySet
I join a small dgn with 18 rasters with clip boundary. If the dgn is opened with MicroStation V8i, it is Ok. But opened with MS CONNECT the clip boundary is randomly ignored. I join a screen copy of...
View Article[CONNECT C++] mdlRaster_clipBoundarySet
Hello,Is mdlRaster_clipBoundarySet obsolete in CONNECT ?I use Windows 7. That function works well in V8i, but the clip boundary is sometimes ignored in CONNECT.Best regards.Patrice
View ArticleRE: How to apply the textures to the surface?
Hi Karthik, it's not quite clear if you don't know how to do it in MicroStation (how a material should be attached to an object) or you don't know how to implement it in a code. I recommend to try it...
View ArticleRE: How to apply the textures to the surface?
[quote user="Karthik M"]I am using Microstation v8i Select series 3. I Have tiff image and 3d Polygon surfaces i need to be apply the textures from the tiff image to 3d Polygon surfaces[/quote]I assume...
View ArticleHow to apply the textures to the surface?
Dear all, I am using Microstation v8i Select series 3. I Have tiff image and 3d Polygon surfaces i need to be apply the textures from the tiff image to 3d Polygon surfaces. Frankly i don't...
View ArticleRE: [CONNECT C++] How do I read EC Units Schema data?
auto attr = unitClass->GetCustomAttribute(L"Unit_Attributes", L"Unit_Attributes"); // schema name, class name ECValue v; attr->GetValue(v, L"ShortLabel"); auto shortLabel = v.GetString();
View Article[CONNECT C++] How do I read EC Units Schema data?
<ECClass typeName="YARD" displayLabel="yards" isDomainClass="False"><ECCustomAttributes><Unit_Attributes...
View Article