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

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

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

WCrihfield
in reply to: Anonymous

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
in reply to: WCrihfield

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.