System variables - VBA

System variables - VBA

Anonymous
Not applicable
591 Views
8 Replies
Message 1 of 9

System variables - VBA

Anonymous
Not applicable
I am trying to set up some system variables by VBA. But I couldn´t find the variable name for the MODEL SCALE propertie in the menu ASSIST >> MECHANICAL OPTIONS >>STANDARD.... I am sendind a attached image file showing it... Anyone could help me... thx a lot Luciano
0 Likes
592 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
Hi Luciano, The name of the variable you want is AMSYMSCALE... I think you will have to use SendCommand to change the value... /Rikard "Luciano Gazai" skrev i meddelandet news:40e5706b_1@newsprd01... > I am trying to set up some system variables by VBA. > > But I couldn´t find the variable name for the MODEL SCALE propertie in the > menu ASSIST >> MECHANICAL OPTIONS >>STANDARD.... > > I am sendind a attached image file showing it... > > Anyone could help me... > > thx a lot > Luciano > > >
0 Likes
Message 3 of 9

Anonymous
Not applicable
Thanks Rickard, And you right, I needed to send comand to set it up! "Rikard Nilsson" escreveu na mensagem news:40ea552f_1@newsprd01... > Hi Luciano, > > The name of the variable you want is AMSYMSCALE... > > I think you will have to use SendCommand to change the value... > > /Rikard > > > "Luciano Gazai" skrev i meddelandet > news:40e5706b_1@newsprd01... > > I am trying to set up some system variables by VBA. > > > > But I couldn´t find the variable name for the MODEL SCALE propertie in > the > > menu ASSIST >> MECHANICAL OPTIONS >>STANDARD.... > > > > I am sendind a attached image file showing it... > > > > Anyone could help me... > > > > thx a lot > > Luciano > > > > > > > >
0 Likes
Message 4 of 9

Anonymous
Not applicable
you can try with:
Thisdrawing.sendcommand "(setvar ""AMSYMSCALE""" & Text1.Text & ")" & vbCr & vbCr
Message was edited by: diAb0Lo
0 Likes
Message 5 of 9

Anonymous
Not applicable
Starting with 2000, you can't control the contents of the text window. It saves the last 400 lines. You can only control whether the content is saved to a *.log file. You can clean the current prompt by sending another promt line to the command line, thus forcing the one you don't like further back in the command history. Here's a function I wrote to handle sending prompts Sub CommandLine(msg As String) ThisDrawing.Utility.Prompt (msg & vbCrLf & "Command: ") End Sub To clear the last prompt, use: CommandLine "" -- ---- Ed ---- "diAb0Lo" wrote in message news:9018389.1089133438149.JavaMail.jive@jiveforum1.autodesk.com... you can try with: Thisdrawing.sendcommand "(setvar ""AMSYMSCALE""" & Text1.Text & vbCr & vbCr
0 Likes
Message 6 of 9

Anonymous
Not applicable
what about (defun CmdHistLines( / numlines i) (setq numlines(Getint"\nNumber of lines")) (setq i 0) (setenv"CmdHistLines"(itoa numlines)) ;to test (repeat(atoi(Getenv"CmdHistLines")) (print(setq i(1+ i)))) ) 4000 used to be the upper limit now(a2k5) 2048 seems to be the max "Ed Jobe" wrote in message news:40eae200$1_1@newsprd01... Starting with 2000, you can't control the contents of the text window. It saves the last 400 lines. You can only control whether the content is saved to a *.log file. You can clean the current prompt by sending another promt line to the command line, thus forcing the one you don't like further back in the command history. Here's a function I wrote to handle sending prompts Sub CommandLine(msg As String) ThisDrawing.Utility.Prompt (msg & vbCrLf & "Command: ") End Sub To clear the last prompt, use: CommandLine "" -- ---- Ed ---- "diAb0Lo" wrote in message news:9018389.1089133438149.JavaMail.jive@jiveforum1.autodesk.com... you can try with: Thisdrawing.sendcommand "(setvar ""AMSYMSCALE""" & Text1.Text & vbCr & vbCr
0 Likes
Message 7 of 9

Anonymous
Not applicable
Ed, did you reply to the wrong thread or is my newsreader messing up? Murph
0 Likes
Message 8 of 9

Anonymous
Not applicable
I hope something is not going wrong with the nntp side. This was a reply to "Clean command interface from vba". Maybe Anne can move this reply there? -- ---- Ed ---- "Murph" wrote in message news:40eaeb97$1_1@newsprd01... Ed, did you reply to the wrong thread or is my newsreader messing up? Murph
0 Likes
Message 9 of 9

Anonymous
Not applicable
Ed - There is such heavy HTML coding in your message it wouldn't copy as a quoteback! I hand copied your and MP's messages over to "Clean command interface from vba". From looking at the headers on the two messages they truly do appear to have been put onto "System variables" originally as an answer. I'll keep an extra watch out though for any non-synching messages. --- Anne Brown Discussion Groups Administrator Autodesk, Inc.
0 Likes