RE: [V8i VBA/MDL] Can the Viewgroups Object be sorted?
[quote user="Barry Lothian"]Is it possible to sort the viewgroup objects within the Viewgroups?[/quote]There's no API to sort the view groups list, either in MDL or VBA. Equally, there's no way to...
View ArticleRE: [CONNECT] How to retrieve values from IECPropertyValue object
you would need to use NativeValue
View ArticleRE: [V8i VBA/MDL] Can the Viewgroups Object be sorted?
Thanks Jon, I wrote a quick macro which deleted all view groups (except 1 for the default model) and then recreated them by iterating through each modelreference and created a new view group (using the...
View ArticleRE: [CONNECT] How to retrieve values from IECPropertyValue object
I'm running into problems retrieving data. On my element, I found a single instance (Bentley.DgnPlatformNET.DgnEC.DgnECInstanceCollection) which contains (at least) 1 class: LineStringElement....
View Article[CONNECT] How to retrieve values from IECPropertyValue object
When reading EC data from an element, I can utilize IDgnECInstance.GetPropertyValue("myProprty") to return an IECPropertyValue. That class has methods for returning some data types like StringValue,...
View ArticleRE: [V8i C#/.NET] mdlDimStyle_setBoolIntProp
[quote user="clever_anthony"]I guess that the option is relative to DIMSTYLE_PROP_ExtensionLine_ShowAny_BOOLINT[/quote]With software development, guessing is bad.[quote user="clever_anthony"]However,...
View Article[V8i C#/.NET] mdlDimStyle_setBoolIntProp
User would like to re-enable the extension flag which is missed in ComApp.I guess that the option is relative to DIMSTYLE_PROP_ExtensionLine_ShowAny_BOOLINT.However, the "mdlDimStyle_setBoolIntProp" is...
View ArticleRE: [Connect C#] Dot NET 4.6.1
Hi Paul, why are you asking? Do you experience any specific problem or issue running MicroStation add-in, targeting NET 4.6.1, in MicroStation? All NET Fromework versions 4.x use the same CLR (version...
View Article[Connect C#] Dot NET 4.6.1
Has anyone had any experience with trying to write an AddIn in Dot NET 4.6.1 and getting it working with MS Connect?Thanks and regardsPaul
View ArticleRE: Bought the Learning Microstation VBA book but the CD doesn't work
Although I do not know if you can replace the CD by itself, I would suggest first calling one of the sales numbers listed at the bottom of the page to see if anything can be done about lost/missing...
View ArticleBought the Learning Microstation VBA book but the CD doesn't work
Hi I bought the Learning Microstation VBA book in 2014 but only managed to use the book recently I tried to view files on the CD they provided but its not reading. Where can I get the files on this...
View ArticleRE: [CE C#/.NET] Example : Create a Solid Slab
You could use SolidPrimitive.CreateDgnExtrusion to extrude a rectangle into a slab.
View ArticleRE: Change Color Independent of Fill Color
Here is a snippet of the code I used set the value of the Template property:Private Sub cmdUpdateTags_Click() If Not (oElement.HasAnyTags) Then Else Dim oTags() As TagElement Dim oPropertyHandler As...
View ArticleChange Color Independent of Fill Color
I have element templates that allow setting multiple properties quickly in VBA by using:PropertyHandler.SelectByAccessString "Template"After setting the value of the property handler to the name of the...
View ArticleRE: [CE C#/.NET] Example : Create a Solid Slab
[quote user="Maury"]SolidPrimitive.CreateDgnExtrusion[/quote][quote user="Brien Bastings"]SolidPrimitive.CreateDgnBox [/quote]Good answers to a different question: those methods from the...
View ArticleRE: ActiveDesignFile.Levels.Find going crazy??
I am running out of words now ... As written in my last post we now use Jans suggested code to set the level for new elements placed by a VBA-program It worked fine so far - but today we had the same...
View ArticleActiveDesignFile.Levels.Find going crazy??
I use the following code phrase quite often:Set lev = ActiveDesignFile.Levels.Find("SM3D_ELEKTRO_DECKENLEUCHTE") If lev Is Nothing Then Set lev =...
View ArticleModifying element's Identification properties through VBA code using AECOsim API
Hi guys, could anybody provide some VBA code using AECOsim API, which modifies element's (for example slab or it could be any other element type) Identification properties (ID|Type ID, ID|Notes,...
View ArticleRE: [CE C#/.NET] Example : Create a Solid Slab
They may not be in the documentation, but they are most certainly in the DgnPlatformNET API as I am using them in C#.Bentley.GeometryNET.SolidPrimitive
View Article