Hi all,
I'm using python to automate insertions of PDFs into DWGs through the PDFimport functionality.
PDFimport dialogue box allows you to check the "import as a block" setting which prevents autocad from creating layers for the imported PDF.
Is there a way to pass this setting as an argument to the -PDFIMPORT command? as I'm using the SendCommand and Autocad APIs.
Solved! Go to Solution.
Solved by Alfred.NESWADBA. Go to Solution.
Hi,
>> check the "import as a block" setting which prevents
>> autocad from creating layers
Sorry, incorrect. Importing it as block or not as block does not make a difference for importing the layers into AutoCAD.
There you can see the 2 different options, one for layer and the other for "as block"
>> Is there a way to pass this setting as an argument to the
>> -PDFIMPORT command?
For the "as block" option you can first set the variable PDFIMPORTMODE (>>>details<<<) to match your needs, for adding layers or not you can preset the variable PDFIMPORTLAYERS (>>>details<<<).
>> I'm using the SendCommand
I would avoid that as you don't get any errors or confirmation if the command succeeded or not.
- alfred -
Thank you indefinitely, that was really helpful. What do you suggest for automation instead of SendCommand
I'm using Python.
Regards,
Walid
Can't find what you're looking for? Ask the community or share your knowledge.