- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have written the following VBA code to insert text into a drawing referenced from a point, which works fine.
Inspt = ThisDrawing.Utility.PolarPoint(Spt, 0.785398, 10.3337)
Set TextObj = ThisDrawing.PaperSpace.AddText(pbkw, Inspt, 0.05)
TextObj.Alignment = acAlignmentCenter
TextObj.TextAlignmentPoint = Inspt
What I want is to create a routine (sub or function) that handles the above, by passing all the necessary arguments as follows:
InsText(startpoint,radians,distance,textstring,height,txtalignment)
I have tried several iterations and I cannot get anything to work. My main issue is incorrect references. I know someone has already written this and would appreciate any and all assistance in this matter.
Solved! Go to Solution.