Author Topic: Print SysEx$(x) value on DCad  (Read 92 times)

deydope

  • Newbie
  • *
  • Posts: 10
Print SysEx$(x) value on DCad
« on: September 07, 2017, 05:11:09 AM »
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

  • Kindly Curmudgeon
  • Administrator
  • *****
  • Posts: 4152
Re: Print SysEx$(x) value on DCad
« Reply #1 on: September 07, 2017, 08:49:48 AM »
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
« Last Edit: September 07, 2017, 08:51:26 AM by DrollTroll »
25 years with DesignCAD

deydope

  • Newbie
  • *
  • Posts: 10
Re: Print SysEx$(x) value on DCad
« Reply #2 on: September 08, 2017, 12:07:41 AM »
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