Plot with scripting application.

Plot with scripting application.

Anonymous
Not applicable
394 Views
0 Replies
Message 1 of 1

Plot with scripting application.

Anonymous
Not applicable
Hello!
Have anybody some ideas of my problem.

My code:
.
.
.
gObjAcadDoc.ModelSpace.Layout.Centerplot = false

newValue1 = CDbl(10)
newValue2 = CDbl(0)
newValue= array(newValue1,newValue2)
gObjAcadDoc.ModelSpace.Layout.PlotOrigin = newValue

gObjAcadDoc.Plot.NumberOfCopies = 1

gObjAcadDoc.Plot.PlotTodevice
.
.
.
When the PlotOrigin shall execute I got an error saying bad parameter.
I guess that the type of newValue is wrong.
But how shall it be defined when I use scripting?

The way in VBA is "Dim newValue(1 to 2) as Double"
but that is not possible in scripting which is using variants for 'everything'.

If I put in "On Error Resume Next" the script will do the plot without the offset.
0 Likes
395 Views
0 Replies
Replies (0)