Jump to content

Recommended Posts

Posted

I took a LISP class and a VB class years ago. I just started at a company and there are VB codes linked to tool commands to do simple tasks such as printing out sets of plans. But they dont work. Is there a person or a place where I can send code to have it looked at and see what is going on? Supposedly someone from Autodesk came in a few years ago and set this up.

 

In the code I am trying to plot PDF's of plans and it does the first sheet and then no subsequent sheets. When I debug it takes me to this section of code:

 

Public Sub pauseTimer(PauseTime As Single)

 

'*** Timer for pausing during PDF printing for file copy from c:\pdftemp directory

 

Dim Start As Single

 

Start = Timer ' Set start time.

Do While Timer

DoEvents ' Yield to other processes

Loop

 

End Sub

 

The do While Timer prompt is where the issue lies. From what I can tell this section pauses the program in order to allow plotting of the PDF, but the timer is having an issue so it only does the first sheet and then times out or crashes the AutoCAD program. I am simply not experienced enough to look at this so any help would be appreciated. I can post up the entire code if needed but it is LOOOONG.

Posted

Maybe just copy the code in a text file and zip it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...