Message 1 of 4
arc data from function back to multiple forms
Not applicable
02-19-2007
07:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need some help passing arc entity data back into many forms and sub
routines from a function..
'in form1
Call GetEnt ' in form1 call function
'function in module1
Public Function GetEnt() As AcadEntity
Dim ent As AcadEntity
Dim arc As AcadArc
On Error Resume Next
ThisDrawing.Utility.GetEntity ent, "Select Curve to Insert block: "
If TypeOf ent Is AcadLWPolyline Then
MsgBox " Please Select Arc, Entity was not an ARC."
End If
If TypeOf ent Is AcadArc Then
Set arc = ent
STRarclength = arc.arclength
STRCENTERPT = arc.Center
'what do i do here to send arc data back?
End If
End Function
'return back to form1
'need to hand off the ent data Arc, arclength, arc.Center from the function
'how do I call arc data from function to be used here?
userform1.Textbox5.text = lightsset = STRarclength / 50
userform2.Textbox5.text = lightsset = STRarclength / 50
any help is appreciated.
Thank you
John
routines from a function..
'in form1
Call GetEnt ' in form1 call function
'function in module1
Public Function GetEnt() As AcadEntity
Dim ent As AcadEntity
Dim arc As AcadArc
On Error Resume Next
ThisDrawing.Utility.GetEntity ent, "Select Curve to Insert block: "
If TypeOf ent Is AcadLWPolyline Then
MsgBox " Please Select Arc, Entity was not an ARC."
End If
If TypeOf ent Is AcadArc Then
Set arc = ent
STRarclength = arc.arclength
STRCENTERPT = arc.Center
'what do i do here to send arc data back?
End If
End Function
'return back to form1
'need to hand off the ent data Arc, arclength, arc.Center from the function
'how do I call arc data from function to be used here?
userform1.Textbox5.text = lightsset = STRarclength / 50
userform2.Textbox5.text = lightsset = STRarclength / 50
any help is appreciated.
Thank you
John