« CADopia - GetInterfaceObject method | Main | CADopia - GetLispVariable method »

Thursday, March 13, 2008

CADopia - GetInvisibleEdge method

Gets the visibility setting for a 3DFace edge at a given index.

Syntax

object.GetInvisibleEdge(Index)

Where:

     object is a CADopia Viewport or PViewport object;

     Index is an Integer representing the index number of the face.

GetInvisibleEdge / SetInvisibleEdge example

Private Sub GetInvisibleEdge_Example()

     ' This example adds a 3D face to the drawing.

     ' It then uses the GetInvisibleEdge and SetInvisibleEdge methods.

     Dim faceObj As CADopia.Face3D

     Dim icadDoc As CADopia.Document

     Dim Pt1 As CADopia.Point

     Dim Pt2 As CADopia.Point

     Dim Pt3 As CADopia.Point

     Dim Pt4 As CADopia.Point

     Dim myObj As Object

     Dim visStatus As Boolean

     Set icadDoc = ActiveDocument

     ' Define the four coordinates of the face

     Set Pt1 = Library.CreatePoint(0, 0, 0)

     Set Pt2 = Library.CreatePoint(3, 0, 2)

     Set Pt3 = Library.CreatePoint(6, 5, 0)

     Set Pt4 = Library.CreatePoint(4, 4, 2)

     ' Add the 3DFace object

     Set faceObj = icadDoc.ModelSpace.Add3DFace(Pt1, Pt2, Pt3, Pt4)

     faceObj.Update

     ThisDocument.ActiveViewport.ZoomExtents

     visStatus = faceObj.GetInvisibleEdge(0)

     MsgBox "The visibility status of the face is currently: " & visStatus

    

     ' Toggle the visibility of the first edge of the face

     faceObj.SetInvisibleEdge 0, Not (visStatus)

     faceObj.Update

     MsgBox "The visibility status of the face is now: " & visStatus

End Sub

Comments

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment