Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Inventor Punch Tool - Location of used or used punch tool template

Anonymous

Inventor Punch Tool - Location of used or used punch tool template

Anonymous
Not applicable

Hello,

I want to write the name of the used punch tool template into a property.
But I cann't find the expression for the used template in the api.


Anmerkung 2020-07-16 134207.png

 

Any idea?

The "LastKnownSourceFileName" in "iFeatureTemplateDescriptor" is not correct.

 

Thank you

0 Likes
Reply
Accepted solutions (1)
529 Views
2 Replies
Replies (2)

WCrihfield
Mentor
Mentor

Are you working with a regular part or a sheet metal part?

It the feature a regular iFeature, or a sheet metal punch feature

example:

SheetMetalDef.SheetMetalFeatures.PunchToolFeatures.Item(oPunch) 'is a PunchToolFeature

Both are 'derived object'.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Anonymous
Not applicable
Accepted solution

Problem solved. 

The "LastKnownSourceFile" is correct. But I copied the template and renamed the file, to check the code. 

What I didn't know was, that each template have a unique ID. So for both the ID is the same and the API give the same file as the template back. 

 

It's a little bit confusing, because the API shows another file as the frontend. 

0 Likes