MultipleSheetPDF program issue while execute from sendcommand

MultipleSheetPDF program issue while execute from sendcommand

VallimanalanT
Enthusiast Enthusiast
678 Views
3 Replies
Message 1 of 4

MultipleSheetPDF program issue while execute from sendcommand

VallimanalanT
Enthusiast
Enthusiast

Hi,

 

I used this link code https://www.theswamp.org/index.php?topic=31897.msg494504#msg494504,

ifs working fine, when we load and directly use the "PlotPDF" command. But when we pass the command through "sendcommand" its not working. Please advise

 

acadDocument.SendCommand("PlotPDF" + "\n");

 

0 Likes
679 Views
3 Replies
Replies (3)
Message 2 of 4

_gile
Consultant
Consultant

Hi,

You have to provide more details and/or show some code, "not working" does not make sense.

Have you an error? If so, what's the error?

Did you netload the dll before launching the command?

And first of all, why do you need to use SendCommand?

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 4

VallimanalanT
Enthusiast
Enthusiast

Hi,

Please find the answer in steps

 

1. I have used the link code & build as "dll". when i load the "dll" and execute the command. its execute properly (No error) and generate the PDF with all the layouts.

noerror.JPG

 

2. In windows application,  AutoCAD will work as "outprocess (activex)" concepts. So i load the "dll" and executing the command. its show the following error and not generating PDF file

 

error.JPG

0 Likes
Message 4 of 4

_gile
Consultant
Consultant

You still neither show any code (so that we can know a little more about the context) nor answer the main question: why do you use a windows application to start an AutoCAD proces and load a .NET plugin instead of simply load the .NET plugin within an already running AutoCAD process? Which would directly solve your problem.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes