how to create Fillet between 2 DSegment3d? and How do can I Chain all of them together inC#.net?
Hi Manh,
do you expect your question will be answered, when you did not provide any information about used product and its version? Please respect this forum best practices and specify the product and its version exactly.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Manh Tran said:how to create Fillet between 2 DSegment3d?
Searching SDK help provides answers:
CurveVector.CloneWithFillets()
DEllipse3d.TryCircularFilletBetweenRays()
Manh Tran said:How do can I Chain all of them together inC#.net?
Again, please respect the best practices and do not ask more question in one post!
When working with "topology oriented" objects like CurveVector, use a standard way, which is DraftingElementSchema class. Alternatively, there is (again, simple search SDK documentation provides immediate answer) ComplexStringElement class available, that can be useful in some situations also.
CurveVector
DraftingElementSchema
ComplexStringElement
I assume that you're asking about MicroStation CONNECT, but which version?
Manh Tran said:How to create Fillet between 2 DSegment3d?
A DSegment3d is a geometric structure. It's documented in the Bentley.GeometryNET.Structs help file.
DSegment3d
A DSegment3d is not a MicroStation DGN element. You must create a line element from the DSegment3d, then work with the methods Jan suggests. For example, see SDK example ..\csAddins\CreateElement.cs.
..\csAddins\CreateElement.cs
Regards, Jon Summers LA Solutions
My apologies for not reading the "forum best practices" before post the question in the forum. I will try to follow as best as I can. and thanks for your kind answer. For the version, I am using Microstation Connect Edtion update 10 - Version 10.10.00.23 and Openroads Designer Connect edition - 2020 release 1 update 8 - version 10.08.00.88
I am using Microstation Connect Edtion update 10 - Version 10.10.00.23 and Openroads Designer Connect edition - 2020 release 1 update 8 - version 10.08.00.88. I look at my SDK example folder but I did not see the csAddins. is there any way I can get a copy? I used mssdk10130048.msi to install the SDK.
THanks
Manh Tran said:I am using Microstation Connect Edtion update 10 - Version 10.10.00.23
It's quite old (2.5 years) version. It's recommended to use the latest one, which is Update 14.2 (and Update 15 will be released soon).
Manh Tran said:Openroads Designer Connect edition - 2020 release 1 update 8 - version 10.08.00.88.
It's also not current, but I guess it's fine (because it's "2020"). The latest ORD version is 2020 Release 3, build 10.09.00.91.
Manh Tran said:I used mssdk10130048.msi to install the SDK.
It's wrong! You cannot mix different product and SDK versions. Even when it's not critical when pure NET application is created, because only documentation and examples are used from SDK (not .lib files are linked as in C++), it's just not the right way.
When you have MicroStation CE Update 10, you should use SDK for Update 10. The same for ORD, where for every version, related ORD SDK has been released.
Manh Tran said:I look at my SDK example folder but I did not see the csAddins
Yes, it's right. I think csAddin is not part of MicroStation or ORD SDKs.
Manh Tran said:is there any way I can get a copy?
What about to e.g. search for csAddin in this discussion (plus Chinese when more information will be needed)? You will find many results where it's discussed, and in some also shared (e.g. this one). Be active!
But, personally, I think it's not so important. Why any code is needed to discuss how to create LineElement from DSegment3D, when using MStnPlatformNET documentation it's evident LineElement has constructor, accepting DSegment3d as parameter? Also, when you will invest time to search MicroStation SDK examples, you will many files using DSegment3D in different scenarios (to create LineElement, together with CurveVector etc.).
Jan Šlegr said: I think csAddin is not part of MicroStation or ORD SDKs
You're correct! It's a project kindly provided by Yongan.Fu. Here it is...
8546.csAddins.zip
Jan Šlegr said:It's quite old (2.5 years) version. It's recommended to use the latest one, which is Update 14.2 (and Update 15 will be released soon).
thanks for you advised but I currently work on some project that in update 10 right now. and if we update to a newer version it will require all members of the team who works on that project to be updated to a newer version which is impossible to make happen and I am not the one able to authorities to do that.
Jan Šlegr said:It's wrong! You cannot mix different product and SDK versions. Even when it's not critical when pure NET application is created, because only documentation and examples are used from SDK (not .lib files are linked as in C++), it's just not the right way.
Thanks, Jan.I will re-install the SDK. I am not a programmer, I am currently a designer, but I did learn a bit C#.net for myself while using Civil3d and see it as a good way to automatize some works. So when I get into Microstation I little don't know anything.. if you have any suggestions on where should I start or any book that I can read or any training programs please let me know? thanks
Jan Šlegr said:What about to e.g. search for csAddin in this discussion (plus Chinese when more information will be needed)? You will find many results where it's discussed, and in some also shared (e.g. this one). Be active!
thanks for the suggestion, and I am not Chinese.
Jon Summers said:You're correct! It's a project kindly provided by Yongan.Fu. Here it is... 8546.csAddins.zip
Thanks, Jon.
Manh Tran said:which is impossible to make happen
It's a pitty, because especially Update 13 and Update 14 brought many fixes and performance improvements (I treat Update 13 the first "can be used" version). With not very big exaggeration, U13 and U14 represent more enhancements than all previous versions together.
Manh Tran said:if you have any suggestions on where should I start or any book that I can read or any training programs please let me know?
Unfortunately it's not easy to answer, because there are not many sources:
I am working on own "C# for MicroStation" course (commercial), but it's not my primary project, so its progress is slow.
Manh Tran said:and I am not Chinese.
Well, and who cares? I am not neither and I found many answers there. In time, where it's so simple to copy/past text to Google, Bing and other translators, or even to let them to translate the whole page, language is not an issue anymore. Especially in programming, where keywords to be searched are typically English function or classes names and the translation can be understood even with mistakes, because used language is typically very simple.
Manh Tran said:How to create Fillet between 2 DSegment3d LineElements?
LineElement
I've written a CreateFilletExample that provides a tool to pick lines. After you pick two lines, the tool draws a fillet between the lines. The tool is written in C#.
Answer Verified By: Manh Tran