Plot Origin

Plot Origin

GeeHaa
Collaborator Collaborator
686 Views
3 Replies
Message 1 of 4

Plot Origin

GeeHaa
Collaborator
Collaborator
Hi,

Can someone tell me why this isn't moving the plot origin.

Sub Plot_Test()
Dim Cur_layout As AcadLayout
Dim Origin(0 To 1) As Double
Origin(0) = 0.5
Origin(1) = 0#

Set Cur_layout = ThisDrawing.ActiveLayout

With Cur_layout
.CenterPlot = False
.PlotOrigin = Origin
.PlotType = acExtents
.PlotRotation = ac90degrees
.PlotWithPlotStyles = True
.StyleSheet = "monochrome.ctb"
End With

ThisDrawing.Plot.DisplayPlotPreview (acFullPreview)

End Sub

Thanks
0 Likes
687 Views
3 Replies
Replies (3)
Message 2 of 4

GeeHaa
Collaborator
Collaborator
Evidently the Plotorigin is using millimeters instead of inches. If I change the y (origin(1) )coordinate to 12.7 (plot rotated 90) it offsets the plot by 0.5 inches in th X direction.

Is there a way to get it to use inches? I tried .PaperUnits

Thanks
0 Likes
Message 3 of 4

arcticad
Advisor
Advisor
mm * 25.4 = Inches
---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 4 of 4

Anonymous
Not applicable
you should have to

.UseStandardsScale True
0 Likes