DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Decimal separator

Started by rbh, October 20, 2010, 06:45:09 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

rbh

Hi
a bug has been brought to my attention on Version 18. (the latest commercialized version in my small part of the world)
It was never noticed by our customers on previous version so it must be new.

We have a library of Text that the user can insert in a drawing with an external application.

when the user insert a text Blocs, we don't have any problems but when the user insert a "PullOut" (an arrow with a text at the end), he can't use decimal separator when he wants to change any size (text, arrow, ...).

When dot or comma is pressed, the text area reselect the whole text making it impossible to type a decimal number.
e.g: when type [1] [.] [5] the result is 5. (same with [1] [,] [5])

However if the user draws the pullout only with DesignCAD he can enter any size he wants.
Pushing a little further, I tried my usual trick : "write a macro".
It didn't solve the problem however when I launch the exact same macro through DCAD I don't have the problem.

Here is the simplified step my program use :
  DcApp := GetActiveOleObject(....);
  DcDoc := DcApp.ActiveDocument;
  DcApp.Visible := True;
  DcDoc.ShowCommandDialog := False;
  DcDoc.SilentMode := True;
  DcDoc.TextStyle.TextSize := [...];
  DcDoc.layerIndex := [...];
  DcDoc.Color := [...];

  DcDoc.SilentMode := False;
  DcDoc.ShowCommandDialog := True;
  DcPullOut := DCDoc.Pullout;
  DcPullOut.TextSize := [...];
  DcPullout.Text := [...];
  DcPullout.Draw;

I Know some code seems unnecessary (SilentMode, ...) but this is in a larger project and is that way (I tried without them and it didn't change).
I change the last 4 lines with
  DcDoc.RunBasicCAD([...]);
and it didn't change.

Is it the same on american version of DCAD ?
Is it something I did (ShowCommandDialog false / true) ?
Is there a way around ?

DrollTroll

I can confirm this behavior in the US version of DC20. Very strange.
25 years with DesignCAD