VBA - Preview
VBA - Preview
(OP)
I'm programing a VBA application for AutoCAD 2005. I would like to show a preview of a 2DPolyline on a userform before actually drawing it in modelspace.
Some threads on the Autodesk Forum mentioned the dwgthumbnail.ocx but the closest thing I found on my computer is CThumbnailCtrl.ocx (by Autodesk). Unfortunately, there is no help file, so I don't know what it can do nor how to use it.
Any one can help?
Some threads on the Autodesk Forum mentioned the dwgthumbnail.ocx but the closest thing I found on my computer is CThumbnailCtrl.ocx (by Autodesk). Unfortunately, there is no help file, so I don't know what it can do nor how to use it.
Any one can help?





RE: VBA - Preview
"Everybody is ignorant, only on different subjects." — Will Rogers
RE: VBA - Preview
Sub Userform_initialize()
For Each 2dpoly in ThisDrawing.2dpoly
2dpolyobj.AddItem 2dpolyline
next 2dpoly
End Sub
Hope this helps,
John
RE: VBA - Preview
To be more explicit, I want to draw structural shape (W, HSS, Channel, L...) in modelspace using a closed 2DPolyline. I already program the Sub in VBA to draw them and it's working perfectly.
When the macro starts, the user must input some parameters in a form (type of shape, dimensions of the section...). What I woud like to do is to show the 2Dpolyline on the Form before drawing it in model space.
A image control can do, but it's not the perfect solution.
Basically, I want to be able to draw on a userForm using AutoCAD feature. Is there a control in VBA or VB6 I can used?
Thanks
RE: VBA - Preview
Whenever I've had to do something along similar lines, I get around it by using a series of pictures and change the visibility as requried. It's not great but it works for my purposes
RE: VBA - Preview
RE: VBA - Preview
ht
"Everybody is ignorant, only on different subjects." — Will Rogers
RE: VBA - Preview
RE: VBA - Preview