Error Handler Reentered 2004 VBA
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Error Handler Reentered 2004 VBA

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Printing
Author Message
egcallis
Guest





Posted: Fri Dec 10, 2004 11:09 pm    Post subject: Error Handler Reentered 2004 VBA Reply with quote

This issue only occurs when we attempt to use an in-house vba plot routine to plot views from model space. The offending drawings always have a invalid plotter configname. If we first use the plot button and acknowledge the invalid plotter configuration and chose a valid plotter and either save (on page setup) or plot, our vba routine then works fine.

If we don't then AutoCAD errors out as follows

...
---------------------------
AutoCAD Error-abort
---------------------------
Error handler re-entered. Exiting now.
---------------------------
OK
---------------------------


The code snippet is as follows:
where sPlotterCfg is a valid ConfigName
..
ThisDrawing.ActiveSpace = acModelSpace
Set aLayout = ThisDrawing.ModelSpace.Layout
aLayout.ConfigName = sPlotterCfg '<- Error Occurs Here
aLayout.RefreshPlotDeviceInfo

Back to top
Dean Saadallah
Guest





Posted: Sat Dec 11, 2004 12:22 am    Post subject: Re: Error Handler Reentered 2004 VBA Reply with quote

There is a VBA specific discussion area too, try a post there for
programming help.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
Back to top
Jason Piercey
Guest





Posted: Sat Dec 11, 2004 3:47 am    Post subject: Re: Error Handler Reentered 2004 VBA Reply with quote

In addition to any replies you might receive or already
received, you may find more information or responses
by posting future VBA related questions in the following
discussion group:

By NNTP discussion group reader at
news://discussion.autodesk.com/autodesk.autocad.customization.vba

By HTTP (web-based) interface at
http://discussion.autodesk.com/forum.jspa?forumID=33

--
Autodesk Discussion Group Facilitator



"egcallis" <nospam@address.withheld> wrote in message
news:24020211.1102702180785.JavaMail.jive@jiveforum2.autodesk.com...
<snip>
Quote:
The code snippet is as follows:
where sPlotterCfg is a valid ConfigName
.
ThisDrawing.ActiveSpace = acModelSpace
Set aLayout = ThisDrawing.ModelSpace.Layout
aLayout.ConfigName = sPlotterCfg '<- Error Occurs Here
aLayout.RefreshPlotDeviceInfo


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Printing All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB