The string of VBA for Command "PDFIMPORT" to import multisheet of same PDF FILE

The string of VBA for Command "PDFIMPORT" to import multisheet of same PDF FILE

Anonymous
Not applicable
2,373 Views
3 Replies
Message 1 of 4

The string of VBA for Command "PDFIMPORT" to import multisheet of same PDF FILE

Anonymous
Not applicable

Hi everybody,
i need you to help me to make a script in lisp o in VBA;
I would create a VBA that import multipages of the same PDF file, but i don't know the string in VBA that does it and the main proprieties.
I want to redo this, but in VBA and for multi sheets.
https://www.youtube.com/watch?v=-MrxTmLkmkg

Could you help me?
Thank you very much in advance.

0 Likes
2,374 Views
3 Replies
Replies (3)
Message 2 of 4

cadffm
Consultant
Consultant
Are you really only not knowing how you have to set the sendcommand string in vba
Or
do you not know how the command works?

Show us you script, which commandline input (in detail) do you need for your goal.

It starts with
-pdfimport<enter><enter>YourFileName<enter>...and so on

Do you want some pages, or all?
InsertPoint by Userinput or from your program?
Something like that (lisp, but also using only the native pdfimport command)
https://forums.autodesk.com/t5/autocad-forum/pdf-import-into-autocad/td-p/8017888

please post the whole script and you will get your help.

Sebastian

Message 3 of 4

Anonymous
Not applicable

Hi CADffm,
thanks for you help.

Then i know how the command PDFIMPORT works, but i would use it with VBA and in this moment i don't know nothing, like :
The send command String;
how it is possible to put Insertpoint in my program;
How put the scale of pdf which i will import;
etc...etc...

Excuse me, but i didn't got this...
"It starts with"
"-pdfimport<enter><enter>YourFileName<enter>...and so on"

Could do you do a example?

 

Thank you in advance and for the link, it is something!

0 Likes
Message 4 of 4

cadffm
Consultant
Consultant

> i don't know nothing, like :
>The send command String;

use the help - with samplecode, method sendcommand: http://help.autodesk.com/view/ACD/2019/DEU/?guid=GUID-E13A580D-04CA-46C1-B807-95BB461A0A57


>how it is possible to put Insertpoint in my program;

?  I am not sure what are you asking for, bur for the sendcommand string you need the same input like a human n front of  the PC,

valid coordinates are 0,0 or 22,50,0


>How put the scale of pdf which i will import;Follow the command dialog and you will see when the command ask for your scale180927-5.JPG

 

 

 

 

> "Excuse me, but i didn't got this..."

-PDFIMPORT is a normal command and you want to use them, or not?

So you have to figured out which (commandline) input you need and want for your goal.

 

Start with type in command

-PDFIMPORT

then press [Enter]

and so on, follow the command workflow.. and write down each key hit.

 

then you can do the first try with that informations, search for similar sample code:

https://forums.autodesk.com/t5/visual-basic-customization/vba-send-command-line-commands/td-p/320330

and thousends more

 

 

Sebastian

0 Likes