Quantcast
Channel: MicroStation Programming - Forum - Recent Threads

Image may be NSFW.
Clik here to view.

Re: selectseries3 variable problem

manerva:Does anyone know the variable to set so it picks up the current logged on users name?Windows environment variable USERNAME.  Get its value in MicroStation VBA like this...Dim user As Stringuser...

View Article


Re: selectseries3 variable problem

It should be enough to set _USTN_USERNAME = username(username comes from the environment) to set the logged in user. you might even set _USTN_USER = $(_USTN_WORKSPACEROOT) $(_USTN_USERNAME)/ to use a...

View Article


Image may be NSFW.
Clik here to view.

Re: [V8 C++] DgnCacheIterator Example?

Jon Summers:Is there an example of using a DgnCacheIterator?I'm puzzled because the default constructor (see<dgncache.h>) sets its state to iterate non-model elements.  I don't see a method to...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8 C++] CacheElem -- what is it for?

Jon Summers:Why is this abstract class preferable to, say, an ElementRef const&?The MakeClassAbstract is just so that you can't instantiate one in the published api (because it wouldn't make sense...

View Article

Re: selectseries3 variable problem

thanks for quick resposeso with $(_USTN_WORKSPACEROOT) looking in /WorkSpace/ and _USTN_USERNAME = username _USTN_USER = $(_USTN_WORKSPACEROOT) $(_USTN_USERNAME)/ will look into workspaces and find the...

View Article


Re: selectseries3 variable problem

_USTN_USERNAME  = username will make the internal microStation username the logged on userThis would normally result in finding a cfg file under <workspaceroot>users/username.ucf (the later is...

View Article

Image may be NSFW.
Clik here to view.

Re: selectseries3 variable problem

manerva:so with $(_USTN_WORKSPACEROOT) looking in /WorkSpace/ and _USTN_USERNAME = username_USTN_USER = $(_USTN_WORKSPACEROOT) $(_USTN_USERNAME)/ will look into workspaces and find the logged on user...

View Article

Re: selectseries3 variable problem

Nice hint Phil ! I always forget about this keyin :-)But I prefer setting the _USTN_USERNAME = USERNAME  to asure that other possible includes (cfg) that build on this variable are working as expected,...

View Article


Image may be NSFW.
Clik here to view.

Re: [V8i C++] using FileOpenDialogPreprocess() hook to save a DWG file as DGN...

Yongan.Fu:I know we can call mdlSystem_saveDesignFileAs function to save a DWG file to DGN directly. Does it help you ? Thanks for the suggestion. Unfortunately it does not help, as the...

View Article


Re: [V8i C++] using FileOpenDialogPreprocess() hook to save a DWG file as DGN...

Post a bit of code so we can see how you set up everthing.

View Article

Re: [V8i C++] using FileOpenDialogPreprocess() hook to save a DWG file as DGN...

You can send the keyin "save as v8"?

View Article

[V8i C++] Using IElementState with MstnElementSetTool class

I'm trying to use an example MstnElementSetTool posted by Brien Bastings that demonstrated the use of a IElementState derived class to hold additional info on the "picked" elements. In the original...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] using FileOpenDialogPreprocess() hook to save a DWG file as DGN...

Jon Summers:Post a bit of code so we can see how you set up everthing.else if ( (fopenParamsP->openCreate == FILELISTATTR_CREATE )  &&         (DEFSAVEASFILE_ID ==...

View Article


Re: [V8i C++] Using IElementState with MstnElementSetTool class

You want a DVec3d as a member of your info, not a DVec3dCP...assuming the "diff" you passed to SetDirectionVectorCP is a local variable, when it goes out of scope your pointer becomes stale...HTH-B

View Article

Re: [V8i C++] Using IElementState with MstnElementSetTool class

This isn't a solution to your question, which it looks like Brien has supplied, but a comment on your use of const pointers.const-nessYour class variable...HitPathCP       m_hitPath;...is a const...

View Article


Re: [V8 C++] DgnCacheIterator Example?

Thanks for that clarification and example.There's no built-in way to filter elements in a cache search.  Does the mdlScanCriteria_api remain the only way to find a set of filtered elements?  That is,...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C++] Using IElementState with MstnElementSetTool class

Jon Summers:Surely it's better to proclaim that the variable may change by declaring it HitPathP?While your comments regarding const are certainly true in general, this code is being somewhat "clever"...

View Article


Image may be NSFW.
Clik here to view.

Re: [V8i C++] using FileOpenDialogPreprocess() hook to save a DWG file as DGN...

Bruce Reeves SRNS:fopenParamsP->suggestedFileNameP = outputFilename;Where is outputFilename declared?

View Article

[V8i MDL] mdlKISolid_closestPointOnBody

Hello,I want to get the smalest distance from a Point to a SmartSolidElement.In the API is the function int mdlKISolid_closestPointOnBody ( DPoint3d* pointOutP , KIENTITY** entityOutPP , double*...

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i MDL] mdlKISolid_closestPointOnBody

Martin Roling:How can I move the pointP from real coordinates to solid coordinates? void transformUorsToSolidUnits ( DPoint3d*    point // <=> point to be transformed ) {...

View Article

Tag Extraction to Excel

Hi everyone just wondering if i can get some help on a code for extracting tag text to excel.The code I have used is out of the Book Learning Microstation VBA by Jerry Wintersthe code is listed below,...

View Article


Re: Tag Extraction to Excel

Without testing  I'm missing:Dim myFSO As NEW Scripting.FileSystemObjectMore info: http://support.microsoft.com/kb/186118/EN-US

View Article


Image may be NSFW.
Clik here to view.

Re: Tag Extraction to Excel

VBA ReferencesDabid:Dim myFSO As Scripting.FileSystemObject Dim myExcel As Excel.ApplicationExternal applications require a VBA Reference.  Use the Tools|References menu in the VBA Interactive...

View Article

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

look at the lever manager hilight the level name or try to rename and copy it then in your keyin paste the level name I bet there a  space you left out of your keyin....Lorys

View Article

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

Remove the quote from lv="Level4" and insert space so it looks like lv=Level 4; and finish command line with ;NULL

View Article



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