Warning: Undefined array key "HTTP_ACCEPT_LANGUAGE" in /home/cadian/www/include/common/config.php on line 410

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/cadian/www/include/common/config.php on line 410
CADian

Support

As evidenced by over 30 years of development history, trust-worthy Korean CAD, CADian!

FAQ · 2013.12.11
CADian VBA Sample Code - 9 [ Line Copy, Rotate ]
Private Sub Copy_and_Rotate()

Dim myDoc As IntelliCAD.Document
Dim myLine As IntelliCAD.Line
Dim myStartPt As IntelliCAD.Point
Dim myEndPt As IntelliCAD.Point

Set myDoc = Application.ActiveDocument
Set myStartPt = Library.CreatePoint(4, 4)
Set myEndPt = Library.CreatePoint(7, 3)
Set myLine = myDoc.ModelSpace.AddLine(myStartPt, myEndPt)
myLine.Update



"" Copy and rotate the line
Dim copymyLine As IntelliCAD.Line

Set copymyLine = myLine.Copy()
copymyLine.Rotate myStartPt, 10
MsgBox "Rotated the copied line 10 radians."
ThisDocument.ActiveViewport.ZoomExtents
End Sub

Added to cart.

VIEW CART

Please sign in first.

JOIN