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

[V8i SS2 VBA] color chooser control

Hi,I wanted to jazz up my program a little by adding the color picker/chooser control talked about in this link:www.la-solutions.co.uk/.../MVBA-Tips.htmwhich links...

View Article


RE: [v8i ss3 c#] How to "clean" CadInputQueue

Hi Manko,[quote user="Manko"]I tried CommandState.StartDefaultCommand but it did not help.[/quote]Where exactly do you use StartDefaultCommand method?Personally I treat GetInput method as a "last...

View Article


RE: [v8i ss3 c#] How to "clean" CadInputQueue

Hi Jan,Sorry, my fault, CommandState.StartDefaultCommand() is working.But, you are right GetInput  is a bad solution so I'll create my own primitive. Then I can control it better.thanksManko

View Article

RE: [v8i ss3 c#] How to "clean" CadInputQueue

[quote user="Manko"]GetInput  is a bad solution[/quote]Not necesarilly bad, but for sure fragile and a bit specific in context how the rest of MicroStation API works (asynchronous calls and sending...

View Article

RE: C++ Move Element

You want to apply a transform to the element.See for example mdlElmdscr_transform() or mdlElmdscr_transformAllowModification().

View Article


RE: [CONNECT C++] How to configure Connect MDL?

Thank you all for answering my questions. It is very clear now for me. Best, Zhen

View Article

RE: C++ Move Element

[quote user="HDR_Coder"]For the C++ API (V8i) how do you move an entire element, i.e. offset it[/quote]Paul's response will get you started.  But then you bang into the problem of creating your...

View Article

RE: C++ Move Element

Great, here is the code I used to get the move working.  Right now it just moves some number of units.  I plan on adding functionality for deciding how far to move it..... MSElementDescr* eledscr = 0;...

View Article


C++ Move Element

For the C++ API (V8i) how do you move an entire element, i.e. offset it.   I was thinking this would be easy like in VBA where you .move then supply a point3d.  I was surprised that I didn't find this...

View Article


Image may be NSFW.
Clik here to view.

RE: [V8i VBA] SetActiveDepthByPoint - doesn't work

Please follow the MicroStation Programming forum best practices.Code Syntax HighlightingWhen you post code, use the Forum advanced editor's syntax highlighting tool. That's the icon that resembles a...

View Article

RE: [V8i VBA] SetActiveDepthByPoint - doesn't work

Sub SetActiveDepth(View As Long, ElementId As DLong) Dim centroid As Point3d Dim oElement As Element Dim myClip As ShapeElement Dim activeView As View Dim p As Point3d Set oElement =...

View Article

[V8i VBA] SetActiveDepthByPoint - doesn't work

Hello guys,I have problem with set Active Depth by Point method in VBA. Below is my SUBSub SetActiveDepth(View As Long, ElementId As DLong) Dim centroid As Point3d Dim oElement As Element Dim myClip As...

View Article

RE: [CONNECT, C++] Setting of view independent status in TextblockProperties

Hello Peder,Apologize missing your post so long time. Today I test SetIsViewIndependent(true) in my side. It works fine. The following is my test code snippet. FYI.void createText(WCharCP unparsed) {...

View Article


[CONNECT, C++] Setting of view independent status in TextblockProperties

Setting of view independent status  via SetIsViewIndependent(true) in TextblockProperties has no effect at all

View Article

RE: Please help me in solving the problem encountered by me while programming...

Which version of Visual Studio are you using ? VS2005+SP1 is mandatory for pointCloud programming in V8i.

View Article


Please help me in solving the problem encountered by me while programming in...

At first, I make example from SDK (I use mssdk081109357en), which name is "PointClouds". I built the project using command "bmake -dMDL_NO_SIGN -dMSJ_SKIP_SIGNRSCS -dDEBUG=1 pointclouds.mke" in...

View Article

Image may be NSFW.
Clik here to view.

RE: [V8i VBA] Finding Tangent Vector of point on an element

Hello Jon,I wrote the following test snippet to verify the correction of method EvaluatePointTangent. FYISub PlacePointAndTangent(pt As Point3d, tangent As Point3d) Dim oLine As LineElement Set oLine =...

View Article


Image may be NSFW.
Clik here to view.

[V8i VBA] Finding Tangent Vector of point on an element

I have this cell:and upon placement in a model its orientation is set using matrixidentity and looks like this:Whereas I want the cells to be placed with a CCW rotation so that they are perpendicular...

View Article

RE: Manipulating Reference File Display

Using Attachment.DisplayFlag can control a reference display on or off in MicroStation VBA. The below is a code snippet to make all refs display off. FYISub TurnOffAllRefDisplay() Dim att As Attachment...

View Article

Manipulating Reference File Display

Hi -Our team would like to use the "Publish Displayed Attachments Only" option in iModel publishing. To help streamline the process I would like to prepare two vba scipts (or any other language) which...

View Article
Browsing all 7260 articles
Browse latest View live