- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Any idea?
The "LastKnownSourceFileName" in "iFeatureTemplateDescriptor" is not correct.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
(Not an Autodesk Employee)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.