Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Browsing all 1677 articles
Browse latest View live

Re: [VBA] Need help with MDL Wrapper Function for...

The current InRoads sheet tools can make separate models with referenced in borders. But they are neither sheet models, nor therefore sheet border attachments.So manually changing these is time...

View Article


Re: [VBA] Need help with MDL Wrapper Function for...

Hi caddcop,I wrote below code snippet to demonstrate mdlSheetDef_get[set]BorderAttachmentId functions.    ElementID refId = INVALID_ELEMENTID;    SheetDef* sheetDef = mdlSheetDef_new ();...

View Article


Image may be NSFW.
Clik here to view.

Re: [VBA] Need help with MDL Wrapper Function for...

Yongan.Fu:Declare Function mdlSheetDef_setBorderAttachmentId Lib "stdmdlbltin.dll" (ByVal sheetDefIn As Long , ByVal borderAttachmentIdIn As DLong ) As Long DLong is a VBA User Defined Type (UDT)....

View Article

Image may be NSFW.
Clik here to view.

Re: Drop a LineStringElement to a series of LineElement(s)

theGreg:I tried dropping the LineStringElement, but it always says " Nothing to drop"A Line String Element is, in MicroStation terms, a primitive element, so by default it thinks there's nothing to...

View Article

[v8i VBA] LocateCursor while ILocateCommandEvents_Dynamics

Is it possible to have the locate-cursor-style shown while the ILocateCommandEvents_Dynamics-Event is running?I would like to let the user select elements. After selecting the frist one, the...

View Article


Re: [v8i VBA] LocateCursor while ILocateCommandEvents_Dynamics

It looks like you want the user to identify two cell elements.  You want to draw a line in dynamics from the origin of the first cell located to the current point.You are using a transient element in...

View Article

Re: Drop a LineStringElement to a series of LineElement(s)

Thank you all for your responsesI tried what Brien said, and it worked. Thanks a lot

View Article

Microstation XM Edition Bentley Microstation DGN 8.9 Object Library missing...

Good day all.I have access to MicroStation v8i SS3 at work, but at home I use XM editionIn SS3, the Fence object has a .GetFenceNames member, which allows you to get an array of the names of the...

View Article


[V8i C++] mdlAssoc_createOrigin()

I'm looking at mdlAssoc_createOrigin() in an attempt to create an association between a line and a cell. The line is written into the model just prior to the association attempt:ElementRef...

View Article


Re: [V8i C++] mdlAssoc_createOrigin()

Before the call to ReplaceElement, try calling mdlAssoc_getPoint, and use the returned location to update the cell origin. The dependency callback is likely un-happy with the initial/inconsistent state...

View Article

Image may be NSFW.
Clik here to view.

Re: Set Design File vba or key-in highlight color and Selection Color V8i is...

Jan, thank you for the reply. I try to cut down on time and typing. Phil gave me a way to change the VBA and I was able to drop all the MacroHandlers from them. But I have tool bar Icons that change...

View Article

Re: Set Design File vba or key-in highlight color and Selection Color V8i is...

I will try and use your example and see if I can make a script and tie that to the button and skip the VBA. But I like the F8 feature, and it finds my errors the script I have to put in a line at a...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] mdlAssoc_createOrigin()

Brien Bastings:Before the call to ReplaceElement, try calling mdlAssoc_getPoint, and use the returned location to update the cell origin. The dependency callback is likely un-happy with the...

View Article


Image may be NSFW.
Clik here to view.

Re: [V8i C++] mdlAssoc_createOrigin()

Bruce Reeves SRNS:OK - Don't fully understand why, but your recommendation was "spot on" !!In order to make your association valid, the dependency callback would have needed to immediately...

View Article

Re: Microstation XM Edition Bentley Microstation DGN 8.9 Object Library...

I would highly recommend not mixing or copying any .dll (.ma or any other binary) files from one product version (Bentley or otherwise) to another.  Specific to this example MicroStation V8 XM edition...

View Article


De-compile old MS Basic file with NO bas file

I have an old Microstation Basic file that I am trying to decompile to fix the errors and move it forward to V8i.  I don't have the bas file to go with the ba file.  Can the ba file be decompiled by...

View Article

Re: [VBA] Need help with MDL Wrapper Function for...

Sorry, it's my fault (plus doc's fault).In MDL side, mdlSheetDef_getBorderAttachmentId use ElementID * as its second parameter but mdlSheetDef_setBorderAttachmentId use ElementID as it. Using...

View Article


Select all elements with handles Microstation V8i

Hi Guys,I just want to select all elements in dgn displaying their vertices as shown in the figure.Problem is i can't able to display the (dgn)element vertices while capturing the (tool)element using...

View Article

Image may be NSFW.
Clik here to view.

Re: Set Design File vba or key-in highlight color and Selection Color V8i is...

Compare this:Your solution: To change active attributes, MicroStation VBA engine has to be started, it has to load mvba file and the code is processed. And the only thing the code does is to simulate...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] mdlAssoc_createOrigin()

Bruce Reeves SRNS:I'm looking at mdlAssoc_createOrigin() in an attempt to create an association between a line and a cellI looked through my dusty storeroom of MDL snippets to see if I could find...

View Article
Browsing all 1677 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>