V8i - InRoads (SS2/SS4) VBA Help?
Where could I find the documentation for any classes/objects/methods/etc. for accessing InRoads via VBA? Is there such a thing?Thank you.
View Article[CONNECT C++] Install Viz Studio 2015 with all C++ Features
As I learned recently, installing a default Viz Studio 2015 does not install all C++ features. You have explicitly to select them. If that surprises you (it did me) then visit discussion groups that...
View ArticleRE: V8i - InRoads (SS2/SS4) VBA Help?
Full disclosure - I'm using Power InRoads...I don't have that file available to me (or at least, not at that location). That's a shame! I really liked the way that Geopak was accessible from VBA. So...
View ArticleRE: [V8i C++/C#] Native MDL and ProStructures
[quote user="Jon Summers"]I'm biased because I choose not to develop for MicroStation V8i using C#.[/quote]Well, I have to confess I was more "forced to choose" than I choose it ;-)But both for V8i and...
View Article请问如何获取“材质/面连接”的材质id
用 “查询材料” 命令可以查到 “智能实体面包含材料****",但是用 mdlMaterial_getInternalAttachedMaterialElementId、mdlMaterial_getExternalMaterialAttachment...
View ArticleRE: [V8i C++/C#] Native MDL and ProStructures
Hi Nick,Per Jon and Jan's recommendation, C++/CLI is likely the most efficient and effective way to bridge your calls between native and managed code APIs.ProStructures .NET Add-ins (ProSteel and...
View ArticleRE: 请问如何获取“材质/面连接”的材质id
In the case of this solid, there isn't a single material attached to the entire element which is why mdlMaterial_getInternalAttachedMaterialElementId and mdlMaterial_getExternalMaterialAttachment...
View ArticleRE: Using a MACRO to change specific reference file logical names
Thank you for this. What determines the default logical name of the files?I am using Microstation through a specific DOT user and i'm not sure if the default logical names are stored anywhere. In order...
View ArticleRE: Using a MACRO to change specific reference file logical names
Hi Taylor,[quote user="Taylor Brownlow"]Is there a way to do this for every specific reference file listed below (logical names are correct in picture)?[/quote]Probably yes, but you still have not...
View ArticleRE: Using a MACRO to change specific reference file logical names
Sorry, yes. to go from file name 123456SIGN.dgn to logical name SIGN or 123456sign.dgn to logical name SIGN.
View ArticleRE: Using a MACRO to change specific reference file logical names
This will check for blank logical names and replace them with the last four characters of the base filename (no extension). Sub SetLogNameAsDefLogName() Dim att As Attachment Dim NewLogicalName As...
View ArticleRE: Using a MACRO to change specific reference file logical names
Wow great that's what I had in mind but it includes the whole file path as shown below. I understand that the -4 in the code is to get rid of the .dgn. How would I specify the left bound?
View ArticleRE: Using a MACRO to change specific reference file logical names
Hi Taylor,in my opinion Chuck's code is not robust enough, because it works for 4 characters after the digits only, which has not been defined it will be always true.You can adapt this example to have...
View ArticleRE: Using a MACRO to change specific reference file logical names
Sorry, but I only updated your code, no testing was performed.Sometimes, once you have the MicroStation VBA part working, Google is the best way to get "generic" VBA help.I found this link is a few...
View ArticleRE: Using a MACRO to change specific reference file logical names
I like Jan's addition. He clearly spent more time looking at this.As long as you are updating reference attachments, you might want to consider updating reference file descriptions as well.That would...
View ArticleRE: Using a MACRO to change specific reference file logical names
I forgot to remove the file extension, so one extra function is required:Private Function StripLeadingNumbers(inputText As String) As String Dim textLength As Long textLength = Len(inputText) Dim...
View Article[CONNECT C++] How to change a line of text into a text node
I'm attempting to update text on a drawing using an old "company" .rsc font into a TrueType font. I have a few instances where we have used "special" symbols assigned to locations in the .rsc file...
View ArticleRE: Using a MACRO to change specific reference file logical names
Thank you Jan! I run the macro, replacing "myreference" with the real file. Am i to add the previous logical name code?
View ArticleRE: Using a MACRO to change specific reference file logical names
Hi Taylor,[quote user="Taylor Brownlow"]I run the macro, replacing "myreference" with the real file. Am i to add the previous logical name code?[/quote]my code is an example how to manipulate with...
View Article