rs.Command("_Dim .............") bug
In the attached file there is an example of strange error with rs.Command("_Dim "+str(stp4)+" "+str(stpqx)+" V "+str(stpmY)).
The Command History is OK:
seleziona profilo: _Dim
First dimension point ( Style=Dim5 Object Continue=No ): 8.36167107854816,91.9241419709027,0
Second dimension point: 8.36167107854816,-114.549874813767,0
Dimension location ( Vertical Horizontal ): V
Dimension location: -16.6383289214518,-11.3128664214322,0
seleziona lato da modificare <Enter per terminare>:
but the result don't respect the coordinates like in the attached 3dm file.
the result dimension is 53.29 instead of 206.47
if i repeat the script the dimension size changes continuously.
Does this have to do with python or is the dim itself working incorrectly?
The problem is with Python only. Dim workinh correctly. If you want i send to you the script.
Yes please send me the script since I can't quite figure out what the problem is.
I don't have Rhino 5 installed on this machine, so I can check nothing of this but:
As far as I remember, converting a point-coordinate-list to a string via str() will put brackets  at both ends of the string, which you have to get rid of for the Command to work.
But anyway, I think something like AddDimension()/AddAlignedDimension() has been added to the rhinoscriptsyntax, but is kind of hidden, as it does not appear in the helpfile. It works however and I think you can use the Rhino VBScript help as a reference to see what parameters the function needs in what order. So there's actuelly no need for the Commandline hassle anymore.
Probably Steve could update the Python helpfile to include this?