Hi,
I´ve found some iLogic code to print a drawing to a PDF document. After some minor modifications it works just fine, but I would like to add some code which allows med to set PDF properties (such as "title", "author", etc.) with values from iProperties. How can I do that? Is it possible? (I'm new to iLogic).
//Magnus
Solved! Go to Solution.
Hi,
I´ve found some iLogic code to print a drawing to a PDF document. After some minor modifications it works just fine, but I would like to add some code which allows med to set PDF properties (such as "title", "author", etc.) with values from iProperties. How can I do that? Is it possible? (I'm new to iLogic).
//Magnus
Solved! Go to Solution.
Solved by MjDeck. Go to Solution.
Have you ever found anyone to reply to this or a way to do it?
Have you ever found anyone to reply to this or a way to do it?
Hi kmiller,
I think will involve a bit of work from the Windows file side of things:
https://www.google.com/#bav=on.2,or.r_cp.r_qf.&fp=196e23fbed2912c1&q=vb.net+write+file+properties
I would search and/or ask this question on the Inventor Customization forum:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Hi kmiller,
I think will involve a bit of work from the Windows file side of things:
https://www.google.com/#bav=on.2,or.r_cp.r_qf.&fp=196e23fbed2912c1&q=vb.net+write+file+properties
I would search and/or ask this question on the Inventor Customization forum:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Thanks - I was just going a google search and ran accross this forum first. Guess i didn't go any further than that.
Thanks - I was just going a google search and ran accross this forum first. Guess i didn't go any further than that.
Hi kmiller,
Ooops, I ddin't mean to suggest you hadn't worked hard enough searching (but I can see where my post does come off that way),
I just meant that I think the solution will come from working with the Windows file hooks API , rather than the Inventor API. In either case the Customization Forum will be the place to find out.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Hi kmiller,
Ooops, I ddin't mean to suggest you hadn't worked hard enough searching (but I can see where my post does come off that way),
I just meant that I think the solution will come from working with the Windows file hooks API , rather than the Inventor API. In either case the Customization Forum will be the place to find out.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
Sounds good. I didn't search enough so it would have been a valid assumption. I am writng my code in vb.net so I think I can possibly come up with something. We are just brainstorming some stuff here in regards of the best way to push file data from inventor into another system.
I do appreciate the quick response and will check it out.
Thanks.
Sounds good. I didn't search enough so it would have been a valid assumption. I am writng my code in vb.net so I think I can possibly come up with something. We are just brainstorming some stuff here in regards of the best way to push file data from inventor into another system.
I do appreciate the quick response and will check it out.
Thanks.
Hi,
Thank you for your reply! I will check out your suggestions.
I did search the solution to my problem in both discussion groups and google before I posted this question, but without any luck. Guess I didn't really knew how to phrase my search...
Hi,
Thank you for your reply! I will check out your suggestions.
I did search the solution to my problem in both discussion groups and google before I posted this question, but without any luck. Guess I didn't really knew how to phrase my search...
Hi All,
Has there been any further findings on this ?
I am looking to embed various iproperties into PDF's so that these can
be extracted into an excel document register.
I'll keep looking too and feedback to here if I find anything
Regards
Bruce
Hi All,
Has there been any further findings on this ?
I am looking to embed various iproperties into PDF's so that these can
be extracted into an excel document register.
I'll keep looking too and feedback to here if I find anything
Regards
Bruce
@bruce.blundell , you can do it with the attached rule. I tested it on a drawing in Inventor 2019. It should work in 2018 as well. It requires the PdfSharp library, which you can download from https://www.nuget.org/packages/PdfSharp/1.50.5147
The download is a .nupkg file. 7-Zip will unzip it.
Find the file PdfSharp.dll (in the lib\net20 folder) and copy it to the folder:
C:\Program Files\Autodesk\Inventor 2019\Bin\iLogicAdd
(or similar for 2018).
@bruce.blundell , you can do it with the attached rule. I tested it on a drawing in Inventor 2019. It should work in 2018 as well. It requires the PdfSharp library, which you can download from https://www.nuget.org/packages/PdfSharp/1.50.5147
The download is a .nupkg file. 7-Zip will unzip it.
Find the file PdfSharp.dll (in the lib\net20 folder) and copy it to the folder:
C:\Program Files\Autodesk\Inventor 2019\Bin\iLogicAdd
(or similar for 2018).
Cheers Mike
I'll give that a crack and see how I go
Bruce
Cheers Mike
I'll give that a crack and see how I go
Bruce
That Works perfectly Mike, Many thanks for your help!
Now for my next trick I need to be able to then extract those custom properties into an excel spreadsheet
I am going to have a look around and see if there is any VBA that can extract that
Regards
Bruce
That Works perfectly Mike, Many thanks for your help!
Now for my next trick I need to be able to then extract those custom properties into an excel spreadsheet
I am going to have a look around and see if there is any VBA that can extract that
Regards
Bruce
Can't find what you're looking for? Ask the community or share your knowledge.