[V8i C++] Locating elements using MstnElementSetTool class
I'm creating a tool derived from MstnElementSetTool. I'm trying to utilize OnPOstLocate() and OnDataButton() to allow only certain conditions that lines can be selected. Specifically, I want the user...
View ArticleRe: [V8i C++] Usage of ElementAgenda.SetCapacity() in tool constructor causes...
ElementAgenda is a class. It inherits from std::vector<T_ElemHandle>, which is a template class (see ElementAgenda.h).We external developers use a Release build of MicroStation. When we build...
View ArticleRe: VBA- Vers 08.05.02.35
Thanks Robert. I am using Fence.DefineFromModelPoints but for some reason I get no object found error. The error is sporadic even within the same drawing. One time it works and the next time it bombs...
View ArticleRe: VBA- Vers 08.05.02.35
rlb1130:I am using Fence.DefineFromModelPoints but for some reason I get no object found errorIt's because, as far as I can see, you haven't assigned your fence variable. It's an empty object, so I...
View ArticleTrapping error with TagDefinitionName
HelloI try to export cell information to Access.The code works mostly but with some cells, like in the attached file, the export stops with an "Unknown error".Is it possible to trapp and skip these...
View ArticleRe: Trapping error with TagDefinitionName
hansh:I try to export cell information to AccessIs your VBA code running in MicroStation or in Access?hansh: If Not oTags(i).TagDefinitionName = "" ThenI don't think that test has any value, since a...
View ArticleRe: Microstation V8i SS2 - autobreak lines
ok saw the video so its a work flow problem and how you cell was created first edit your cell so it has a background fill same colour as the cad design plane ie black colour 255 BG ( ie autocad...
View ArticleRe: Change Elements Elevation with in the drawn polygon and break lines...
Hi DanPaul,Small Problem with the code provided by you.mdlMeshDscr_fromElmdscr(&MeshElmDscr,gMSElmDescr,MASTERFILE,0,0,0,3,FALSE);Private int mdlMeshDscr_fromElmdscr( MSElementDescr...
View ArticleRe: Trapping error with TagDefinitionName
HiThe code runs in MicroStation.Element Information for one of the (corrupt) cells looks like this:What I can see is this cell not included in your export to excel soyou've managed toskip...
View ArticleRe: VBA- Vers 08.05.02.35
Thanks Jon! Seems to have worked. Will keep fingers crossed as thought I had it working before..LOL..
View ArticleRe: Trapping error with TagDefinitionName
hansh:Element Information for one of the (corrupt) cells looks like thisI see the same. I don't know what could have happened to those tag elements. It's not something that we can answer in this...
View ArticleRe: Change Elements Elevation with in the drawn polygon and break lines...
I do not understand what you mean as problem. You must have set up correct transformation. Debug that code and find out which transform is causing the issue. I can not see your runtime values.
View ArticleRe: [v8i SS2 - VBA] How to Add Multiple Entry in Config File.
Hi RJ,You're potentially doing the right concept, but you are using the wrong term... Microstation has "Config File" which are "Microstation configuration files" which have specific purposes in...
View ArticleRe: mdl call from vba
Thanks very much, Jon. That did the trick. Also fixed some of my erroneous assumptions regarding the translation of a couple of mdl calls that I didn't know where wrong at the time.Stephanie
View ArticleRe: [v8i SS3 MDL] Opening task navigation dialog after MDL application is loaded
Hi,Even my task toolbox visible without problem, I still see below messages window on some computers. I think IconCmds are still requested before my application is loaded but refreshed after calling...
View Article[V8 MDL] Add shared cell definition to work file
Hello,I need to build a new shared cell definition from elements (something like orphan shared cell), add it to a work file and then create many instances of it in this work file.Is it possible?There...
View ArticleRe: [V8 MDL] Add shared cell definition to work file
DanPaul:Is it correct to create a descriptor of definition element and use mdlElmdscr_addByModelRef ?Yes, that will work fine...there is nothing special that needs to be done for shared cell...
View ArticleRe: [V8i C++] Locating elements using MstnElementSetTool class
Bruce Reeves SRNS:The question is how to "reject" the datapoint when OnPostLocate() return false. When I datapoint while on the "rejected" element, the OnDataPoint() is still called, and I don't know...
View ArticleRe: RasterManager.Rasters.Attach issue
It’s not the same file. The files I have to attach, are orto photographs (*.ecw), “little” big, around 24MB each one, and on one DGN, depending on its scale, from 4 or 5 to near 10 or even more. The...
View Article[V8i-VBA] Enable/Disable AutoCAD units and work mode dialogs
I have developed a Microstation VBA application to open, extract AutoCAD tags information and create PDF/TIFF images from AutoCAD files in a specified folder. I can enable/suppress the DWG/DXF Units...
View Article