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.

Suppressing dialogs?

Started by MarkX, October 15, 2011, 04:52:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MarkX

Is there a setting inside of BC that will allow you to suppress a dialog?

For instance, when measuring angles, the angle info dialog pops up


>AngleDistance
{
<PointXYZ [0,0,0]
<PointXYZ [pX(1),pY(1),pZ(1)]
}



I just want to collect the information this command generates, without having to slow the user with another dialog. The documentation doesn't mention this side effect of AngleDistance. I suspect that the same thing happens with many other commands.

Thanks!
Mark

Edit:

Think I found the ticket under another topic. Here's what I'm putting in my treepad docs:

SILENT MODE -- SYS(36) = 1
Turns off dialogs that cause processing to pause. Speeds up some other processes.

Turn back on with SYS(36) = 0

Bob P

Instead of capturing from the dialog box, you can calculate each value directly from the points' x, y and z deltas.

'assumes first point is at 0,0,0
length=(((pX(1))^2+((py(1))^2+((pz(1))^2)^.5
anglexy=atan((py(1))/(pX(1)) 

The xz and yz angles are computed the same way.

*Both the above formulas subject to checking...



paulerens

#2
Sys(1150)=1 to suppress the dialog box and Sys(1150)=0 to show.

MarkX

Quote from: paulerens on October 23, 2011, 08:07:43 AM
Sys(1150)=1 to suppress the dialog box and Sys(1150)=0 to show.
This doesn't seem to be in my macro documentation (vs. 17). It also doesn't seem to prevent the angle dialog from popping up (vs. 21). The SYS(36) seems to do this, though it may be a side effect of an intended action.

Thanks,
Mark

DrollTroll

Sys(1150) is generally intended to prevent dialogs that ask for additional input on how to run the command. When a command pops up information that it has calculated, Sys(1150) won't affect it.
25 years with DesignCAD