I have a simple question,
I got a feature and I want to get its subtype, but I only found in the documentation a method that returns the type.
Is there an API that give me the subtype?
Also I would like to know how to get the operation type too (all I got is the name).
If this is what you mean by feature's subtype:
You can try:
(but I didn't tried it)
Dim featureSubtype As Integer Dim feature As CAM.FBM.Feature Dim featureSubtypeAttr As CAM.CAMAttribute 'assuming that you assigned a value to "feature": featureSubtypeAttr = feature.GetAttribute("SUBTYPE") featureSubtype = featureSubtypeAttr.GetIntegerValue
To get operation's type you can use:
Dim oper As Operation = WorkPart.CAMSetup.CAMOperationCollection.FindObject(operName) Dim typOper As String = oper.GetType.Name
Production: NX 12.0.1
Development: C#, Tcl/Tk, CSE
1) In feature sub type I mean this:
This is not a sub-type, it is a type, since there are no sub-types in the FBM feature classes.
The structure is only used to allow inheritance of attributes.
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0
Employees of the customers, together we are strong
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide