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

RE: input numeric value in userform text box

That is a pure VBA question, probably more suited to a general VBA foum. But could you do something like: If isnumeric(textbox.value) then dNumberVariable = cdbl(textbox.value) 'assuming you want it...

View Article


RE: input numeric value in userform text box

Hello everyone I was just looking at the sites suggested by jon. the problem is that I can not do the number unput just pressed a negative sign comes into error so the test if number or string is not...

View Article


RE: input numeric value in userform text box

Afternoon Massimo,Give this a try:Private Sub TextBox_corquo_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger) If Len(TextBox_corquo.Value) = 0 Then Select Case KeyAscii Case 45, 48 To 57 Case Else...

View Article

RE: input numeric value in userform text box

I forgot to add, the above code allows you to do the following:Add a minus sign/hyphen to the first position in the textbox but nowhere else.enter 1No. decimal point after a numberIt will not allow...

View Article

RE: input numeric value in userform text box

thank you BarryShe works perfectlyYou've solved a lot of problemsgrazie mille

View Article


RE: input numeric value in userform text box

Read my previous answer carefully and look at the examples carefully.[quote user="blumax57"] I can not do the number unput just pressed a negative sign comes into error[/quote]It's because you're...

View Article

input numeric value in userform text box

good mornigin userform macrothere is a textbox boxwhen I insert positive number workingerror with negative valuethese are the lines of code' corquo  is defined  public as...

View Article

RE: [Connect C++] Dpoint3d in publishStructures definitions

Adding #include <Mstn/MdlApi/MdlApi.h> results in same errors about "This file is for C++ compilands only". I tested also with AccuDrawDemo example by adding Dpoint3d field into AdrwdemoInfo...

View Article


RE: [Connect C++] Dpoint3d in publishStructures definitions

[quote user="Kari Heinola"]I tested also with AccuDrawDemo example[/quote]All the delivered SDK examples build correctly.  How do you attempt to build...

View Article


RE: [Connect C++] Dpoint3d in publishStructures definitions

Yes, the example built fine originally, but after I add Dpoint3d field into AdrwdemoInfo struct definition in adrwdemo.h I get same errors.

View Article

RE: [Connect C++] Dpoint3d in publishStructures definitions

[quote user="Kari Heinola"]Yes, the example built fine originally, but after I add Dpoint3d field into AdrwdemoInfo struct definition in adrwdemo.h I get same errors[/quote]The problem is that DPoint3d...

View Article

RE: [Connect up.4 NET.API] Modify/Delete cell subelement

[quote user="Nenad Poljcic"]I would like to delete/modify cell subelement[/quote]You could take this approach...Get a ChildElementCollection from the original cellRemove the required element(s) from...

View Article

[Connect up.4 NET.API] Modify/Delete cell subelement

Hi,I would like to delete/modify cell subelement.This is my code so far. CellHeaderElement cell = (CellHeaderElement)element.ParentElement; CellQuery oCellQuery = cell.AsCellQuery(); bool res1 =...

View Article


RE: [CONNECT - MDL C++] Problem with mdlClip_isElemInside in 3D

Unfortunately your code is hard to follow.  It's full of cryptic variables...int fx, fy, fx1, fy1, ix, iy, i, j, nc = 0;... magic numbers ...if (n == 12 || n == 6) dd = MM1 * 6; if (n == 2 || n == 3 ||...

View Article

Image may be NSFW.
Clik here to view.

[CONNECT - MDL C++] Problem with mdlClip_isElemInside in 3D

Hello,I need to put cell in shape, but only if it fully fits inside shape. In 2d files code work correctly : if cell is outside it's removed. But in 3d file all time cell is inside and get wrong...

View Article


Image may be NSFW.
Clik here to view.

RE: [V8i vba] how to tell if your cursor is to the left or right of a point...

for some reason the images didn't show up...here they are

View Article

RE: [V8i vba] how to tell if your cursor is to the left or right of a point...

good morningI had the same problem long agosolved with help hereI enclose part of a macrowhere you see how to fix itDim oView As view Dim mat As Matrix3d Dim rotation As Matrix3d Dim transform As...

View Article


Image may be NSFW.
Clik here to view.

[V8i vba] how to tell if your cursor is to the left or right of a point in a...

I have a iprimitive set up to place a text node and it has a call out box around it. I have coded it to check in the dynamcs event if the cursor is on the right side of left side of a point to figure...

View Article

RE: [V8i vba] how to tell if your cursor is to the left or right of a point...

Ciao, thank you but this code is just rotating the elements. I already have that code figured out. what I am having trouble with is how to figure out if my cursor position is to the left or right of...

View Article

RE: [CONNECT - MDL C++] Problem with mdlClip_isElemInside in 3D

Hi, Jonthanks a lot for Your comment[quote user="Jon Summers"]MASTERFILE is a macro that has been obsolete for many years: prefer ACTIVEMODEL. [/quote]yes, this is very old code which need to be...

View Article
Browsing all 7260 articles
Browse latest View live