Capturing command line output from VBA

Capturing command line output from VBA

Anonymous
Not applicable
2,781 Views
2 Replies
Message 1 of 3

Capturing command line output from VBA

Anonymous
Not applicable

Hi,

I use SendCommand function to execute a command and I want to capture the output to store it.

I can´t find the method or object to access the command line. How can i do this???

 

Thanks

0 Likes
2,782 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

I response myself. This is the way i did it:

 

ThisDrawing.SendCommand ("(setvar ""USERS1"" (c:MY_FUNCTION))" & vbCr)  

 lsData = ThisDrawing.GetVariable("USERS1")

Message 3 of 3

brian_adams
Collaborator
Collaborator

Hello. I really serching for this function you wright about but in my case it ain't works  it shows empty could you help me please

I recived

Command: (setvar "USERS1" (c:MY_FUNCTION))
no function definition: C:MY_FUNCTION

 

0 Likes