Does anyone know how to add user-defined fields by using either VBA or AutoLisp?
Any input would be welcome.
|
Does anyone know how to add user-defined fields by using either VBA or AutoLisp?
Any input would be welcome.
Hi
Please note I've *moved* this Topic (Thread) from the ACAD 2005 General Forum to this one as I believe it would be better served here.
Thanks, Mike
Forum Moderator
If you are talking about AutoCAD 2005's Fields, all you need to do is use the field expression in the text itself.
Code:Sub Test() Dim pt0(0 To 2) As Double ThisDrawing.ModelSpace.AddMText pt0, 2, "Test: %<\AcVar Date \f " & Chr(34) & "M/d/yyyy h:mm:ss tt" & Chr(34) & ">%" End Sub
Acutally I am trying to add a user-defined field in the Plot Samp Dialog Box. Thanks for the input. If you have any ideas let me know.
Last edited by spencer.67965; 2004-06-11 at 06:18 PM.