Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventor 2017 - 3D PDF Export

20 REPLIES 20
Reply
Message 1 of 21
GKPByDesign
906 Views, 20 Replies

Inventor 2017 - 3D PDF Export

Hey,

 

I have been amending and updating the 3D part and Assembly template using Acrobat DC, and so far ive been able to name and input my own custom properties, but what is the formula i use so i get the File Name to appear on the document once its saved? I have tried ' FileName' 'File Name' & 'File_Name' but it does not work! any ideas? 

 

I simply want the PDF name once i export it to appear at the top of the PDF

20 REPLIES 20
Message 2 of 21
mcgyvr
in reply to: GKPByDesign

@mdavis22569 Paging Dr. Mike to the emergency room.. Dr. Mike please report to the emergency room.. Smiley Wink



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 3 of 21
mdavis22569
in reply to: GKPByDesign

 

 

If I was looking at the iProperties  so I know where I'm looking 100%?

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 4 of 21
mcgyvr
in reply to: mdavis22569


@mdavis22569 wrote:

 

 

If I was looking at the iProperties  so I know where I'm looking 100%?

 

 


huh? You writing Fortune Cookies now... Smiley Wink

 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 5 of 21
mdavis22569
in reply to: mcgyvr

IMG_9950[1].JPG 

 

Nope, but my toy is back home, so I'm out playing ..and didn't want to think ..


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 6 of 21

@mdavis22569

 

Car 56 is being paged to go home..  Smiley Very Happy

 

Sorry @GKPByDesign I think the topic got off course a little.  Smiley Wink

Mark Lancaster


  &  Autodesk Services MarketPlace Provider


Autodesk Inventor Certified Professional & not an Autodesk Employee


Likes is much appreciated if the information I have shared is helpful to you and/or others


Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.

Message 7 of 21

@GKPByDesign

 

I'm looking into this and another one for a Custom property added


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 8 of 21
mcgyvr
in reply to: Mark.Lancaster

The answer will come... Patience.. 

(I sure can't figure it out though but I'm rusty on the 3d PDFs again)...



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 9 of 21
mdavis22569
in reply to: mcgyvr

LOL ... 

 

I've actually finding some bugs within this ...related to names and numbers      @johnsonshiue and Martin will be probably hating me again ...

 

 

 

so I'm looking at a 2nd option.

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 10 of 21
GKPByDesign
in reply to: mdavis22569

not to be blunt if you guys don't know the answer, can you not spam this post with irrelevant posts? I can add custom properties to for form fine, its simply just the file name. 

 

I find custom properties work better with no spaces and matching capitals where required. 

Message 11 of 21
mdavis22569
in reply to: GKPByDesign

@GKPByDesign

 

Sorry for the hijacking, We have fun sometimes,

 

But I am looking at it this morning already ....


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 12 of 21
mdavis22569
in reply to: mdavis22569

Try:

 

 

{{{ topComponent['Source Import'] || "" }}}

 

 

Thank you @johnsonshiue   ... I need your decoder book

 

 

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 13 of 21
mcgyvr
in reply to: mdavis22569


@mdavis22569 wrote:

Try:

 

 

{{{ topComponent['Source Import'] || "" }}}

 

 

Thank you @johnsonshiue   ... I need your decoder book

 

 

 

 

@mdavis22569

I think we might need to get Johnson by the ankles and shake those pockets out though still Smiley Very Happy

 

I only found "reference" to that in the anark core document but I certainly didn't understand it when I ran across it..

 

 

Output Specific Attributes of the Top Level Component
SPECIFIC ATTRIBUTES name | value
{{{ item }}} | {{{ topComponent[item] }}} ITEMS="{{{ ['Name', 'Source Import', 'Use Count'] }}}"

 

 

 

 

This one gets you some neat information too.. 

 

List All Attributes of the Top Level Component
TOP COMPONENT ATTRIBUTE LIST name | value
{{{ item }}} | {{{ topComponent[item] }}} ITEMS="{{{ getComponentAttributeNames().filter(att => topComponent[att] != null) }}}"



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 14 of 21
mdavis22569
in reply to: mcgyvr

nor I ...

 

and I was reading over all of those pages .... 

 

I was going to throw in the towel and just tell them to make custom iproperties ..I can import those all day.


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 15 of 21
mdavis22569
in reply to: mdavis22569

Few more he gave me:

 

 

Estimated Cost:   "Cost Center" 

Creation Date: "Creation Time"  (unfortunately there is a timestamp with it )

 

File: "Source Import"


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 16 of 21
mcgyvr
in reply to: mdavis22569


@mdavis22569 wrote:

Few more he gave me:

 

 

Estimated Cost:   "Cost Center" 

Creation Date: "Creation Time"  (unfortunately there is a timestamp with it )

 

File: "Source Import"


@mdavis22569

Mike,

Here are a bunch more that you can get with that kind of code..

Sorry about being screenshots.. I'll put it into "something" nicer here in a bit..

anark1.PNG

 

anark2.PNG

anark3.PNG

 

anark4.PNG



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 17 of 21
mdavis22569
in reply to: mcgyvr

@mcgyvr

 

@johnsonshiue

 

If I start a new thread, containing Code options, solutions etc for the 3d PDFs properties etc, can we maybe pin it to the top for a bit ? 

 

We can keep adding to it ... just coding related ...


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 18 of 21
mdavis22569
in reply to: mcgyvr

time.PNG

 

I wish I could get rid of the time part of that ....


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 19 of 21
GKPByDesign
in reply to: mcgyvr

All,

 

i am trying to use ' Source Import ' but everytime i input a code with a space i get this error

 

FinishedWithError: Execution of automation recipe completed with error(s):

Input File : \\ALREC02\Studio\OTHER JOBS\Garmin\GARMIN 2017\NW 87786 - Garmin UK - Cycle Republic - Southampton Tech Display\CAD\Model\NW 87786 - 01-03-00 - GA - TV Unit.iam

Action : ExportCmd Target : \\ALREC02\Studio\OTHER JOBS\Garmin\GARMIN 2017\NW 87786 - Garmin UK - Cycle Republic - Southampton Tech Display\CAD\Model\NW 87786 - 01-03-00 - GA - TV Unit.pdf completed with error(s): Error in PDF template field named 'Header'.
Unrecognized token(s) at 20:
{{{ topComponent.Source HERE --> Import || "" }}}

 

How do i resolve this 

Message 20 of 21
mdavis22569
in reply to: GKPByDesign

Can I get your 3d PDF template


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report