Message 1 of 1
Plot with scripting application.
Not applicable
03-23-2010
11:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
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.