Browse By Tags

  • AddinManager - MSCE 中 Addin 开发辅助插件

    在进行 Bentley 的 MicroStation (或者其他基于 MS 的软件,如 OpenRoads Designer 、 ABD 等)进行开发时,为了解决在开发过程中的对插件代码修改后,必须将 MS 软件关闭并重启,才能对插件进行重新编译与调试的问题, MS 提供了 MDL Load 与 MDL Unload 的命令,实现了开发过程中的插件加载与卸载。对于 Addin 程序,也可以通过 MDL Load 并指定应用程序域的方式进行插件的加载与卸载( MDL LOAD csAddins,,MyDomain…
  • 如何求出地形与某平面或网格的相交轮廓线

    比如要在现有的地形中设计一个取土场或渣场,在选定了大致的位置后,指定场地的标高,此时我需要得到此标高对应的平面与地形的相交轮廓线,并以此进行后续的场坪建模以及对原进行的剪切开挖等操作。 如图所示,在此地形中,通过在某区域指定一个标高 ,希望通过得到它与原地形的相交轮廓线,然后以此轮廓线进行场地开挖,得到如下效果: 。 请教几个问题: 1. 如何通过ORD中的相关操作得到此相交轮廓线(上图中的轮廓线是通过Autocad中的某插件完成的)? 2. 将此问题进行扩展,可延伸为三维网格与网格对象求相交线的问题…
  • 求出地形与某平面或网格的相交轮廓线

    比如要在现有的地形中设计一个取土场或渣场,在选定了大致的位置后,指定场地的标高,此时我需要得到此标高对应的平面与地形的相交轮廓线,并以此进行后续的场坪建模以及对原进行的剪切开挖等操作。 如图所示,在此地形中,通过在某区域指定一个标高 ,希望通过得到它与原地形的相交轮廓线,然后以此轮廓线进行场地开挖,得到如下效果: 。 请教几个问题: 1. 如何通过ORD中的相关操作得到此相交轮廓线(上图中的轮廓线是通过Autocad中的某插件完成的)? 2. 将此问题进行扩展,可延伸为三维网格与网格对象求相交线的问题…
  • 参考文件时如何将参考的文件路径设置为相对路径

    我使用函数AddCoincident1(string FileSpecification, string ModelName, string LogicalName, string Description, MsdAddAttachmentFlags Flags)参考了一个文件,当我把当前打开的文件移动了位置后,被参考的文件就找不到了,因为它只能保存绝对路径,我应该如何设置为保存相对路径呢,这样就不怕移动文件了
  • 使用Addins在V8iSS3下开发停靠窗体,拖动后窗体内容丢失

    如左图所示,我新做了一个可以停靠的窗体,并在窗体中添加了treeView控件。当我按住主窗体标题栏拖动窗体的时候,出现了一个错误!窗体里的TreeView不见了。请问各位大神这个问题怎么解决呢?很影响体验呀。
  • 【addin】【c#】app.smarlsolid.solidunoin()

    当使用app.smarlsolid.solidunoin()合并两个Element时,当两个Element挨着(没有重合,就是相切)的时候就会报错。 用户代码未处理COMException msdError -9078
  • [V8i C# Addin] Manipulate the Tasks Panel

    Hello again, I am using V8i Select Series 4, C# addin development. Is it possible to add/remove/update tasks in the task bar from the addin? I added the below "Custom Toolbar" toolbar/task manually and would like to manipulate it from the addin. …
  • [CONNECT C#] How to handle XAttributes

    I learned that external data can be linked on elements using linkages or XAttributes, and XAttributes are suggested over Linkages. I found methods like AppendLinkage() for Element to handle linkages, but methods related to XAttributes in Addin development…
  • Drape Polygons on to ASCII Grid - Using C# for Microstation V8i SS3

    Hi Team, Application : Microstation V8i SS3 Development : Visual Studio 2005 Inputs Client provided 2D Building footprints (Shapes) dgn along with respective DTM ASCII Grid File. Requirement Retrieve the minimum height of all vertices…
  • C# Addin Dialog variables

    I have been writing a C# Addin for Microstation. I can capture the dialog open hook, but cannot get access to any of the variables within the dialog. I want to both read and write these values so that when the dialog closes it uses my changed values…
  • COM error from c# app outside VS?

    I have a c# app developed in visual studio 2012 that references bentley.interop.microstationdgn.dll to process dgn files. When I run the app in studio it works fine but, when I try to run it outside of studio, I get the following error: Retrieving…
  • [V8i C#] Trouble setting the propertyhandler

    I am having trouble setting the propertyhandler and get an error when trying to get the value of the property. The propertyhandler appears to be set and allows the debugger to continue but stops at the GetValue function. BCOM. Element oEle = (BCOM…
  • C# Feature SetProperty method problem

    Hi Everyone, I try to set property on feature like this oFeature.SetProperty("PROPERTYNAME", Value); oFeature.ApplyAttributeChanges(); oFeature.Write(true); everything is good but when i open Data Browser in Bentley the result is: Unable to…
  • C# GetPropery() from Dateticks Type Property

    Hi, I have problem when use GetProperty("INSTALLDATE") from Dateticks Type Property method is return String like this "635590796670000000". How to convert this string to DateTime type?
  • Mouse Click Event in C# Addin

    Hello, I am developing a tool(just for study purpose) to split line. For that i have to get the clicked point of mouse on the microstation view. Please anyone told me how can i get this done. I am developing the tool as an addin using visual studio…
  • V8i SS3 BETA problems

    Anonymous
    Anonymous
    I have migrated with my C# (ADDIN) code to Microstation SS3. However, when I use my application now (DLL) in Microstation SS3 I get always an error message: "Hresults:0x80121165" CLR failure I have checked and it is related to the routine listed…