RE: [V8i VBA] Check if a model already exists
Hi,I am not sure if I understand the logic behind this code. At least some variables are not assigned with proper values.Here some code lines I have put together to create a new model with check if...
View ArticleRE: [V8i VB.NET MDL VBA]
Sorry, I do not have an answer for you, but why not just use the DgnLib to create a toolbox rather than making a separate exe that does the same thing?
View ArticleRE: [V8i VBA] Check if a model already exists
Hi Artur, Yes my example didn't include all variable declarations as I was only showing the lines relevant to how I was attempting to check for existence of a model. Thanks your example code , I'll...
View ArticleRE: Difference between v7 and v8 font.rsc
[quote user="Don P"]For Each ts As BCOM.TextStyle In tss[/quote]tss presumably is a reference to DesignFile.TextStyles?What is newTextStyles?What is textStyleInfo?What's in method CreateTextStyle?I'm...
View ArticleRE: [V8i VBA] Check if a model already exists
[quote user="Barry Lothian"]oModel.Name LikeoSheetModelName[/quote]Like and is identical have different meanings. Perform an exact comparison of model names, as Artur suggests.
View ArticleRE: [V8i VBA] Check if a model already exists
The only reason I used Like was because it was shown in the VBA help example.Sub DeleteModel(dgn As DesignFile, strName As String) Dim index As Integer For index = dgn.Models.Count To 1 Step -1 Dim mdl...
View Article[V8i VBA] Check if a model already exists
I am trying to check if a proposed modelreference I am trying to create already exists in the activedesignfile i.e. does a model already existing the DGN file with the same name. If so, proceed to next...
View ArticleRE: [V8i VB.NET MDL VBA]
[quote user="Frank Moore"]The first time I attempt to pick on and select a line I have to click twice. The first click sets the focus to the MicroStation window and the second does what it is supposed...
View ArticleRE: [V8i VB.NET MDL VBA]
Thanks Maury. The .exe is already created so I wanted to use it in the mean time. I have also created some menus using the "screen menus" which seem to work well but the exe had nice dropdown menus for...
View ArticleRE: [V8i VB.NET MDL VBA]
Thanks Jon, that set me on the correct path.Here is the modified code. So far this is working. I'll run it through the passes to be sure it is stable. Private Sub BVA_WN_Click(ByVal sender As...
View ArticleRE: [CE C#/.NET] Example : Create a Solid Slab
Okey, so how about the method of slab by extrusion? I saw no shape element content could be defined but only Vector (Z) Also, slab should be in rectangular but it requires CurveVector (more likely to...
View ArticleRE: [V8i VB.NET MDL VBA]
[quote user="Frank Moore"]Here is web page that I got it from...[/quote]CodeProject and StackOverflow are both useful resources. They are mentioned in our Programming Links.They are most useful when...
View Article[V8i VB.NET MDL VBA]
I am using V8i ss 3 on Windows 7I am using a menu created in vb, a .exe, (a stand-alone app. (an EXE) ) and I am using it to call commands written in mdl and vba.Here is a typical sub that calls an mdl...
View ArticleRE: [CE C#/.NET] Example : Create a Solid Slab
Sweep Along Path is done using CreateDgnRuledSweepThe CurveVector required in DgnExtrusionDetail is the shape/profile that you wish to extrude.CurveVector curveVector =...
View ArticleRE: How do you set fill color with VBA?
[quote user="William Sessums"]I am trying to set the fill color of a closed shape[/quote]' SetFillColour ' If oElement is closed, the apply the specified fill color. You'll need to ' rewrite the...
View ArticleHow do you set fill color with VBA?
I am using Microstation V8i.I am trying to set the fill color of a closed shape.I can get the current fill color by using the following: Dim oFillColorString As String Dim oFillColor As Long...
View ArticleRE: Wiki for useful code snippets?
[quote user="HDR_Coder"]I was wondering if there is a sort of wiki page where we can post helpful code[/quote]I think there's just such a Wiki here somewhere!Boost[quote user="HDR_Coder"]template...
View ArticleRE: Wiki for useful code snippets?
I found this: but am I able to add to the wiki?I have extended the above code to also list the name of the dgn file and the levels for each reference. This program lists only if the level is turned...
View ArticleRE: Wiki for useful code snippets?
Thanks! I have downloaded and compiled the boost libraries, I just haven't implemented too much. This will be a valuable function. I will plan on buying a book to learn more about the boost libraries....
View ArticleRE: Difference between v7 and v8 font.rsc
Thank you Jon, your inquiry regarding what CreateStyle got me looking at that function and I realized the error of my ways. I wasn't iterating through all fonts, and missed the client specific name....
View Article