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.

Print SysEx$(x) value on DCad

Started by deydope, September 07, 2017, 05:11:09 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

deydope

Hello guys,
I would like to know if there is a way to print SysEx$(x) value on designcad.
I explain, in my jobs, my boss tell me to create a macro that print the model of the changing room wich is stored in a SysEx$(1) value.

Is there a macro can print it into designcad or by a little windows on left corner who can not close

Or is there a way to do this on .net language

So if someone here can help me with that...
Thank you


DrollTroll

#1
In BasicCAD,
  Message SysEx$(1)
will pop up a messagebox window showing the contents of that string.

You could also use the Window statement to open a text window, and use the Print statement to print the value of SysEx$(1).

From .NET, you can retrieve the value using Document.GetSysStr(1). The below example snipet is for VB6 -- the .NET equivalent would be quite similar:

Example:
' Assumes DcDoc is a valid DesignCAD.Document object
Dim SysStr as String
Dim i As Integer
For i = 1 to 10
  SysStr = DcDoc.GetSysStr(i)
  MsgBox "The string in Sys$(" & i & ") is: " & Chr(13) & Chr(10) & SysStr
Next i
25 years with DesignCAD

deydope

thank you for your answer,
i have already tryed that but,
I would like the windows still open all the time and i can work on designcad with the windows still open.

I don't know if you know what i mean, it's very complicated