Inventor to PDF Property Mapping

Inventor to PDF Property Mapping

Anonymous
Not applicable
315 Views
1 Reply
Message 1 of 2

Inventor to PDF Property Mapping

Anonymous
Not applicable

I'm fairly certain something like this has been brought up before so I apologize for posting this if it has already been answered. With all of that said, I'm seeking a method by which I can create a PDF from an Inventor drawing and automatically map at least one Inventor iProperty to a corresponding PDF property.

 

If this is acheived through a macro, I want to know if there is a good way to make a button for my less macro-savvy co-workers so that it is bullet proof. Also, if done through a macro, I'd like for there to be a prompt that would ask for a second field for the PDF properties. Thoughts?

 

If there is a way to do this without a macro, I would be mapping two iProperties to corresponding PDF properties.

 

Last but not least, has anyone else had issues specifically with writing a macro and setting it to a button in Inventor? In 2014, I made a button with the help of the autodesk community that located the CenterofMass and placed a grounded workpoint at that location so that I could constrain things with respect to the CG. This button, through two different iterations, behaved strangely in that it would work flawlessly at first, but then it started to crash Inventor when it was clicked. Almost like at some point I added "ThisApplication.Crash". Anybody else experience this? I've somewhat determined that the macro and VBA area of the software may just be a little buggy since I imagine they are not the most crucial area for program development.

 

Any help would be great.

 

Thanks guys.

0 Likes
316 Views
1 Reply
Reply (1)
Message 2 of 2

Mark_Wigan
Collaborator
Collaborator

it shouldn't be difficult Will. but, i would post in the customisation area if i was you. there will be more people there with this experience.

if you do, pls post a link to it.

 

ps- on the topic of your old macro, you can run the code in debug mode in inventor and api window side by side to see where the issue arises, stepping thorugh one line at a time. i have carried my own macros etc and the same api code with me for the past versions for quite some years without major issues. if you need it sorted then i would like to see the code you have so far. maybe you could attach it there also. we can do some debugging for you run it at two separate posts though to minimise any confusion.

 

cheers.

best regards,
- Mark

(Kudo or Tag if helpful - in case it also helps others)

PDSU 2020 Windows 10, 64bit.

0 Likes