Message 1 of 5
RemoveHiddenLines property in R14 VBA?
Not applicable
02-18-2000
08:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all.
Is this PS viewport property read only?
I can get the property, but cannot seem to be able to set the property?
This sample code reads the value with no problem, but I cannot seem to
change the value?
Sub Example_RemoveHiddenLines()
Dim pviewportObj As AcadPViewport
Dim center(0 To 2) As Double, width As Double, height As Double
center(0) = 3: center(1) = 3: center(2) = 0
width = 40: height = 40
ThisDrawing.ActiveSpace = acPaperSpace
Set pviewportObj = ThisDrawing.PaperSpace.AddPViewport(center, width,
height)
pviewportObj.Display True
Dim removeHidden As Boolean
removeHidden = pviewportObj.RemoveHiddenLines
MsgBox "The value of the RemoveHiddenLines property for the paperspace
viewport is " & pviewportObj.RemoveHiddenLines, ,
"RemoveHiddenLines Example"
End Sub
To set the value, I was trying:
pviewportObj.RemoveHiddenLines True
&
Set pviewportObj.RemoveHiddenLines=True
Neither worked. I am missing something simple, or is this a read only
value?
Warren Medernach
Is this PS viewport property read only?
I can get the property, but cannot seem to be able to set the property?
This sample code reads the value with no problem, but I cannot seem to
change the value?
Sub Example_RemoveHiddenLines()
Dim pviewportObj As AcadPViewport
Dim center(0 To 2) As Double, width As Double, height As Double
center(0) = 3: center(1) = 3: center(2) = 0
width = 40: height = 40
ThisDrawing.ActiveSpace = acPaperSpace
Set pviewportObj = ThisDrawing.PaperSpace.AddPViewport(center, width,
height)
pviewportObj.Display True
Dim removeHidden As Boolean
removeHidden = pviewportObj.RemoveHiddenLines
MsgBox "The value of the RemoveHiddenLines property for the paperspace
viewport is " & pviewportObj.RemoveHiddenLines, ,
"RemoveHiddenLines Example"
End Sub
To set the value, I was trying:
pviewportObj.RemoveHiddenLines True
&
Set pviewportObj.RemoveHiddenLines=True
Neither worked. I am missing something simple, or is this a read only
value?
Warren Medernach