Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Evening
I'm trying to creat box from a function
I don't know what I missed here :
Sub drawbox()
Call pvc(test, 18, 3, 250, 0, 0, 0)
End Sub
Public Function pvc(pvcname As String, Length As Double, Width As Double, Height As Double, center0 As Double, center1 As Double, center2 As Double)
Dim center(0 To 2) As Double
center(0) = center0: center(1) = center1: center(2) = center2
Set pvcname = ThisDrawing.ModelSpace.AddBox(center, Length, Width, Height)
End Function
Solved! Go to Solution.