Message 1 of 5

Not applicable
07-26-2015
11:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have to plot the layout using SetLayoutsToPlot Method using VB.NET. But I getting one error with Data Type - VARIANT. I found the help page in acadauto.chm there was this text.
object.SetLayoutsToPlot (layoutList) Object Plot The object or objects this method applies to. layoutList Variant; input-only An array of layout names representing the layouts to plot. Remarks This method may become obsolete and may be removed in a future version of AutoCAD. If the layoutList parameter is NULL or this method is not called at all, the active layout is sent to the plot. After each call to the PlotToFile or PlotToDevice method, the default layout to plot is reset to the active layout. To specify any layout other than the active layout, you must call the SetLayoutsToPlot method before each plot.
The problem is that I'm haven't the Data Type 'Variant' in VB.NET. I have only Data Type 'Object'. And this method is doesn't work! But I need to use that method.
Please, tell me how could I to get solution by this problem.
Solved! Go to Solution.