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

Image may be NSFW.
Clik here to view.

Re: [2004 MDL] Help me to know about Bmake.

Debugging by Telepathysagar:When I run the bmake just .mo file is created not .ma so what should i need to create .ma file?Nobody knows.  Unless you supply some evidence, we'll continue the same...

View Article


Re: [2004 MDL] Help me to know about Bmake.

I would start by reading the MicroStation Programmer Guide (help file delivered with the MicroStationSDK).  Look at the chapter "Building Applications" it tries to explain the build process and the...

View Article


Re: Geographical Coordinate System .AttachNamed not working

OK, I see where you were going and your code does work but it does not actually assign the newGCS to all the views, it adds the GSC to the dialog but does not make it ACTIVE.  I have similar code that...

View Article

[V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

I've got a model with a reference file attached, and I can perform MicroStation operations (e.g. copy) on elements of the referenced model. I've also got a tool derived from MstnElementSetTool that...

View Article

Re: Geographical Coordinate System .AttachNamed not working

For me the code to attach is working, and from what I can tell the keyin to activate the GCS to all views is work for me.  Try adding your coordinate system name to the acs activate all command.  e.g....

View Article


Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Opps - I think I just stumbled over the (an?) answer - the location works when the reference file is "Activated". I didn't even know there was such a thing.....

View Article

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

MstnElementSetTool::SetLocateCriteria uses mdlLocate_normal or mdlLocate_allowLocked based on what is returned from IsModifyOriginal. You could return true from IsModifyOriginal if your tool would want...

View Article

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Bruce, the activation of the reference is by no means the correct way. First, this must even be done by the users (manually) if they like to work with your app. Second, you are 'activating' the...

View Article


Re: measuring lines on a specific layer

Firstly, thanks for all the help.Phil, you are right about the measure tool doing what i need - i never knew about that !   but i still want to get into VB, so i would like to get the code...

View Article


Re: measuring lines on a specific layer

You missed ' oScanCriteria.ExcludeAllLevels ' It should be added before including the 'Earthing Proposed' level.

View Article

Image may be NSFW.
Clik here to view.

Re: measuring lines on a specific layer

2nowman:When i use your code, it automatically changes the line:accumulatedLength = 0.0    to    accumulatedLength = 0#VB appends the # character to Double literal values.  It's supposed to clarify...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Brien Bastings:If your tool is not going to make copies or modify the elements at all you just want to override SetLocateCriteria to call mdlLocate_allowLocked to allow these elements to be selected....

View Article

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Upon further testing, it seems that all that is needed was to return false from IsModifyOriginal() to enable selection of elements in reference files. I didn't override SetLocateCriteria() - should I...

View Article


Re: get raster coordinate

Hi,I'm really not familiar with the VBA API so I can't really help in details.You can build the raster to UOR transform using the information contained in "GeoReferenceInformation". This has the...

View Article

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Well - seems I was premature in the response. Yes, returning false from IsModifyOriginal() allows selecting of elements from references, BUT it also copies the element ......which is NOT the desired...

View Article


Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

The reason to not return false from IsModifyOriginal is to prevent styles, etc. from being cloned into the active model in OnPreElementModify when you don't want to copy elements. When not copying...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Brien Bastings:MstnElementSetTool is a modify tool base classIt inherits from MstnPrimitiveTool, which inherits from MstnTool— the base class for application-defined tools.MstnPrimitiveTool looks like...

View Article


Image may be NSFW.
Clik here to view.

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Brien Bastings:I'm a little confused why you want OnElementModify called when you don't intend to modify the elements?!?Here is the desired workflow - maybe you can suggest a different/better approach....

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Brien Bastings:It would be better to call __super::SetLocateCriteria and then call mdlLocate_allowLocked as the base class implementation also sets up the override for the ACS so that it doesn't...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] MstnElementSetTool and locating elements IN A REFERENCE FILE

Bruce Reeves SRNS:I just set OnElementModify() to return false so no changes are made/saved. This (I think) gets me what I want (more testing needed), but if there's a better/safer approach, please...

View Article
Browsing all 1677 articles
Browse latest View live


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